Update.
[glibc.git] / ChangeLog
blob38c51ec841e9c8c94c9c48af08a1dd43a605a013
1 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
3         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
4         generation counter.
5         * elf/dl-close.c (_dl_close): Likewise.
7 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9         * elf/Makefile: Add rules to build and run tst-tls8.
10         * elf/tst-tls8.c: New file.
11         * elf/tst-tlsmod4.c: New file.
13         * stdlib/test-a64l.c (tests): Add more test cases.
15         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
16         Reported by Walter Harms <WHarms@bfs.de>.
18 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
20         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
21         definitions for struct sigcontext.
22         Suggested by David Mosberger-Tang.
24 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
26         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
27         for removing reference of module in slotinfo list.
28         (_dl_close): Use remove_slotinfo.
29         * sysdeps/generic/dl-tls.c: General pretty printing.
30         (oom): Define only if SHARED.
31         (_dl_next_tls_modid): Correct starting point for the case we assume
32         there is a gap.  Add missing instruction grouping (doh!).  Correct
33         tests for reaching maximum index.
34         * elf/Makefile: Add rules to build and run tst-tls7.
35         * elf/tst-tls7.c: New file.
36         * elf/tst-tlsmod3.c: New file.
38         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
39         USE_TLS.
40         * elf/tst-tlsmod2.c: Likewise.
42         * elf/dl-close.c (_dl_close): When closing an object using TLS
43         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
44         true.  Increment dl_tls_generation only if we closed any TLS-using
45         object.
46         * elf/tst-tls6.c: New file.
47         * elf/Makefile: Add rules to build and run tst-tls6.
49         * po/da.po: Update from translation team.
51         * locale/categories.def: Fix typo [PR libc/2948].
52         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
53         [PR libc/2949].
54         * locale/iso-4217.def: Update from official version [PR libc/2950].
55         * glibcbug.in: Honor TMPDIR [PR libc/2951].
56         * locale/programs/ld-collate.c (collate_finish): Bail out with a
57         message if input is too confusion instead of using assert.
58         (collate_read): Don't crash on unknown symbol [PR libc/2952].
59         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
61         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
62         * elf/tst-tls2.c: Likewise.
63         * elf/tst-tls3.c: Likewise.
65 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
67         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
69 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
71         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
72         if this is really necessary.
74         * elf/dl-close.c (_dl_close): Implement freeing entries in the
75         slotinfo array.
76         (free_mem): Free memory for the slotinfo array if possible.
78 2002-02-12  Andreas Schwab  <schwab@suse.de>
80         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
82 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
84         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
85         TLS_DTV_UNALLOCATE.
86         (oom): New function.
87         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
88         (_dl_determine_tlsoffset): Likewise.
89         (_dl_allocate_tls): Likewise.
90         (__TLS_GET_ADDR): Define if not already defined.
91         (_dl_tls_symaddr): New function.
92         (allocate_and_init): New function.
93         (__tls_get_addr): Actually implement handling of generation counter
94         and deferred allocation.
95         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
96         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
97         _dl_tls_generation.
98         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
99         Declare _dl_tls_symaddr.
100         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
101         SHARED.
102         * include/link.h (struct link_map):  Remove l_tls_nextimage and
103         l_tls_previmage.
104         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
105         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
106         (_dl_vsym): Likewise.
107         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
108         layout.
109         (dl_main): Allow PT_TLS be present for empty segment.  Remove
110         nextimage list handling.  Instead add all modules using TLS to
111         dl_tls_dtv_slotinfo_list.
112         * elf/dl-open.c (dl_open_worker): After successfully loading all
113         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
114         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
115         empty segment don't do anything.  Remove handling of initimage list.
116         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
117         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
118         * elf/dl-minimal.c: Define __libc_memalign.
119         * elf/dl-support.c: Remove _dl_initimage_list.  Add
120         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
121         _dl_tls_generation.
122         * include/stdlib.h: Declare __libc_memalign.
124         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
125         * elf/tst-tls4.c: New file.
126         * elf/tst-tls5.c: New file.
127         * elf/tst-tlsmod2.c: New file.
129         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
131         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
133         * elf/tst-tls1.c: Use test-skeleton.c.
134         * elf/tst-tls2.c: Likewise.
135         * elf/tst-tls3.c: Likewise.
137         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
139 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
141         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
143 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
145         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
147         * elf/tst-tls3.c: New file.
148         * elf/tst-tlsmod1.c: New file.
149         * elf/Makefile: Add rules to build and run tst-tls3.
151         * sysdeps/i386/dl-machine.h: Include <tls.h>.
152         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
153         TLS relocations.
155         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
157         * po/fr.po: Update from translation team.
159         * elf/tls-macros.h: Add alternative macros for use in PIC.
161         * elf/dl-lookup.c: Include <tls.h>.
162         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
164         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
165         required by passing pointer to last element of the list.
167         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
168         l_tls_initimage to a place where it actually is performed.
170         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
171         after globfree() calls.
173         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
174         (openaux): Pass open_mode as new last argument to _dl_map_object.
175         (_dl_map_object_deps): Add new argument open_mode.  Initialize
176         open_mode element of args variable with it.
177         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
178         _dl_map_object_deps.
179         * elf/rtld.c (dl_main): Add zero as last parameter to
180         _dl_map_object_deps call.
181         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
182         * elf/nodlopen2.c: New file.
183         * elf/nodlopenmod2.c: New file.
184         * elf/Makefile: Add rules to build and run nodlopen2.
186         * elf/tst-tls1.c: Move TLS helper macros to...
187         * elf/tls-macros.h: ...here.  New file.
188         * elf/tst-tls2.c: New file.
189         * elf/Makefile (tests): Add tst-tls2.
190         (distribute): Add tls-macros.h.
192         * po/sv.po: Update from translation team.
194         * elf/tst-tls1.c (main): Add complete set of tests.  Split
195         architecture specific definitions from the actual test code.
197         * po/tr.po: Update from translation team.
199 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
201         * elf/Makefile (tests): Add tst-tls1.
202         * elf/tst-tls1.c: New file.
204         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
205         alignment of TCB for now.
207         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
208         initialization image for the application itself.
210         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
211         loop to initialize TLS block.
213 2002-02-08  Richard Henderson  <rth@redhat.com>
215         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
216         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
218         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
220 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
222         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
224 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
226         * po/ca.po: Update from translation team.
227         * po/sk.po: Likewise.
229         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
230         (dl_main): Move dtv/static TLS handling before relocation.
231         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
232         TLS_INIT_TP to allocate and install the dtv/static TLS block.
233         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
234         so far uses TLS initialize GL(dl_tls_static_size) and
235         GL(dl_tls_static_align) to account for the TCB.
236         (_dl_allocate_tls): New function.
237         * sysdeps/generic/ldsodefs.h (rtld_global): Add
238         _dl_initial_dtv_malloced.
240         * configure.in: Test for __builtin_memset more realistically.
242         * csu/version.c (banner): If TLS support is available say so.
244 2002-02-04  H.J. Lu  <hjl@gnu.org>
246         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
247         __attribute_used__.
248         (__dl_runtime_resolve): Likewise.
250         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
251         declaration.
253 2001-11-15  H.J. Lu  <hjl@gnu.org>
255         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
256         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
258         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
260 2002-02-07  H.J. Lu  <hjl@gnu.org>
262         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
263         ".set noreorder".
264         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
265         Likewise.
267 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
269         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
271         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
272         ___tls_get_addr_internal.
273         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
275         * po/ko.po: Update from translation team.
277 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
279         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
280         attribute, change __pad{1,2} type to unsigned int.
281         (struct stat64): Remove packed attribute.
283 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
285         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
287 2002-02-07  Andreas Schwab  <schwab@suse.de>
289         * configure.in: Fix check for -zcombreloc.
291 2002-02-06  H.J. Lu  <hjl@gnu.org>
293         * config.h.in (HAVE_BUILTIN_MEMSET): New.
294         * configure.in: Check if __builtin_memset really works.
295         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
296         __GNUC_PREREQ (2, 96) before using __builtin_memset.
298 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
300         * io/bug-ftw3.c (main): Don't try the test if root.
302 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
304         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
305         constraints.
306         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
307         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
308         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
309         Likewise.
310         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
311         a weak alias for __clone.
312         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
313         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
314         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
315         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
316         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
317         a weak alias for __mmap64.
319 2002-02-05  H.J. Lu  <hjl@gnu.org>
321         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
322         (atomic_add): Likewise.
323         (compare_and_swap): Likewise.
324         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
326 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
328         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
330         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
331         alignment of the TCB and store total size and alignment of static
332         TLS block in _dl_tls_static_size and _dl_tls_static_align.
333         tls_index is a typedef.
334         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
335         _dl_tls_static_align.
336         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
337         * elf/dl-support.c: Define _dl_tls_static_size and
338         _dl_tls_static_align.
340 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
342         * configure.in: Add --without-tls option.
343         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
344         --without-tls is given.
346         * sysdeps/generic/dl-tls.c: Include <tls.h>.
348         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
350 2002-02-06  Roland McGrath  <roland@frob.com>
352         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
353         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
355         * scripts/versions.awk: Improve error message for missing version.
356         Each version inherits from the last one only if they have the same
357         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
358         but not GLIBC_x and FOO_y.
360         * scripts/firstversions.awk: Handle libraries that don't have each
361         particular version named in the third column of shlib-versions.
363         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
365 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
367         * Versions.def [ld]: Add GLIBC_2.3.
368         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
369         * elf/Makefile (dl-routines): Add dl-tls.
370         (distribute): Add dl-tls.h.
371         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
372         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
373         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
374         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
375         along with the other info in the link map.  Change queueing of init
376         images for double linked list.  Use _dl_next_tls_modid to compute
377         l_tls_modid.
378         * elf/rtld.c (_dl_start_final): Store alignment requirement
379         along with the other info in rtld map and executable map.
380         (dl_main): Add ld.so to the init image list if necessary.  Compute
381         final module ID with _dl_next_tls_modid.
382         * include/link.h (struct link_map): Add l_tls_previmage and
383         l_tls_align.
384         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
385         * sysdeps/i386/elf/Versions: New file.
386         * sysdeps/generic/dl-tls.c: New file.
387         * sysdeps/generic/dl-tls.h: New file.
388         * sysdeps/i386/dl-tls.h: New file.
390 2002-02-06  Roland McGrath  <roland@frob.com>
392         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
393         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
395 2002-01-05  Roland McGrath  <roland@frob.com>
397         * sysdeps/mach/configure.in: New file.
398         * sysdeps/mach/configure: New generated file.
400         * mach/Makefile (user-interfaces): Remove default_pager_helper.
401         It has never been used by anything.
403 2002-02-06  H.J. Lu  <hjl@gnu.org>
405         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
406         is included.
408 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
410         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
411         attribute((packed)) to counter stupid people misusing gcc options.
412         (struct stat64): Likewise.
414 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
416         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
417         the variables which are used as booleans.
419 2002-02-06  Andreas Jaeger  <aj@suse.de>
421         * include/libc-symbols.h (INTUSE): Renamed from INT.
422         * elf/dl-deps.c: Change users.
423         * sysdeps/generic/dl-sysdep.c: Likewise.
424         * sysdeps/generic/dl-cache.c: Likewise.
425         * elf/dl-reloc.c: Likewise.
426         * elf/rtld.c: Likewise.
427         * elf/dl-version.c: Likewise.
428         * elf/dl-load.c: Likewise.
429         * elf/dl-dst.h: Likewise.
430         * elf/dl-init.c: Likewise.
431         * elf/dl-error.c: Likewise.
432         * elf/dl-fini.c: Likewise.
433         * elf/dl-runtime.c: Likewise.
434         * elf/do-lookup.h: Likewise.
436         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
437         definition.
438         * stdio-common/_itowa.h: Likewise.
440 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
442         * elf/dl-minimal.c: Define _itoa_lower_digits.
444         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
445         DT_FLAGS set.
447         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
448         loading modules with the DF_STATIC_TLS flag set.
449         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
450         element.
451         * include/link.h (struct link_map): Add l_flags field.
452         * elf/elf.h (DF_STATIC_TLS): New definition.
454         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
455         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
457         * elf/rtld.c (process_dl_debug): Correct printing help message.
458         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
459         for %s.
461         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
462         definition and pass &errno in use of this variable.
463         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
465 2002-02-04  Andreas Schwab  <schwab@suse.de>
467         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
468         * locale/programs/charmap-dir.c: Wrap calls that output messages
469         with WITH_CUR_LOCALE.  Include "localedef.h" first.
470         * locale/programs/charmap.c: Likewise.
471         * locale/programs/ld-address.c: Likewise.
472         * locale/programs/ld-collate.c: Likewise.
473         * locale/programs/ld-ctype.c: Likewise.
474         * locale/programs/ld-identification.c: Likewise.
475         * locale/programs/ld-measurement.c: Likewise.
476         * locale/programs/ld-messages.c: Likewise.
477         * locale/programs/ld-monetary.c: Likewise.
478         * locale/programs/ld-name.c: Likewise.
479         * locale/programs/ld-numeric.c: Likewise.
480         * locale/programs/ld-paper.c: Likewise.
481         * locale/programs/ld-telephone.c: Likewise.
482         * locale/programs/ld-time.c: Likewise.
483         * locale/programs/linereader.c: Likewise.
484         * locale/programs/linereader.h: Likewise.
485         * locale/programs/localedef.c: Likewise.
486         * locale/programs/locfile.c: Likewise.
487         * locale/programs/repertoire.c: Likewise.
489 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
491         * elf/rtld.c (_dl_start_final): Determine load address to locate
492         ehdr with GL(dl_rtld_map).l_map_start.
494         * po/ca.po: Update from translation team.
496         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
497         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
498         header entry.
499         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
500         _dl_tls_module_cnt.
501         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
503 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
505         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
506         * include/link.h (struct link_map): Add various members for TLS
507         information.
508         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
509         _rtld_tlsoffset, add _dl_initimage_list.
510         * sysdeps/i386/dl-lookupcfg.h: New file.
511         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
512         TLS relocation.  When using TLS we now use RESOLVE_MAP.
513         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
514         is used.
516         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
517         unused.
519         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
520         thread-pointer as soon as possible.
521         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
522         elements in rtld_global.
523         * sysdeps/generic/tls.h: New file.
524         * elf/Makefile (distribute): Add tls.h.
525         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
526         relocations.  Not complete yet.
528         * resolv/resolv.h: Allow user to define __need_res_state and only
529         define __res_start structure then.
530         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
532         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
533         dl_cpuclock_offset initialization to _dl_start_final.
534         (_dl_show_auxv): Avoid unnecessary sign extension.
535         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
537 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
539         * config.h.in: Add HAVE_TLS_SUPPORT.
540         * sysdeps/i386/elf/configure.in: New file.
542 2002-02-03  Andreas Schwab  <schwab@suse.de>
544         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
545         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
547 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
549         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
550         alloca if the memory reqirements are too high.
552 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
554         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
555         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
556         the former is available anyway and speed isn't important here.
557         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
558         * elf/dl-version.c (match_symbol): Likewise.
559         (_dl_check_map_versions): Likewise.
560         * elf/rtld.c (process_envvars): Likewise.
561         (print_statistics): Likewise.
562         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
563         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
564         bases.  Add assert to catch uses of unimplemented features.
565         (__strsep): Add assert to catch uses of unimplemented features.
566         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
567         and avoid inline optimization.
568         * elf/rtld.c (process_envvars): Likewise.
569         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
570         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
571         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
573 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
575         * stdio-common/_itoa.h: Minor simplifications of the code.
576         * stdio-common/_itoa.c: Likewise.
578         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
579         instead of _dl_printf for debugging info output.
581         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
582         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
584 2002-02-01  H.J. Lu  <hjl@gnu.org>
586         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
587         (atomic_add): Likewise.
588         (compare_and_swap): Return 0 only when failed to compare. Use
589         branch likely.
591         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
592         branch likely.
594 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
596         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
598 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
600         * elf/dl-minimal.c (__strsep): New minimal implementation.
602 2002-02-02  Paul Eggert  <eggert@twinsun.com>
604         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
605         (__mktime_internal): If no tm_isdst is requested, prefer solutions
606         with tm_isdst > 0 when the requested time falls within a
607         spring-forward gap [PR libc/2894].
609 2002-02-03  Andreas Schwab  <schwab@suse.de>
611         * stdio-common/tst-rndseek.c: Increase timeout.
613 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
615         Change ld.so to not use functions which are exported.  One cannot
616         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
617         definitions.
618         * include/libc-symbols.h: Define INT and INTDEF.
619         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
620         _dl_signal_error_internal, _dl_map_object_internal,
621         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
622         _dl_lookup_versioned_symbol_internal,
623         _dl_relocate_object_internal, _dl_debug_state_internal,
624         _dl_start_profile_internal, and _dl_unload_cache_internal.
625         * include/dlfcn.h: Declare _dl_catch_error_internal.
626         * elf/rtld.c: Use INT for calls to any of the *_internal functions
627         above.  Add INTDEF to function definitions.
628         * elf/dl-debug.c: Likewise.
629         * elf/dl-deps.c: Likewise.
630         * elf/dl-dst.h: Likewise.
631         * elf/dl-error.c: Likewise.
632         * elf/dl-fini.c: Likewise.
633         * elf/dl-init.c: Likewise.
634         * elf/dl-load.c: Likewise.
635         * elf/dl-lookup.c: Likewise.
636         * elf/dl-misc.c: Likewise.
637         * elf/dl-open.c: Likewise.
638         * elf/dl-profile.c: Likewise.
639         * elf/dl-reloc.c: Likewise.
640         * elf/dl-runtime.c: Likewise.
641         * elf/dl-version.c: Likewise.
642         * elf/do-lookup.h: Likewise.
643         * sysdeps/generic/dl-cache.c: Likewise.
644         * sysdeps/generic/dl-sysdep.c: Likewise.
645         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
646         instead of _dl_init.
647         * sysdeps/arm/dl-machine.h: Likewise.
648         * sysdeps/cris/dl-machine.h: Likewise.
649         * sysdeps/hppa/dl-machine.h: Likewise.
650         * sysdeps/i386/dl-machine.h: Likewise.
651         * sysdeps/ia64/dl-machine.h: Likewise.
652         * sysdeps/m68k/dl-machine.h: Likewise.
653         * sysdeps/mips/dl-machine.h: Likewise.
654         * sysdeps/mips/mips64/dl-machine.h: Likewise.
655         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
656         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
657         * sysdeps/sh/dl-machine.h: Likewise.
658         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
659         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
660         * sysdeps/x86_64/dl-machine.h: Likewise.
661         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
663         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
664         and _dl_debug_initialize.
666         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
667         more information.
668         * elf/rtld.c (dl_main): Avoid strrchr.
669         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
670         result of readlink.  Search from the back for '/'.
672         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
673         strncpy if possible.
675         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
676         strncmp.
677         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
678         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
679         strspn, and strcspn.
680         (process_envvars): Don't use strcspn.
682         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
683         (_dl_dst_substitute): Likewise.
685 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
687         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
688         code which is never used when relocating ld.so itself.
690         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
691         starting ld.so itself.  Move l_addr variable initialization closer
692         to use.
693         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
695 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
697         * Versions.def (libc): Add GLIBC_PRIVATE.
698         (libdb, libnss_db, libdb1): Remove.
699         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
700         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
701         (libpthread): Add GLIBC_PRIVATE.
702         (libresolv): Likewise, remove GLIBC_2.1.
703         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
704         GLIBC_2.2.3, GLIBC_2.3.
705         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
706         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
707         _dl_sym, _dl_vsym): Likewise.
708         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
709         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
710         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
711         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
712         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
713         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
714         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
715         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
716         Likewise.
717         (_dl_object_relocation_scope): Remove.
718         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
719         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
720         __gconv_cache): Move to GLIBC_PRIVATE.
721         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
722         __internal_setnetgrent): Likewise.
723         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
724         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
725         * locale/Versions (__collate_element_hash, __collate_element_strings,
726         __collate_symbol_classes, __collate_symbol_hash,
727         __collate_symbol_strings, _nl_current_LC_COLLATE,
728         _nl_current_LC_CTYPE): Likewise.
729         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
730         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
731         (libnss_nis, libnss_nisplus): Likewise.
732         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
733         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
734         (libnss_files): Move all symbols to GLIBC_PRIVATE.
735         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
736         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
737         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
738         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
739         __ns_get16, __ns_samename): Likewise.
740         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
741         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
742         GLIBC_PRIVATE.
743         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
744         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
745         __libc_connect): Likewise.
746         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
747         Likewise.
748         * stdlib/Versions (__libc_system): Likewise.
749         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
750         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
751         * sysdeps/ia64/fpu/Versions: Likewise.
752         * sysdeps/ia64/Versions: Likewise.
753         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
754         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
755         to GLIBC_PRIVATE.
756         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
757         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
758         __libc_sigaction): Likewise.
759         * termios/Versions (__libc_tcdrain): Likewise.
761         * misc/sys/cdefs (__attribute_noinline__): Define.
762         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
763         __attribute_noinline__.
765         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
766         * elf/dl-xstat64.c: New file.
767         * elf/dl-fxstat64.c: New file.
768         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
769         don't export __fxstat64 at multiple versions.
770         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
771         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
773 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
775         * locale/program/ld-collate.c (collate_finish): Assign a wide
776         char collation sequence value to multi character collating
777         elements, and avoid over writing by non-character elements.
779 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
781         * elf/Makefile (distribute): Add dl-procinfo.c.
782         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
783         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
785 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
787         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
788         definition.
789         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
790         _rtld_global struct.
791         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
792         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
793         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
794         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
795         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
796         _dl_fpu_control_set): Remove unused externs.
797         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
798         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
799         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
800         related variables in _rtld_global struct.
801         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
802         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
803         unused extern.
805 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
807         * sysdeps/generic/dl-procinfo.c: New file.
809 2002-02-01  Andreas Schwab  <schwab@suse.de>
811         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
813 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
815         * elf/rtld.c (_dl_start): Mark as internal_function.
816         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
817         in register.
818         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
819         General pretty printing.
821 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
823         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
824         * elf/dl-reloc.c: Pretty printing.
825         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
826         procinfo-related variables in rtld_global struct.
827         * elf/dl-support.c: Likewise.
828         * elf/rtld.c: Likewise.
829         * sysdeps/i386/i686/Makefile: Likewise.
830         * sysdeps/i386/i686/hp-timing.c: Likewise.
831         * sysdeps/i386/i686/hp-timing.h: Likewise.
832         * sysdeps/ia64/Makefile: Likewise.
833         * sysdeps/ia64/hp-timing.c: Likewise.
834         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
835         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
836         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
837         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
838         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
839         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
840         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
841         * sysdeps/x86_64/Makefile: Likewise.
843         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
844         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
845         _dl_debug_fd to rtld_global.
846         * elf/Versions: Likewise.
847         * elf/dl-close.c: Likewise.
848         * elf/dl-iteratephdr.c: Likewise.
849         * elf/dl-lookup.c: Likewise.
850         * elf/dl-misc.c: Likewise.
851         * elf/dl-open.c: Likewise.
852         * elf/dl-support.c: Likewise.
853         * elf/do-lookup.h: Likewise.
854         * elf/rtld.c: Likewise.
855         * sysdeps/generic/dl-cache.c: Likewise.
856         * sysdeps/generic/dl-sysdep.c: Likewise.
857         * sysdeps/ia64/Versions: Likewise.
858         * sysdeps/unix/clock_gettime.c: Likewise.
859         * sysdeps/unix/clock_settime.c: Likewise.
860         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
861         * sysdeps/sparc/Versions: Removed.
862         * sysdeps/i386/i686/Versions : Removed.
863         * sysdeps/x86_64/Versions: Removed.
864         * configure.in: Define HAVE_PROTECTED if .protected is available.
865         * config.h.in: Add entry for HAVE_PROTECTED.
867 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
869         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
870         code in struct _rtld_global.  Export this struct, remove all
871         exports for the signal variables.
872         * sysdeps/arm/dl-machine: Likewise.
873         * sysdeps/generic/dl-origin: Likewise.
874         * sysdeps/generic/dl-sysdep: Likewise.
875         * sysdeps/generic/dl-cache: Likewise.
876         * sysdeps/hppa/dl-fptr: Likewise.
877         * sysdeps/hppa/dl-machine: Likewise.
878         * sysdeps/cris/dl-machine: Likewise.
879         * sysdeps/i386/dl-machine: Likewise.
880         * sysdeps/ia64/dl-machine: Likewise.
881         * sysdeps/m68k/dl-machine: Likewise.
882         * sysdeps/mach/hurd/dl-sysdep: Likewise.
883         * sysdeps/mips/mips64/dl-machine: Likewise.
884         * sysdeps/mips/dl-machine: Likewise.
885         * sysdeps/powerpc/elf/libc-start: Likewise.
886         * sysdeps/powerpc/dl-machine: Likewise.
887         * sysdeps/powerpc/dl-start: Likewise.
888         * sysdeps/sparc/sparc32/dl-machine: Likewise.
889         * sysdeps/sparc/sparc64/dl-machine: Likewise.
890         * sysdeps/sh/dl-machine: Likewise.
891         * sysdeps/s390/s390-32/dl-machine: Likewise.
892         * sysdeps/s390/s390-64/dl-machine: Likewise.
893         * sysdeps/unix/sysv/aix/libc-start: Likewise.
894         * sysdeps/unix/sysv/aix/start-libc: Likewise.
895         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
896         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
897         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
898         * sysdeps/x86_64/dl-machine: Likewise.
900 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
902         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
903         are too high.
905 2002-01-31  Andreas Schwab  <schwab@suse.de>
907         * sysdeps/posix/readv.c: Check for ssize_t overflow.
909 2002-01-31  Andreas Schwab  <schwab@suse.de>
911         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
912         reference to _dl_pagesize.
914 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
916         * Versions.def [ld]: Add GLIBC_2.3.
917         * elf/dl-addr.c: Move global variables for SHARED code in struct
918         _rtld_global.  Export this struct, remove all exports for the
919         signal variables.
920         * elf/dl-close.c: Likewise.
921         * elf/dl-conflict.c: Likewise.
922         * elf/dl-debug.c: Likewise.
923         * elf/dl-deps.c: Likewise.
924         * elf/dl-dst.h: Likewise.
925         * elf/dl-error.c: Likewise.
926         * elf/dl-fini.c: Likewise.
927         * elf/dl-init.c: Likewise.
928         * elf/dl-iteratephdr.c: Likewise.
929         * elf/dl-libc.c: Likewise.
930         * elf/dl-load.c: Likewise.
931         * elf/dl-lookup.c: Likewise.
932         * elf/dl-minimal.c: Likewise.
933         * elf/dl-object.c: Likewise.
934         * elf/dl-open.c: Likewise.
935         * elf/dl-profile.c: Likewise.
936         * elf/dl-profstub.c: Likewise.
937         * elf/dl-reloc.c: Likewise.
938         * elf/dl-runtime.c: Likewise.
939         * elf/dl-support.c: Likewise.
940         * elf/dl-sym.c: Likewise.
941         * elf/dl-version.c: Likewise.
942         * elf/do-lookup.h: Likewise.
943         * elf/do-rel.h: Likewise.
944         * elf/dynamic-link.h: Likewise.
945         * elf/rtld.c: Likewise.
946         * sysdeps/generic/dl-cache.c: Likewise.
947         * sysdeps/generic/dl-sysdep.c: Likewise.
948         * sysdeps/generic/ldsodefs.h: Likewise.
949         * sysdeps/generic/libc-start.c: Likewise.
950         * sysdeps/i386/dl-machine.h: Likewise.
951         * sysdeps/ia64/dl-fptr.c: Likewise.
952         * sysdeps/ia64/dl-machine.h: Likewise.
953         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
954         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
955         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
956         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
957         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
958         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
959         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
960         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
962 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
964         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
965         to avoid warning
966         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
968         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
969         SHARED version.
970         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
972         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
974 2002-01-29  Ben Collins  <bcollins@debian.org>
976         * string/bits/string2.h (__mempcpy): Protect size arg for
977         addition when using __builtin_memcpy.
979 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
981         * stdlib/Makefile (tests): Add tst-qsort.
982         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
984         * manual/signal.texi (Process Signal Mask): Document that
985         pthread_sigmask, not sigprocmask, must be used in MT programs.
986         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
988         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
989         found.
990         * misc/Makefile (tests): Add tst-hsearch.
991         * misc/tst-hsearch.c: New file.
993 2002-01-18  Wolfram Gloger  <wg@malloc.de>
995         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
996         * malloc/malloc.h: Likewise.
997         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
998         * malloc/arena.c: New file.
999         * malloc/hooks.c: New file.
1000         * malloc/tst-mallocstate.c: New file.
1001         * malloc/Makefile: Add new testcase tst-mallocstate.
1002         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
1004 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
1006         * stdlib/msort.c: Remove last patch.  The optimization violates the
1007         same rule which qsort.c had problems with.
1009 2002-01-27  Paul Eggert  <eggert@twinsun.com>
1011         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
1012         to a pivot element that lies outside the array to be sorted, as
1013         ISO C99 requires that the comparison function be called only with
1014         addresses of array elements [PR libc/2880].
1016 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
1018         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
1019         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
1021         * timezone/asia: Update from tzdata2002b.
1022         * timezone/australasia: Likewise.
1023         * timezone/backward: Likewise.
1024         * timezone/europe: Likewise.
1025         * timezone/leapseconds: Likewise.
1026         * timezone/iso3166.tab: Likewise.
1027         * timezone/zone.tab: Likewise.
1029 2002-01-23  Richard Henderson  <rth@redhat.com>
1031         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
1033 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
1035         * string/strxfrm.c: Allocate one more byte for rulearr and clear
1036         this element [PR libc/2855].
1038         * string/strcoll.c: Handle zero-length arguments specially
1039         [PR libc/2856].
1041 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
1043         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
1044         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
1045         short lengths and constant src.
1046         (strcpy): Don't optimize for gcc 3.0+.
1047         (__stpcpy): For gcc 3.0+, don't use
1048         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
1049         for short string literal src.
1051 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
1053         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1054         Set for arm, too.
1056 2001-01-22  Paul Eggert  <eggert@twinsun.com>
1058         * manual/llio.texi (Linked Channels, Cleaning Streams):
1059         Make it clearer that a just-opened input stream might need cleaning.
1061 2002-01-21  H.J. Lu  <hjl@gnu.org>
1063         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
1064         Don't use label at end of compound statement.
1066 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
1068         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
1069         Remove test for negative integer arg; sin_pi does it correctly.
1071 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
1073         * nscd/Makefile (distribute): Filter out xmalloc.c.
1075 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
1077         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
1078         Set offset if read end wasn't the buffer end.
1079         (_IO_file_seekoff_mmap): New function.
1080         (_IO_file_xsgetn_mmap): New function.
1081         (_IO_file_jumps_mmap): Use the two new functions.
1082         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
1083         != end buffer.
1084         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
1085         _IO_file_underflow_mmap.
1086         * libio/iofopen.c: Don't position file descriptor at end of file.
1087         * libio/tst-widetext.c: Improve error messages.
1088         * stdio-common/tst-rndseek.c: Likewise.
1090 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
1092         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
1093         end of enum for !_GNU_SOURCE.
1094         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
1095         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
1096         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
1097         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
1098         values unless _GNU_SOURCE.
1100         * iconvdata/tcvn5712-1.c: Minor cleanups.
1102 2002-01-18  Andreas Schwab  <schwab@suse.de>
1104         * sysdeps/unix/sysv/linux/configure.in
1105         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
1107 2002-01-16  Roger Sayle  <roger@eyesopen.com>
1109         * stdlib/msort.c (msort_with_tmp): Replace implementation with
1110         more efficient "Towers of Hanoi" mergesort.
1111         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
1112         for generic, sizeof(int) and sizeof(long) variants respectively.
1114 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
1116         * manual/syslog.texi (openlog): Describe possible problems with
1117         first parameter.
1118         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
1120         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
1121         * nscd/connections.c (begin_drop_privileges): New function.
1122         (finish_drop_privileges): New function.
1123         (nscd_init): Call the new functions which also install all groups
1124         for the server user.
1125         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
1126         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
1128 2002-01-17  H.J. Lu  <hjl@gnu.org>
1130         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
1131         `const' from `got'.
1133 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1135         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
1136         instructions for pointer operations.
1137         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
1139 2002-01-17  Andreas Jaeger  <aj@suse.de>
1141         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
1142         __uint128_t build-in.
1144         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
1145         PowerPC, sync with 2.2 branch.
1147 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
1149         * posix/getconf.c: Update copyright year.
1150         * nss/getent.c: Likewise.
1151         * nscd/nscd_nischeck.c: Likewise.
1152         * iconv/iconvconfig.c: Likewise.
1153         * iconv/iconv_prog.c: Likewise.
1154         * elf/ldconfig.c: Likewise.
1155         * catgets/gencat.c: Likewise.
1156         * csu/version.c: Likewise.
1157         * elf/ldd.bash.in: Likewise.
1158         * elf/sprof.c (print_version): Likewise.
1159         * locale/programs/locale.c: Likewise.
1160         * locale/programs/localedef.c: Likewise.
1161         * nscd/nscd.c (print_version): Likewise.
1162         * debug/xtrace.sh: Likewise.
1163         * malloc/memusage.sh: Likewise.
1164         * malloc/mtrace.pl: Likewise.
1166 2002-01-16  Andreas Schwab  <schwab@suse.de>
1168         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
1169         reliably remove "-ia64" from rtld name.
1171 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
1173         * iconvdata/gb18030.c: Bug fixes and support for more characters.
1174         Patch by Yu Shao <yshao@redhat.com>.
1176 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1178         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
1179         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
1180         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
1182 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1184         * sysdeps/s390/fpu/libm-test-ulps: Update.
1186 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
1188         * elf/elf.h: Update x86 relocations.
1190 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
1192         * locale/programs/charmap.c (new_width): Check whether byte
1193         sequences for both ends of range have the same length.
1195 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
1197         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
1199 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
1201         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
1202         string literals.
1203         (__full_ieee754_sqrt): Add __attribute_used__.
1205 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
1207         * sysdeps/generic/group_member.c (__group_member): Also check
1208         groups[0] [PR libc/2781].
1210 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
1212         * Makefile (distribute): Add scripts/cpp.
1213         * elf/Makefile (distribute): Add reldep6mod[01234].c,
1214         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
1215         unwind-dw2-fde.h, and dwarf2.h.
1216         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
1217         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
1218         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
1219         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
1221 2002-01-07  Roland McGrath  <roland@frob.com>
1223         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
1224         volatile on type of ARGC so the compiler doesn't get clever.
1226 2002-01-07  Andreas Jaeger  <aj@suse.de>
1228         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
1229         * sysdeps/i386/bits/byteswap.h: Likewise.
1230         * sysdeps/ia64/bits/byteswap.h: Likewise.
1231         * sysdeps/m68k/bits/byteswap.h: Likewise.
1232         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
1233         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
1235 2002-01-02  Bruno Haible  <bruno@clisp.org>
1237         * intl/plural.y: Fix %expect count.
1239 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
1241         * elf/Makefile (routines, shared-only-routines): Add
1242         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
1243         * elf/elf.h (PT_GNU_EH_FRAME): Define.
1244         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
1245         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
1246         Optimize if .eh_frame section contains no FDEs.
1247         (__register_frame, __deregister_frame_info_bases,
1248         __deregister_frame): Likewise.
1249         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
1250         DW_CFA_restore handling.
1252 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
1254         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
1256         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
1257         for x < 0.25 and restore original range reduction method.
1258         (__ieee754_lgammal_r): Make sure signgam is set before returning.
1260 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
1262         * libio/fileops.c (_IO_file_underflow_mmap): New function.
1263         (_IO_file_close_mmap): New function.
1264         (_IO_file_jumps_mmap): New variable.
1265         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
1266         trying to convert rest of byte buffer.
1267         (_IO_wfile_underflow_mmap): New function.
1268         (_IO_wfile_jumps_mmap): New variable.
1269         * libio/iofopen.c (__fopen_maybe_mmap): New function.
1270         (__fopen_internal): New function.  Split out from _IO_new_fopen.
1271         (_IO_new_fopen): Call __fopen_internal.
1272         * libio/iofopen64.c: Just call __fopen_internal.
1273         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
1274         successfully.
1275         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
1276         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
1277         _IO_file_close_mmap.
1279         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
1280         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
1282         * stdio-common/Makefile (tests): Add tst-rndseek.
1283         * stdio-common/tst-rndseek.c: New file.
1285 2002-01-05  Roland McGrath  <roland@frob.com>
1287         * config.h.in (HAVE_MIG_RETCODE): New #undef.
1288         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
1289         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
1290         * sysdeps/mach/hurd/configure: Regenerated.
1292 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
1294         * elf/elf.h: Add more TLS definitions.
1296 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
1298         * include/features.h (__GLIBC_MINOR__): Bump to 3.
1300 2002-01-02  Roland McGrath  <roland@frob.com>
1302         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
1303         __sigisemptyset.  Don't use MASK uninitialized.
1305         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
1306         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
1307         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
1308         __sigdelset, __sigaddset, __sigorset.
1310         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
1311         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
1313         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
1314         _hurd_ports is null.
1316         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
1317         for old CMU and new OSF Mach interface flavors.
1318         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
1319         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1321         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
1323         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
1324         Pass extra arguments to task_create for OSF variant.
1325         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1327         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
1328         conditional on [HAVE_AUX_VECTOR].
1330         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
1331         mach_msg_timeout_t as type of final argument.
1333         * hurd/privports.c (__get_privileged_ports):
1334         Change host_priv_t to mach_port_t in argument type.
1335         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
1336         Update decls.
1338         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
1339         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
1340         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
1341         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
1342         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
1343         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1345 2002-01-01  Roland McGrath  <roland@frob.com>
1347         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
1349 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
1351         * include/stdlib.h: Define inlines for the _l variants of the strto*
1352         functions.
1354 2002-01-01  Roland McGrath  <roland@frob.com>
1356         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
1358         * mach/Machrules (MIG): Set CPP as well as CC.
1360 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
1362         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
1363         locale to parse /proc/loadavg [PR libc/2760].
1365 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
1367         * elf/dl-conflict.c: Include sys/param.h.
1368         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
1369         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
1370         warning.
1371         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
1372         literals to avoid warnings.
1374 2001-12-31  Andreas Jaeger  <aj@suse.de>
1376         * configure.in: Don't check for gsed since we do not use it anywhere.
1378 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
1380         * io/fts.c: Update from BSD to fix memory leaks.
1382 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
1384         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
1385         * elf/chroot_canon.c: Likewise.
1386         * elf/dl-object.c: Likewise.
1387         * iconv/iconv_charmap.c: Likewise.
1388         * iconv/iconv_prog.c: Likewise.
1389         * libio/iogetdelim.c: Likewise.
1390         * locale/lc-time.c: Likewise.
1391         * stdlib/canonicalize.c: Likewise.
1392         * sunrpc/svc.c: Likewise.
1393         * sysdeps/generic/glob.c: Likewise.
1395 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1397         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
1398         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
1399         remove high order bit from the program counter.
1400         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
1402 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1404         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1405         unnecessary code and add missing reloc types.
1406         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
1407         case for reloc type R_390_NONE.
1409 2001-12-28  Andreas Jaeger  <aj@suse.de>
1411         * io/bug-ftw3.c: Include string.h for prototypes.
1413         * crypt/md5test.c (main): Remove unused variable.
1415         * dlfcn/modstatic.c: Add prototype to avoid warning.
1417 2001-12-26  Roland McGrath  <roland@frob.com>
1419         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
1420         check only (SS->pending & MASK) for the signal to return.
1421         From Jeroen Dekkers <jeroen@dekkers.cx>.
1423 2001-12-22  Roland McGrath  <roland@frob.com>
1425         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
1426         Use preprocessor #if conditionals instead of `if' to avoid
1427         warnings about divide by zero in dead code.
1429         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
1430         _hurd_port_init, and __hurd_self_sigstate.
1432         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
1434 2001-12-21  Andreas Jaeger  <aj@suse.de>
1436         * elf/dblloadmod1.c: Add prototype to avoid warning.
1437         * elf/dblloadmod2.c: Likewise.
1438         * elf/dblloadmod3.c: Likewise.
1439         * elf/reldepmod5.c: Likewise.
1440         * elf/reldepmod6.c: Likewise.
1442         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
1443         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
1444         used on all architectures.
1446         * sunrpc/svc_tcp.c: Add noreturn attribute for
1447         svctcp_rendezvous_abort.
1448         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
1450         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
1451         to avoid warning.
1453 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
1455         * manual/llio.texi (aio_fsync): Fix a typo.
1456         Patch by Tammy Fox <tfox@redhat.com>.
1458 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1460         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
1461         stack bias from child stack pointer before passing it to clone syscall.
1463 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
1465         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
1466         _SC_TZNAME_MAX.
1467         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
1468         Reported by Thorsten Kukuk <kukuk@suse.de>.
1470         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
1471         add some casts.
1473         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
1475 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
1477         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
1478         conforming: return EBADF if file descriptor is invalid and EINVAL
1479         if file descriptor is no valid tty.
1480         * login/tst-grantpt.c: New file.
1481         * login/Makefile (tests): Add tst-grantpt.
1483 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
1485         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
1486         different than implemented in last patch.
1487         * io/bug-ftw3.c: Adjust test for changed handling of
1488         inaccessibility of toplevel dir.
1490 2001-12-16  Roland McGrath  <roland@frob.com>
1492         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
1493         * grp/initgroups.c (internal_getgrouplist): Likewise.
1495         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
1496         `default:' to silence new GCC warning.
1497         Rewrite cast of lvalue to silence new GCC warning.
1499         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
1501         * sysdeps/mach/hurd/spawni.c: New file, by me with a
1502         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
1504 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
1506         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
1507         Patch by Stephen R. van den Berg.
1509         * crypt/md5.h: Define md5_uintptr.
1511 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1513         * libio/tst_swprintf.c (main): Add test for string argument with
1514         zero precision.
1515         * stdio-common/Makefile (tests): Add tst-sprintf.
1516         * stdio-common/tst-sprintf.c: New file.
1518 2001-12-13  Andreas Schwab  <schwab@suse.de>
1520         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
1521         zero precision with wide character string format.
1523 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
1525         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
1526         but have a user supplied buffer, return the empty buffer, not NULL.
1528 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1530         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
1531         Patch by Eric Sharkey <sharkey@netrics.com>.
1533         * crypt/md5test.c (main): Add test for multiple calls to
1534         __md5_process_bytes to itererate over input string.
1536 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
1538         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
1539         from __nis_findfastest.  Take timeout value from parameter.
1540         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
1541         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
1542         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
1544 2001-12-12  Andreas Jaeger  <aj@suse.de>
1546         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
1547         combreloc test so that it works in this case.
1549         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
1551 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
1553         * sysdeps/sh/Makefile: New file.
1554         * sysdeps/sh/_mcount.S: New file.
1555         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
1556         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
1558 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1560         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
1561         limitation [PR libc/2564].
1563 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
1565         * elf/Makefile (dl-routines): Add conflict.
1566         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
1567         (ld.so): Add _begin local symbol.
1568         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
1569         Define.
1570         * elf/dl-deps.c (_dl_build_local_scope): New.
1571         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
1572         of all libraries.
1573         * elf/do-rel.h (VALIDX): Define.
1574         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
1575         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
1576         can be skipped.
1577         * elf/dl-conflict.c: New file.
1578         * elf/dl-lookup.c (_dl_debug_bindings): New.
1579         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
1580         non-NULL.
1581         (_dl_lookup_symbol_skip): Likewise.
1582         (_dl_lookup_versioned_symbol): Likewise.
1583         (_dl_lookup_versioned_symbol_skip): Likewise.
1584         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
1585         define to ElfW(Rel).
1586         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
1587         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
1588         ranges.
1589         Don't adjust address dynamic tags if l_addr is 0.
1590         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
1591         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
1592         (VALIDX, ADDRIDX): Define.
1593         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
1594         (dl_main): Print library list for LD_TRACE_PRELINKING.
1595         If prelinking information can be used, skip relocating libraries and
1596         call _dl_resolve_conflicts instead.
1597         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
1598         * elf/dl-load.c (_dl_map_object): Don't create fake libs
1599         if LD_TRACE_PRELINKING.
1600         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
1601         + DT_ADDRNUM.
1602         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
1603         (DL_DEBUG_PRELINK): Define.
1604         (_dl_resolve_conflicts): Add prototype.
1606         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
1607         .plt for prelinked libraries where prelinking info cannot be used.
1608         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
1609         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
1610         * sysdeps/arm/bits/link.h: New file.
1611         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
1612         content of .got[1].
1613         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1614         (ELF_MACHINE_PLT_REL): Define.
1615         (elf_machine_rela, elf_machine_rela_relative): New.
1616         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
1617         of adjusting it if prelinked and prelinking cannot be used.
1618         * sysdeps/i386/bits/link.h: New file.
1619         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
1620         content of .got[1].
1621         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1622         (ELF_MACHINE_PLT_REL): Define.
1623         (elf_machine_rela, elf_machine_rela_relative): New.
1624         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
1625         of adjusting it if prelinked and prelinking cannot be used.
1626         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
1627         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
1628         to find out map for R_PPC_JMP_SLOT relocs.
1629         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
1630         (OPCODE_BA): Define.
1631         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1632         libraries where prelinking info cannot be used.
1633         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
1634         (elf_machine_fixup_plt): Call sparc_fixup_plt.
1635         (elf_machine_rela): Set value to 0 if relocating conflicts.
1636         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
1637         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
1638         (sparc64_fixup_plt): Fix a typo.
1639         (elf_machine_rela): Set value to 0 if relocating conflicts.
1640         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
1641         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1642         libraries where prelinking info cannot be used.
1643         * sysdeps/sh/bits/link.h: New file.
1644         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
1645         content of .got[1].
1646         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
1647         of adjusting it if prelinked and prelinking cannot be used.
1648         * sysdeps/s390/s390-32/bits/link.h: New file.
1649         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
1650         Save original content of .got[1].
1651         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1652         of adjusting it if prelinked and prelinking cannot be used.
1653         * sysdeps/s390/s390-64/bits/link.h: New file.
1654         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
1655         Save original content of .got[1].
1656         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1657         of adjusting it if prelinked and prelinking cannot be used.
1658         * sysdeps/x86_64/bits/link.h: New file.
1659         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1660         Save original content of .got[1].
1661         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
1662         of adjusting it if prelinked and prelinking cannot be used.
1664 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1666         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
1667         where appropriate instead of numbers.  Little optimizations.
1669 2001-12-10  Roland McGrath  <roland@frob.com>
1671         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
1672         set it.
1674         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
1675         set to GLIBC_2.2.5, not GLIBC_2.2.4.
1677         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
1678         Fix conditionals so this is set by default for stdio and not for libio.
1679         * sysdeps/mach/hurd/configure: Regenerated.
1681 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
1683         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
1685 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
1687         * io/Makefile (tests): Add bug-ftw3.
1688         * io/bug-ftw3.c: New file.
1690         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
1691         matches and GLOB_NOCHECK is set.
1692         * posix/globtest.sh: Correct expected result for NOCHECK test.
1694         * po/ca.po: Update from translation team.
1696 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
1698         Implement transliteration of characters in strings of the locale
1699         definitions.
1700         * locale/programs/linereader.c: Adjust for additional parameter to
1701         lr_token.
1702         (get_string): If character <Uxxxx> is not found try to transliterate
1703         it.
1704         * locale/programs/ld-ctype.c: Adjust for additional parameter to
1705         lr_token.  Add const to charmap parameter of all functions.
1706         (find_translit, find_translit2): New functions.
1707         * locale/programs/charmap.c: Adjust for additional parameter to
1708         lr_token.
1709         * locale/programs/repertoire.c: Likewise.
1710         * locale/programs/linereader.h: Likewise.
1711         * locale/programs/ld-address.c: Likewise.  Add const to charmap
1712         parameter of all functions.
1713         * locale/programs/ld-collate.c: Likewise.
1714         * locale/programs/ld-identification.c: Likewise.
1715         * locale/programs/ld-measurement.c: Likewise.
1716         * locale/programs/ld-messages.c: Likewise.
1717         * locale/programs/ld-monetary.c: Likewise.
1718         * locale/programs/ld-name.c: Likewise.
1719         * locale/programs/ld-numeric.c: Likewise.
1720         * locale/programs/ld-paper.c: Likewise.
1721         * locale/programs/ld-paper.c: Likewise.
1722         * locale/programs/ld-telephone.c: Likewise.
1723         * locale/programs/ld-time.c: Likewise.
1724         * locale/programs/locfile.c: Likewise.
1725         * locale/programs/localedef.c: Likewise.
1726         * locale/programs/localedef.h: Likewise.
1727         * locale/programs/locfile.h: Likewise.  Add declaration for
1728         find_translit.
1729         * locale/programs/simple-hash.c: Add const to first parameter of
1730         find_entry, iterate_table, and lookup.
1731         * locale/programs/simple-hash.h: Likewise.
1732         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
1733         instead.
1734         * include/locale.h: Define __LC_LAST.
1735         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
1737 2001-12-07  Geoff Keating  <geoffk@redhat.com>
1739         * sysdeps/powerpc/Dist: Update for recent FP changes.
1740         * sysdeps/powerpc/fpu/Dist: Likewise.
1742 2001-12-07  Andreas Schwab  <schwab@suse.de>
1744         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
1746 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1748         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
1749         save/restore functions here.
1750         (libm-support): Don't define these functions here.
1751         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
1752         functions here.
1753         * sysdeps/powerpc/fe_nomask.c: Move to...
1754         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
1755         * sysdeps/powerpc/fprrest.S: Move to...
1756         * sysdeps/powerpc/fpu/fprrest.S: ... here.
1757         * sysdeps/powerpc/fprsave.S: Move to...
1758         * sysdeps/powerpc/fpu/fprsave.S: ... here.
1760 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1762         * sysdeps/unix/sysv/linux/opensock.c: New file.
1764 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1766         * config.make.in (with-fp): Define from configure.
1767         * configure.in: Substitute with_fp.
1768         * configure: Regenerate.
1769         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
1770         specified, and don't change FPU environment.
1772 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1774         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
1775         * assert/assert.c: Check result of __asprintf call and don't use
1776         string if it failed.
1777         * assert/assert-perr.c: Likewise.
1778         * inet/rcmd.c: Likewise.
1779         * locale/programs/localedef.c (main): Check result of
1780         construct_output_path and exit if it failed.
1781         (construct_output_path): Check result of asprintf and mkdir calls and
1782         fail if they failed.
1783         * posix/getopt.c: Check result of __asprintf calls and fail if
1784         they failed.
1785         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
1787 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1789         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
1790         patch.
1791         * sysdeps/generic/strncase.c: Likewise.
1792         * string/tester.c: Add tests for strcasecmp and strncasecmp.
1794 2001-12-05  Geoff Keating  <geoffk@redhat.com>
1796         * scripts/cpp: Test the exit status from 'type', not 'awk'.
1798         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
1799         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
1800         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
1801         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
1802         * sysdeps/powerpc/fclrexcpt.c: Move to...
1803         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
1804         * sysdeps/powerpc/fpu_control.h: Move to...
1805         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
1807 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1809         * iconvdata/ibm1129.h: Remove duplicate mappings.
1810         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
1811         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
1812         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1814         * timezone/zic.c: Fix handling of turnaround times.
1815         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
1817 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
1819         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
1820         overflow problem.
1822 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1824         * posix/regex.c: For use outside glibc defined bounded pointer
1825         macros here.  Patch by Jim Meyering <jim@meyering.net>.
1827         * iconvdata/Makefile (modules): Add TCVN5712-1.
1828         * iconvdata/TESTS: Add TCVN5712-1.
1829         * iconvdata/gconv-modules: Likewise.
1830         * iconvdata/tcvn5712-1.c: New file.
1831         * iconvdata/testdata/TCVN-5712: New file.
1832         * iconvdata/testdata/TCVN-5712..UTF8: New file.
1834 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
1836         * iconvdata/cp1258.c: Optimize conversion from UCS4.
1838 2001-12-02  Roland McGrath  <roland@frob.com>
1840         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1842         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1843         Reported by Jeff Bailey <jbailey@nisa.net>.
1845         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1846         Reported by Jeff Bailey <jbailey@nisa.net>.
1848         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
1849         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
1850         Reported by Jeff Bailey <jbailey@nisa.net>.
1852 2001-12-01  Roland McGrath  <roland@frob.com>
1854         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
1855         missing backslash in test arguments.
1856         * sysdeps/mach/hurd/configure: Regenerated.
1858 2001-11-26  Roland McGrath  <roland@frob.com>
1860         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1861         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1863 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
1865         * iconvdata/Makefile (modules): Add ARMSCII-8.
1866         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1867         * iconvdata/armscii-8.c: New file.
1869 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1871         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
1872         don't match, fix {{a,b},c} globbing, clean up.
1873         Patch by Flavio Veloso <flaviovs@magnux.com>.
1874         * posix/globtest.sh: Add new tests.
1876 2001-11-29  Andreas Jaeger  <aj@suse.de>
1878         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1879         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1881         * sysdeps/generic/abort.c: Include libioP.h for
1882         _IO_flush_all_lockp prototype.
1884 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
1886         * posix/regex.h: Define __restrict_arr correctly.
1888 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1890         * iconvdata/ibm1163.c: New file.
1891         * iconvdata/ibm1163.h: New file.
1892         * iconvdata/ibm1164.c: New file.
1893         * iconvdata/ibm1164.h: New file.
1894         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
1895         * iconvdata/Makefile: Likewise.
1896         * iconvdata/testdata/IBM1163: New file.
1897         * iconvdata/testdata/IBM1163..UTF8: New file.
1898         * iconvdata/testdata/IBM1164: New file.
1899         * iconvdata/testdata/IBM1164..UTF8: New file.
1900         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1902         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
1903         * iconvdata/ibm1124.h: Likewise.
1904         * iconvdata/ibm1132.h: Likewise.
1905         * iconvdata/ibm1133.h: Likewise.
1906         * iconvdata/ibm1160.h: Likewise.
1907         * iconvdata/ibm1161.h: Likewise.
1908         * iconvdata/ibm1162.h: Likewise.
1909         * iconvdata/ibm856.h: Likewise.
1910         * iconvdata/ibm922.h: Likewise.
1911         * iconvdata/ibm930.h: Likewise.
1912         * iconvdata/ibm932.h: Likewise.
1913         * iconvdata/ibm933.h: Likewise.
1914         * iconvdata/ibm935.h: Likewise.
1915         * iconvdata/ibm937.h: Likewise.
1916         * iconvdata/ibm939.h: Likewise.
1917         * iconvdata/ibm943.h: Likewise.
1918         * iconvdata/ibm930.c: Pretty printing.
1919         * iconvdata/ibm937.c: Avoid access accross array boundary.
1921         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
1922         the current locale's codeset.
1923         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
1924         empty input string.
1925         * iconv/iconv_prog.c: Pass empty strings as default value for to-
1926         and from-charset.  Don't determine locale's charset here.
1928         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
1929         as the old _IO_flush_all but lock only if parameter is nonzero.
1930         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
1931         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
1932         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
1933         if libio is used [PR libc/2575].
1935 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
1937         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1938         __signbitl): Only define for ISO C99.
1940 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1942         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
1943         herrnop to NETDB_INTERNAL if we run out of buffer space.
1945 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1947         * nss/nss_files/files-XXX.c (internal_getent): Correct input
1948         overflow test for platforms with signed char.
1949         Reported by Andrew Haley <aph@cambridge.redhat.com>.
1951 2001-11-28  Bruno Haible  <bruno@clisp.org>
1953         * locale/programs/simple-hash.c (lookup_2): Remove function.
1954         (insert_entry_2): Call lookup instead of lookup_2.
1956 2001-03-04  Bruno Haible  <bruno@clisp.org>
1958         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1960 2001-10-31  Bruno Haible  <bruno@clisp.org>
1962         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1964 2001-03-21  Bruno Haible  <bruno@clisp.org>
1966         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
1967         chokes on empty macro arguments.
1968         * intl/plural.y: Add #pragma for alloca on AIX 3.
1970 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1972         * intl/dcigettext.c (guess_category_value): Only implement for
1973         glibc.  Otherwise rely on function _nl_locale_name which isn't
1974         present in the glibc sources.
1976 2001-09-24  Bruno Haible  <bruno@clisp.org>
1978         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1979         transliteration when building on a glibc system but outside glibc.
1981 2001-09-22  Bruno Haible  <bruno@clisp.org>
1983         * intl/plural-eval.c: New file, extracted from dcigettext.c.
1984         * intl/dcigettext.c (plural_eval): Remove function, moved to
1985         intl/plural-eval.c.
1986         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1987         Include plural-eval.c.
1989 2001-09-22  Bruno Haible  <bruno@clisp.org>
1991         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1992         don't start with a digit; nplurals must be positive.
1994 2001-09-02  Bruno Haible  <bruno@clisp.org>
1996         * intl/plural-exp.h: New file, extracted from gettextP.h.
1997         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1998         * intl/gettextP.h (struct expression, struct parse_args,
1999         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
2000         * intl/loadmsgcat.c: Include plural-exp.h.
2001         (PLURAL_PARSE): Move macro to plural-exp.h.
2002         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
2003         plural-exp.c.
2004         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
2005         EXTRACT_PLURAL_EXPRESSION.
2006         (_nl_unload_domain): Update.
2007         * intl/dcigettext.c: Include plural-exp.h.
2008         * intl/plural.y: Include plural-exp.h, not gettextP.h.
2009         (FREE_EXPRESSION): Move macro to plural-exp.h.
2010         * intl/Makefile (routines): Add plural-exp.
2011         (distribute): Add plural-exp.h.
2013 2001-07-28  Bruno Haible  <bruno@clisp.org>
2015         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
2016         isdigit, tolower argument to 'unsigned char'.
2017         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
2018         'unsigned char'.
2019         * intl/localealias.c (read_alias_file): Cast isspace argument to
2020         'unsigned char'.
2022 2001-10-20  Bruno Haible  <bruno@clisp.org>
2024         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
2025         anyway.)
2026         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
2027         with the variable 'index' in plural_lookup.
2028         * intl/l10nflist.c (strchr): Likewise.
2029         * intl/localealias.c (strchr): Likewise.
2031         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
2032         * intl/bindtextdom.c: Likewise.
2033         * intl/dcigettext.c: Likewise.
2034         * intl/dgettext.c: Likewise.
2035         * intl/dngettext.c: Likewise.
2036         * intl/explodename.c: Likewise.
2037         * intl/finddomain.c: Likewise.
2038         * intl/gettext.c: Likewise.
2039         * intl/l10nflist.c: Likewise.
2040         * intl/loadmsgcat.c: Likewise.
2041         * intl/localealias.c: Likewise.
2042         * intl/ngettext.c: Likewise.
2043         * intl/textdomain.c: Likewise.
2044         * intl/gettext.h: Assume <limits.h> exists.
2046 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
2048         * stdio-common/Makefile (tests): Add scanf11.
2049         * stdio-common/scanf11.c: New file.
2051 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
2053         * version.h (RELEASE): Define as development.
2054         (VERSION): Set to 2.2.90.
2056 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
2058         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
2059         * nis/nss_nis/nis-grp.c: Likewise.
2060         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2062         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
2063         * nis/nss_nis/nis-pwd.c: Likewise.
2064         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2066         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
2067         * nis/nss_nisplus/nisplus-parser.c: Likewise.
2068         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2070         * nscd/grpcache.c: Use strtoul instead of atol.
2071         * nscd/pwdcache.c: Likewise.
2072         * nss/getent.c: Likewise.
2074 2001-11-27  Paul Eggert  <eggert@twinsun.com>
2076         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
2077         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
2079 2001-11-19  Bruno Haible  <bruno@clisp.org>
2081         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
2082         90%.
2083         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
2084         improves the quality of the hash function, especially for short
2085         strings.
2087 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
2089         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
2090         are found call conv_error and not input_error [PR libc/2669].
2092         * math/bits/mathcalls.h: Mark ceil and floor as const.
2093         Reported by David Mosberger.
2095 2001-11-21  Jim Meyering  <meyering@lucent.com>
2097         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
2098         Define to be __-prefixed.
2099         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
2101 2001-11-26  Andreas Jaeger  <aj@suse.de>
2103         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
2104         avoid warning.
2106 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
2108         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
2109         initialization.
2111         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
2112         unused variables.  Fix threshold for returning 1.0.
2114         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
2115         argument.
2117         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
2118         remove unused variables.
2120         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
2122         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
2123         include local math header files.
2125 2001-11-22  Andreas Jaeger  <aj@suse.de>
2127         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
2128         avoid warning.
2130 2001-11-21  Andreas Jaeger  <aj@suse.de>
2132         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
2134         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
2135         sys/debugreg.h
2137 2001-11-15  Andreas Jaeger  <aj@suse.de>
2139         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
2140         compilers that support it.
2142         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
2143         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
2144         * stdlib/stdlib.h: Likewise.
2146 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
2148         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
2149         statement with gotos.
2150         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
2152 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
2154         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
2156 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
2158         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
2160 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
2161             H.J. Lu  <hjl@gnu.org>
2163         * Versions.def (libc): Add GCC_3.0.
2164         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
2165         if gcc supports this flag.
2166         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
2167         (gcc3): Allow glibc to be compiled with gcc 3.x.
2168         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
2169         * config.make.in (static-libgcc, unwind-find-fde): Add.
2170         * Makerules (build-shlib-helper, build-module-helper): Use it.
2171         * scripts/versions.awk: Make sure GLIBC_ versions come first.
2172         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
2173         necessary.
2174         (_fini): Call __deregister_frame_info_bases if
2175         __register_frame_info_bases was used to register.
2176         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
2177         for GLIBC_2.0.
2178         (__register_frame_info_bases, __register_frame_info_table_bases,
2179         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
2180         * elf/Makefile (routines): Add unwind-dw2-fde.
2181         (shared-only-routines): Add unwind-dw2-fde.
2182         * sysdeps/alpha/gccframe.h: New file.
2183         * sysdeps/arm/gccframe.h: New file.
2184         * sysdeps/generic/framestate.c: New file.
2185         * sysdeps/generic/dwarf2.h: New file.
2186         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
2187         * sysdeps/generic/unwind-dw2-fde.c: New file.
2188         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
2189         * sysdeps/generic/unwind-dw2-fde.h: New file.
2190         * sysdeps/generic/unwind-dw2.c: New file.
2191         * sysdeps/generic/unwind-pe.h: New file.
2192         * sysdeps/generic/unwind.h: New file.
2193         * sysdeps/hppa/gccframe.h: New file.
2194         * sysdeps/i386/gccframe.h: New file.
2195         * sysdeps/m68k/gccframe.h: New file.
2196         * sysdeps/mips/gccframe.h: New file.
2197         * sysdeps/powerpc/gccframe.h: New file.
2198         * sysdeps/s390/gccframe.h: New file.
2199         * sysdeps/sh/gccframe.h: New file.
2200         * sysdeps/sparc/gccframe.h: New file.
2201         * sysdeps/vax/gccframe.h: New file.
2202         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
2203         Set on all architectures except ia64.
2204         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
2205         for i386.
2206         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
2207         __deregister_frame_info): Move to elf/Versions.
2208         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
2209         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2210         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2211         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
2212         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2213         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2214         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2215         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2216         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2217         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
2218         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2219         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2220         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2221         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2222         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2223         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2224         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2225         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2227 2001-11-15  Jeff Law  <law@redhat.com>
2229         * posix/regex.c (uintptr_t): Do not provide a definition if the
2230         system provided one.
2232 2001-11-13  Roland McGrath  <roland@frob.com>
2234         * stdio-common/tmpfile.c: Moved to ...
2235         * sysdeps/generic/tmpfile.c: ... here.
2236         * sysdeps/mach/hurd/tmpfile.c: New file.
2238         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
2239         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
2240         (fopenport): Define as weak alias.
2242         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
2243         * libio/libioP.h: ... to here.
2245 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
2247         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
2248         program header twice.  Construct list with the needed information.
2250 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
2252         * po/ca.po: Update from translation team.
2254         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
2255         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
2256         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
2257         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2259 2001-11-10  Andreas Jaeger  <aj@suse.de>
2261         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
2262         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2263         Contributed by Stephen L Moshier <moshier@mediaone.net>.
2265 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
2267         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
2268         correctly.
2269         * elf/dl-load.c (is_dst): New function.
2270         (_dl_dst_count): Use is_dst to check for DST variable.
2271         (_dl_dst_substitute): Likewise.
2273 2001-11-09  Roland McGrath  <roland@frob.com>
2275         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
2276         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
2277         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
2278         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
2279         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
2280         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
2281         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
2282         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
2283         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
2284         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
2285         * sysdeps/mach/hurd/powerpc/Dist: New file.
2287         * hurd/privports.c (__get_privileged_ports):
2288         Only contact the proc server if necessary for this call.
2289         Suggested by Neal H Walfield <neal@cs.uml.edu>.
2290         Check error return for mach_port_mod_refs.
2292 2001-11-09  Andreas Schwab  <schwab@suse.de>
2294         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
2296 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
2298         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
2299         object is always the last in the list.
2300         (_dl_map_object_from_fd): Delete code to remove from object list
2301         when DF_1_NOOPEN is seen.  This is done in lose.
2303 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
2305         * elf/dl-object.c (_dl_new_object): Various small optimizations.
2307 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
2309         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
2310         HWCAP_CHECK macro code.
2312         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
2313         Now returns MAP_FAILED on error.
2314         * elf/rtld.c: Adjust caller.
2315         * sysdeps/generic/dl-cache.c: Likewise.
2316         * sysdeps/generic/ldsodefs.h: Adjust description.
2318         * elf/dl-version.c (match_symbol): Optimize error handling for size.
2319         (_dl_check_map_versions): Likewise.
2321 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
2323         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
2324         _dl_signal_error directly, always use lose.  Set fd to -1 after
2325         file is closed.
2326         (lose): Don't call close if fd == -1.
2328 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
2330         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
2331          Also fix typo @code {mbsinit} to @code{mbsinit}.
2333 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
2335         * elf/dl-profile.c: Replace state variable with simple flag named
2336         running.  Remove commented-out code.
2338         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
2339         (_dl_init_paths): Likewise.
2340         (_dl_map_object_from_fd): Likewise.
2341         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2343 2001-11-06  Roland McGrath  <roland@frob.com>
2345         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
2346         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
2348         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
2349         sysdeps/powerpc/elf/sysdep.h.
2350         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
2352 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
2354         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
2355         speed.
2356         (process_envvars): Some more optimizations.
2357         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
2359         * elf/elf.h: Add dynamic tag definitions for prelinking.
2361         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
2362         Rewrite code to remove environment varables for SUID binaries.
2363         Small optimization in LD_PROFILE handling.
2364         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
2365         changes.
2366         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2368         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
2370         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
2371         strings.  Change type of second parameter.
2372         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
2373         for last change.
2375         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
2377 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2379         * manual/string.texi: Fix typos.
2380         * manual/examples/argp-ex2.c: Likewise.
2382 2001-11-05  Roland McGrath  <roland@frob.com>
2384         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
2385         the more-specific unix/sysv/linux/powerpc file and breaks everything.
2386         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
2387         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
2388         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
2389         here, put under [__ELF__].
2391 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
2393         * manual/charset.texi: Extensive editing work.
2394         * manual/nss.texi: Likewise.
2395         Changes by Dennis Grace <dgrace@us.ibm.com>.
2397 2001-11-04  Roland McGrath  <roland@frob.com>
2399         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
2400         parameter to dir_mkfile.
2402 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
2404         * string/bits/string2.h (__strndup): If n is smaller than len, set
2405         len to n + 1.
2406         * string/tester.c (test_strndup): New function.
2407         (main): Call it.
2409 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
2411         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
2413         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
2414         * scripts/cpp: New file.
2416         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
2417         for rtld_search_dirs content.  Minor optimizations.
2419 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2421         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
2422         avoiding unnecessary duplication.
2424 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
2426         * elf/dl-load.c (_dl_map_object): If library was found using
2427         LD_LIBRARY_PATH, don't try RUNPATH list.
2429 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2431         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
2432         Correct second argument of register_dump call.
2433         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
2434         Likewise.
2436 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2438         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
2439         modules.
2440         * iconvdata/TESTS: Likewise.
2441         * iconvdata/gconv-modules: Likewise.
2442         * iconvdata/ibm1132.c: New file.
2443         * iconvdata/ibm1132.h: New file.
2444         * iconvdata/ibm1133.c: New file.
2445         * iconvdata/ibm1133.h: New file.
2446         * iconvdata/ibm1162.c: New file.
2447         * iconvdata/ibm1162.h: New file.
2448         * iconvdata/testdata/IBM1132: New file.
2449         * iconvdata/testdata/IBM1132..UTF8: New file.
2450         * iconvdata/testdata/IBM1133: New file.
2451         * iconvdata/testdata/IBM1133..UTF8: New file.
2452         * iconvdata/testdata/IBM1162: New file.
2453         * iconvdata/testdata/IBM1162..UTF8: New file.
2454         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
2456         * string/string.h: Fix typo in comment.
2457         * wcsmbs/wchar.h: Likewise.
2459 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
2461         * manual/getopt.texi (getopt_long, getopt_long_only): Include
2462         const in type of longopts parameter.
2464 2001-10-29  Andreas Jaeger  <aj@suse.de>
2466         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
2468 2001-10-29  Kevin Ryde  <user42@zip.com.au>
2470         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
2471         output, clarify `#' behaviour on 0.
2472         (Floating-Point Conversions): Clarify that %g only uses %e when
2473         the exponent would be greater than 1.
2475 2001-10-28  Roland McGrath  <roland@frob.com>
2477         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
2478         * sysdeps/mach/powerpc/machine-sp.h: New file.
2479         * sysdeps/mach/powerpc/sysdep.h: New file.
2480         * sysdeps/mach/powerpc/thread_state.h: New file.
2482         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
2483         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
2484         expect to need the same thing on every platform.
2486         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
2487         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
2489         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
2490         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
2491         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
2492         Move all these assembly-related definitions to ...
2493         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
2495         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
2496         by Peter Bruin <pjbruin@dds.nl>.
2498         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
2499         packing results for a `poll' call.
2501 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2503         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
2504         correctly.
2505         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
2506         bracket expression.
2508         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2509         nrules value.
2510         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
2512 2001-10-24  H.J. Lu  <hjl@gnu.org>
2514         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
2515         Use __BEGIN_DECLS/__END_DECLS around prototypes.
2516         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
2518 2001-10-21  Jim Meyering  <meyering@lucent.com>
2520         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
2521         this code would end up calling gettext even in packages built
2522         with --disable-nls.
2523         * posix/getopt.c (_): Likewise.
2524         * posix/regex.c (_): Likewise.
2526 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2528         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
2529         lookup not ip6.int.
2530         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2531         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
2533 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
2535         * misc/sys/cdefs.h (__attribute_used__): Define.
2536         * elf/rtld.c (_dl_start): Add __attribute_used__.
2537         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
2539 2001-10-25  Andreas Schwab  <schwab@suse.de>
2541         * stdlib/a64l.c: Expect least significant digit first.
2542         * stdlib/l64a.c: Produce least significant digit first.
2543         * stdlib/Makefile (tests): Add test-a64l.
2544         * stdlib/test-a64l.c: New file.
2545         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
2547 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
2549         * po/sk.po: Update from translation team.
2551 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
2553         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
2555 2001-10-18  Andreas Schwab  <schwab@suse.de>
2557         * math/libm-test.inc (print_ulps): Print ulp values rounded to
2558         next whole number.
2559         (print_function_ulps): Likewise.
2560         (print_complex_function_ulps): Likewise.
2561         (print_max_error): Likewise.
2562         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
2564 2001-10-16  Andreas Schwab  <schwab@suse.de>
2566         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
2567         implementation.
2569         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
2570         BSD_SETJMP or BSD__SETJMP is defined, resp.
2571         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
2572         a tail call to __sigsetjmp that would require extending the
2573         caller's frame.
2574         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
2575         * sysdeps/m68k/bsd-setjmp.S: Deleted.
2576         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
2577         Reported by Jes Sorensen <jes@trained-monkey.org>.
2579 2001-10-16  Andreas Jaeger  <aj@suse.de>
2581         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
2582         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
2583         close PR libc/2589.
2585 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
2587         * po/ca.po: New file.  Contributed by the translation team.
2589 2001-10-15  Ralf Baechle  <ralf@gnu.org>
2591         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
2592         a varargs prototype.  Remove dependency from kernel header files.
2594         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
2595         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
2597 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2599         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
2600         to generate hexadecimal identifier.
2601         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
2603 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
2605         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
2607 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2609         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
2610         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
2611         Contributed by Stephen L Moshier <moshier@mediaone.net>.
2613         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
2614         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2615         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
2616         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
2617         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
2618         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
2620         * timezone/africa: Update from tzdata2001d.
2621         * timezone/asia: Likewise.
2622         * timezone/australasia: Likewise.
2623         * timezone/backward: Likewise.
2624         * timezone/europe: Likewise.
2625         * timezone/leapseconds: Likewise.
2626         * timezone/northamerica: Likewise.
2627         * timezone/southamerica: Likewise.
2628         * timezone/zone.tab: Likewise.
2630 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2632         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
2633         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
2635 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
2637         * elf/elf.h (PT_TLS): New definition.
2639 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
2641         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
2642         bits/errno.h
2644 2001-10-07  Roland McGrath  <roland@frob.com>
2646         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
2648 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
2650         * elf/elf.h: Add more ELFOSABI_* constants.
2652 2001-10-04  Ben Collins  <bcollins@debian.org>
2654         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
2655         decleration of __need_wchar_t.
2657 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
2659         * string/bits/string2.h (__strsep_g): Add prototype.
2660         (__strsep): Use it.
2661         * string/Versions (__strsep): Remove.
2662         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
2664 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
2666         * manua/llio.texi: Clarify file references added by mmap.
2667         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
2669 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
2671         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
2672         Add sc_loadrs and sc_rbs_bas to match current kernel.
2674 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2676         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2678         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
2680 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2682         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
2683         object has been bumped because of relocation dependency, avoid
2684         duplicates in l_scope.
2685         (show_scope): Fix typos.
2686         * elf/Makefile: Add rules to build and run reldep6.
2687         * elf/reldep6.c: New file.
2688         * elf/reldep6mod0.c: New file.
2689         * elf/reldep6mod1.c: New file.
2690         * elf/reldep6mod2.c: New file.
2691         * elf/reldep6mod3.c: New file.
2692         * elf/reldep6mod4.c: New file.
2694 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
2696         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
2697         sparc64_fixup_plt.
2698         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
2699         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
2700         for non-lazy binding. Fix .plt[32768+] handling.
2701         (elf_machine_plt_value): Don't add addend.
2702         (elf_machine_rela): Call sparc64_fixup_plt instead of
2703         elf_machine_fixup_plt.
2704         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
2705         dynamic linker at 0xfffff800XXXXXXXX.
2707         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2709 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
2711         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
2713 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
2715         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
2716         declare __cmsg_data field if its size would be bigger than 0.
2717         (CMSG_DATA): Adjust accordingly.
2718         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2719         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
2720         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
2721         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
2722         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2723         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2724         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2726 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
2728         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
2729         * iconvdata/testdata/IBM1160: New file.
2730         * iconvdata/testdata/IBM1160..UTF8: New file.
2731         * iconvdata/testdata/IBM1161: New file.
2732         * iconvdata/testdata/IBM1161..UTF8: New file.
2733         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2735 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2737         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
2738         UL_SETFSIZE computations better.
2740         * rt/Makefile: Remove use of filter for librt again.
2742         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
2743         UL_SETFSIZE computations better.
2745         * string/Versions: Export __strsep for GLIBC_2.2.5.
2746         * string/bits/string2.h: Define all __STRING_INLINE functions if
2747         _FORCE_INLINES is defined.
2748         Use int instead of char of parameter types.
2749         (__strsep): Don't use __strsep_g.  Don't define it.
2750         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
2751         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
2752         __strcpy_small.
2753         (__stpcpy_a_small): Renamed from __stpcpy_small.
2754         (__strcspn_c1): Don't define if _FORCE_INLINES.
2755         (__strspn_c1): Likewise.
2757 2001-09-22  Ben Collins  <bcollins@debian.org>
2759         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
2760         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
2761         * sysdeps/ia64/bits/sigaction.h: Likewise.
2762         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
2764 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
2766         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
2768 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
2770         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
2772 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2774         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
2776 2001-09-20  H.J. Lu  <hjl@gnu.org>
2778         * include/dlfcn.h (__RTLD_SPROF): New definiton.
2779         * elf/dl-open.c (dl_open_worker): Return immediately after loading
2780         for __RTLD_SPROF.
2781         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
2782         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
2784 2001-09-20  H.J. Lu  <hjl@gnu.org>
2786         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
2787         don't add 1.
2789 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2791         * nss/getent.c: Accept -s parameter to overwrite rules in
2792         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
2794         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
2795         with as many ".0" as necessary to form a complete address
2796         inet_network understands.
2798         * nss/getent.c: Various cleanups.  Use simpler and fewer function
2799         calls.
2801 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2803         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
2804         _JMPBUF_UNWINDS.
2805         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
2807 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2809         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
2810         IBM1161.
2811         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
2812         * iconvdata/ibm1160.c: New file.
2813         * iconvdata/ibm1160.h: New file.
2814         * iconvdata/ibm1161.c: New file.
2815         * iconvdata/ibm1161.h: New file.
2816         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2818 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
2820         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
2821         difference between base address and first PT_LOAD's virtual address,
2822         not the base address.
2824 2001-09-11  Tom Rix  <trix@redhat.com>
2826         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
2827         ifdef for __getopt_clean_environment.
2828         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
2830 2001-09-22  Andreas Jaeger  <aj@suse.de>
2832         * elf/reldep4.c (main): Add proper prototype to fix warning.
2834         * elf/reldep5.c (main): Remove unused variable.
2836         * math/math_private.h: Add prototypes.
2838 2001-09-21  Andreas Jaeger  <aj@suse.de>
2840         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
2841         * sysdeps/x86_64/Dist: New file.
2842         * sysdeps/x86_64/soft-fp/Dist: New file.
2844         * sysdeps/gnu/Dist: Remove eval.c.
2846 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
2848         * malloc/memusage.c (realloc): Don't count already allocated
2849         memory in the sums.
2850         (me): Always use dlsym() to find the real implementations.
2852         * malloc/memusage.sh: Make -n option actually do something.
2854 2001-09-20  Andreas Jaeger  <aj@suse.de>
2856         * elf/elf.h (R_390_NUM): Correct value.
2858         * Versions.def: Add missing versions 2.2.3 for libthread_db and
2859         libpthread.
2861         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2862         for x86-64, install x86-64 into */lib64.
2864         * shlib-versions: Add x86-64.
2866         * elf/elf.h: Add x86-64 relocations.
2868 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
2870         * po/fr.po: Update from translation team.
2872 2001-09-19  Andreas Jaeger  <aj@suse.de>
2874         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
2875         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
2876         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
2877         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
2878         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
2879         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
2880         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
2881         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
2882         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
2883         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2884         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
2885         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
2886         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
2887         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
2888         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
2889         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
2890         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
2891         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2892         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
2893         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
2894         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
2895         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
2896         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
2897         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
2898         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
2899         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
2900         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
2901         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
2902         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
2903         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
2904         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
2905         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
2906         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
2907         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
2908         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
2909         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
2910         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
2911         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
2912         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
2913         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
2914         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
2915         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
2916         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
2917         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
2918         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
2919         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
2920         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
2921         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
2922         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2923         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
2924         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
2925         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2926         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
2927         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
2928         * sysdeps/unix/x86_64/sysdep.S: New file.
2929         * sysdeps/unix/x86_64/sysdep.h: New file.
2930         * sysdeps/x86_64/Implies: New file.
2931         * sysdeps/x86_64/Makefile: New file.
2932         * sysdeps/x86_64/Versions: New file.
2933         * sysdeps/x86_64/__longjmp.S: New file.
2934         * sysdeps/x86_64/abort-instr.h: New file.
2935         * sysdeps/x86_64/atomicity.h: New file.
2936         * sysdeps/x86_64/bits/endian.h: New file.
2937         * sysdeps/x86_64/bits/setjmp.h: New file.
2938         * sysdeps/x86_64/bits/string.h: New file.
2939         * sysdeps/x86_64/bp-asm.h: New file.
2940         * sysdeps/x86_64/bsd-_setjmp.S: New file.
2941         * sysdeps/x86_64/bsd-setjmp.S: New file.
2942         * sysdeps/x86_64/dl-machine.h: New file.
2943         * sysdeps/x86_64/elf/initfini.c: New file.
2944         * sysdeps/x86_64/elf/start.S: New file.
2945         * sysdeps/x86_64/ffs.c: New file.
2946         * sysdeps/x86_64/ffsll.c: New file.
2947         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
2948         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
2949         * sysdeps/x86_64/fpu/e_acosl.c: New file.
2950         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
2951         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
2952         * sysdeps/x86_64/fpu/e_expl.c: New file.
2953         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
2954         * sysdeps/x86_64/fpu/e_log10l.S: New file.
2955         * sysdeps/x86_64/fpu/e_log2l.S: New file.
2956         * sysdeps/x86_64/fpu/e_logl.S: New file.
2957         * sysdeps/x86_64/fpu/e_powl.S: New file.
2958         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
2959         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
2960         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
2961         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
2962         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
2963         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
2964         * sysdeps/x86_64/fpu/fegetenv.c: New file.
2965         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
2966         * sysdeps/x86_64/fpu/fegetround.c: New file.
2967         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
2968         * sysdeps/x86_64/fpu/fesetenv.c: New file.
2969         * sysdeps/x86_64/fpu/fesetround.c: New file.
2970         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
2971         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
2972         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
2973         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
2974         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
2975         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
2976         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
2977         * sysdeps/x86_64/fpu/s_atanl.c: New file.
2978         * sysdeps/x86_64/fpu/s_cosl.S: New file.
2979         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
2980         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
2981         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2982         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2983         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2984         * sysdeps/x86_64/fpu/s_logbl.c: New file.
2985         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2986         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2987         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2988         * sysdeps/x86_64/fpu/s_rintl.c: New file.
2989         * sysdeps/x86_64/fpu/s_significandl.c: New file.
2990         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2991         * sysdeps/x86_64/fpu/s_sinl.S: New file.
2992         * sysdeps/x86_64/fpu/s_tanl.S: New file.
2993         * sysdeps/x86_64/gmp-mparam.h: New file.
2994         * sysdeps/x86_64/hp-timing.c: New file.
2995         * sysdeps/x86_64/hp-timing.h: New file.
2996         * sysdeps/x86_64/htonl.S: New file.
2997         * sysdeps/x86_64/memusage.h: New file.
2998         * sysdeps/x86_64/setjmp.S: New file.
2999         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
3000         * sysdeps/x86_64/stackinfo.h: New file.
3001         * sysdeps/x86_64/sysdep.h: New file.
3002         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
3004         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
3005         L Moshier.
3007 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
3009         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
3010         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
3012 2001-09-18  Andreas Schwab  <schwab@suse.de>
3014         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
3015         list, now that l_scope is a pointer.
3017         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
3018         scope list.
3020 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3022         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
3023         (elf_machine_rela_relative): Add a missing declaration.
3025 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
3027         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
3028         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
3029         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
3030         ldd-rewrite scripts.
3032 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
3034         * elf/ldd.bash.in: Update copyright message.
3036 2001-09-17  H.J. Lu  <hjl@gnu.org>
3038         * hurd/hurdmalloc.c (bcopy): Removed.
3039         (realloc): Replace bcopy with memcpy.
3040         * hurd/path-lookup.c (file_name_path_scan): Likewise.
3041         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
3042         * sunrpc/rpcinfo.c (pmapdump): Likewise.
3044         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
3045         (gethostbyaddr): Likewise.
3046         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
3048 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
3050         * sysdeps/gnu/eval.c: Removed.
3052 2001-09-18  Andreas Jaeger  <aj@suse.de>
3054         * sysdeps/i386/fpu/s_logbl.S: Move to ...
3055         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
3057         * sysdeps/i386/fpu/s_rintl.S: Move to ...
3058         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
3060         * sysdeps/i386/fpu/s_significandl.S: Move to ...
3061         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
3063 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
3065         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
3066         nrules value.
3068 2001-09-14  H.J. Lu  <hjl@gnu.org>
3070         * sysdeps/mips/fpu/libm-test-ulps: Updated.
3072 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
3074         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
3075         Patch by Florian La Roche <laroche@redhat.com>.
3077         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
3079         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
3080         ETHER_CRC_LEN.
3082 2001-09-14  Andreas Schwab  <schwab@suse.de>
3084         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
3085         Sumner <bls@sgi.com>.
3086         * posix/execlp.c: Likewise.
3088 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
3090         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
3091         is already found earlier in the search scope.
3093 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
3095         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
3096         filter.
3098 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
3100         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
3102 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
3104         * config.h.in: Enforce optimization to be used.
3105         * Makeconfig (preprocess-versions): Define ASSEMBLER.
3106         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
3107         * posix/Makefile (annexc-CFLAGS): Define to -O.
3108         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
3110 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
3112         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
3113         Patch by Stephan Kulow.
3115 2001-09-08  Ben Collins  <bcollins@debian.org>
3117         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
3118         usage of RESOLVE() (r_type, not reloc->r_type).
3120 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
3122         * elf/dl-object.c: Avoid allocating extra memory block for name.
3123         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
3124         allocated separately.
3125         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
3127 2001-09-08  H.J. Lu  <hjl@gnu.org>
3129         * po/zh_TW.po: Fix a typo.
3131 2001-09-07  Tom Rix  <trix@redhat.com>
3133         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
3135 2001-08-26  Tom Rix  <trix@redhat.com>
3137         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
3138         command line options.
3139         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
3140         * sysdeps/unix/sysv/aix/start.c: Removed.
3141         * sysdeps/unix/sysv/aix/start-libc.c: New file.
3142         * sysdeps/unix/sysv/aix/init-first.c: New file.
3143         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
3145 2001-09-08  Ben Collins  <bcollins@debian.org>
3147         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
3148         * sysdeps/generic/dl-machine.h: Likewise.
3149         * sysdeps/hppa/dl-fptr.c: Likewise.
3150         * sysdeps/ia64/dl-fptr.c: Likewise.
3151         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3152         * sysdeps/mips/dl-machine.h: Likewise.
3153         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3154         * sysdeps/powerpc/dl-machine.c: Likewise.
3156 2001-09-07  Ben Collins  <bcollins@debian.org>
3158         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
3160         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
3162 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
3164         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
3165         dependencies if necessary.
3167         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
3168         loaded directly) determine length if l_initfini list by iterating
3169         over its elements.  Minor optimizations.
3170         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
3171         for dependency objects.
3172         If object was already loaded check whether any of the dependencies
3173         is already on the relocation dependency list.  If yes, remove the
3174         latter.  Minor optimizations.
3175         * elf/dl-lookup.c (add_dependency): Add check for self reference of
3176         maps here.  Search l_initfini list only if the object was loaded
3177         directly and not only as a dependency.
3178         (_dl_lookup_symbol): Add relocation dependency also if object
3179         is not in global scope.  Remove test for self-reference here.
3180         (_dl_lookup_versioned_symbol): Likewise.
3181         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
3182         element of first name record.
3183         * elf/loadtest.c: Add some more test to recognize early if an object
3184         wasn't unloaded.
3185         * elf/Makefile: Add rules to build and run reldep5.
3186         * elf/reldep5.c: New file.
3187         * elf/reldepmod5.c: New file.
3188         * elf/reldepmod6.c: New file.
3190         * elf/reldep2.c: Fix typo.
3192 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
3194         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
3195         elements.  Change l_scope to be a pointer only.
3196         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
3197         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
3198         here add searchlist of newly open file to the dependency's scope.
3199         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
3200         only searchlist from its scope.  Free own scope array if necessary.
3201         * elf/Makefile (tests): Add dblload and dblunload now.
3203 2001-09-06  Andreas Jaeger  <aj@suse.de>
3205         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
3206         Stephen L Moshier.
3208 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
3210         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
3211         they both fail.
3212         * elf/dblload.c: New file.
3213         * elf/dblloadmod1.c: New file.
3214         * elf/dblloadmod2.c: New file.
3215         * elf/dblloadmod3.c: New file.
3216         * elf/dblunload.c: New file.
3218 2001-09-04  Richard Henderson  <rth@redhat.com>
3220         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
3221         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
3223 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
3225         Correct very misleading message for error in failed runtime relocation.
3226         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
3227         place of the error.
3228         (_dl_signal_cerror): Likewise.
3229         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
3230         * elf/dl-close.c: Likewise.
3231         * elf/dl-deps.c: Likewise.
3232         * elf/dl-load.c: Likewise.
3233         * elf/dl-lookup.c: Likewise.
3234         * elf/dl-open.c: Likewise.
3235         * elf/dl-reloc.c: Likewise.
3236         * elf/dl-sym.c: Likewise.
3237         * elf/dl-version.c: Likewise.
3238         * sysdeps/generic/dl-sysdep.c: Likewise.
3240 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
3242         * iconv/strtab.c (strtabinit): Initialize null Strent.
3243         (newstring): Move len == 0 handling...
3244         (strtabadd): ...here.
3245         If len == 1, return null Strent.
3246         When inserting a suffix of an existing string, check if
3247         it is not equal to some suffix already recorded.
3248         Copy left and right members over if adding longer string.
3250 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
3252         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
3254         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
3255         (__syscall_gethostname): Add prototype.
3257 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
3259         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
3261 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
3263         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
3265 2001-08-27  Roland McGrath  <roland@frob.com>
3267         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
3268         short, copy that much into NAME anyway before returning error.
3270 2001-09-01  Richard Henderson  <rth@redhat.com>
3272         * sysdeps/alpha/elf/Dist: Remove file.
3273         * sysdeps/alpha/elf/Makefile: Remove file.
3274         * sysdeps/alpha/elf/crtbegin.S: Remove file.
3275         * sysdeps/alpha/elf/crtend.S: Remove file.
3276         * sysdeps/alpha/elf/initfini.c: New file.
3278 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
3280         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
3281         * iconv/tst-iconv3.c: Likewise.
3283 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
3285         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
3287 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
3289         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
3290         export it.
3291         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
3292         * iconv/iconv_prog.c (insert_cache): New function.
3293         (print_known_names): If cache is used call insert_cache to use the
3294         information from the cache [PR libc/2509].
3296 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
3298         * time/strptime.c (strptime_internal): Recognize 'l' format and
3299         handle it like 'I' for symmetry with strftime.
3301 2001-08-31  Richard Henderson  <rth@redhat.com>
3303         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
3304         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
3305         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
3306         (print_statistics): Make scalar unsigned long long.
3307         * sysdeps/alpha/hp-timing.h: New file.
3309 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
3311         * stdio-common/perror.c (perror): Save errno early, pass it
3312         down to perror_internal.
3313         (perror_internal): Add errnum argument.
3315 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
3317         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
3318         Don't add old memory content for R_ALPHA_REFQUAD.
3320 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3322         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
3323         memory correctly.
3325         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
3326         instead of open, __close instead of close, __getpagesize instead
3327         of getpagesize.
3329         * string/argz-stringify.c (__argz_stringify): Use __strnlen
3330         instead of strnlen.
3331         * include/string.h (strndupa): Redefine here to use __strnlen
3332         instead of strnlen.
3333         * string/strndup.c (__strndup): Use __strnlen not strnlen.
3335         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
3336         connected).
3338 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
3340         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
3341         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
3342         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
3343         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
3344         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
3345         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
3346         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
3348 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3350         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
3352 2001-08-30  Andreas Jaeger  <aj@suse.de>
3354         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
3355         contributed Stephen L Moshier.
3357 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
3359         * sunrpc/etc.rpc (sgi_fam): Add.
3361 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3363         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
3365 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3367         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
3368         first is from a previous call.
3369         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
3371 2001-08-29  Andreas Schwab  <schwab@suse.de>
3373         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
3375 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3377         * config.make.in (INSTALL_SCRIPT): Define.
3378         * Makeconfig (INSTALL_SCRIPT): Define.
3379         * Makerules (do-install-script): New macro to install scripts using
3380         INSTALL_SCRIPT.
3381         (install-bin-script): New rule to install scripts with
3382         do-install-script.
3383         (install-bin-script-nosubdir): New rule.
3384         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
3385         (distinfo-vars): Add $(install-bin-script).
3386         * Rules (others): Likewise.
3387         * Makefile (glibcbug): Install with install-bin-script.
3388         * debug/Makefile (xtrace): Likewise.
3389         (catchsegv): Likewise.
3390         * elf/Makefile (ldd): Likewise.
3391         * malloc/Makefile (mtrace): Likewise.
3392         * timezone/Makefile (tzselect): Likewise.
3394 2001-08-29  H.J. Lu  <hjl@gnu.org>
3396         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
3397         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
3398         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
3400 2001-08-29  Andreas Schwab  <schwab@suse.de>
3402         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
3404 2001-08-28  H.J. Lu  <hjl@gnu.org>
3406         * Makeconfig (combreloc-LDFLAGS): New variable.
3407         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
3408         * config.make.in (have-z-combreloc): New variable.
3409         * configure.in: Substitute libc_cv_z_combreloc.
3411 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3413         * po/sv.po: Update from translation team.
3414         * po/fr.po: Likewise.
3415         * po/da.po: Likewise.
3417 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3419         * Makerules: Fix a typo: MD% -> MD5.
3421 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
3423         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
3424         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
3426 2001-08-28  Andreas Jaeger  <aj@suse.de>
3428         * manual/libc-texinfo.sh: Add entry about free manuals.
3430         * manual/contrib.texi (Contributors): Fix cross reference.
3432         * manual/libc.texinfo (Copying): Include freemanuals.
3434         * manual/Makefile (appendices): Add freemanuals.
3436         * manual/freemanuals.texi: New file.
3437         Patch by Brian Youmans <3diff@gnu.org>.
3439         * manual/libm-err-tab.pl: Pretty print more platforms, print a
3440         smaller table.
3442         * manual/math.texi (Errors in Math Functions): Fix grammar, start
3443         table on separate page.
3444         Patch by Brian Youmans <3diff@gnu.org>.
3446 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3448         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
3449         the connection went down after we first used it try to connect
3450         again and resend the message before printing to the console.
3451         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
3453 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3455         * string/tst-strlen.c (main): Test strnlen (, -1) too.
3456         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
3457         bit set.
3459 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3461         * iconv/strtab.c (searchstring): Use correct length for comparison.
3462         (strtabadd): Account total size correct if new string has old string as
3463         substring.
3465 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3467         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
3469 2001-08-27  Andreas Jaeger  <aj@suse.de>
3471         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
3473         * math/libm-test.inc (j0_test): Add extra tests.
3474         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
3475         not x, in Hankel approximation.
3476         Patches by Stephen L Moshier.
3478 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3480         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
3481         link_map.
3483         * configure.in: Fix test for .rela.dyn section.
3485         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
3487 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3489         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
3490         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
3491         Pass type_class to _dl_lookup_*.
3492         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
3493         Pass around just type_class instead of noexec, noplt pair.
3494         (_dl_lookup_versioned_symbol): Likewise.
3495         (_dl_lookup_symbol_skip): Pass around just type_class instead of
3496         noexec, noplt pair.
3497         (_dl_lookup_versioned_symbol_skip): Likewise.
3498         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
3499         * elf/do-lookup.h (do_lookup): Likewise.
3500         * include/link.h (struct link_map): Replace noexec and noplt fields
3501         in l_lookup_cache with type_class field.
3502         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
3503         ELF_RTYPE_CLASS_COPY): Define.
3504         Adjust prototypes for _dl_lookup_symbol and
3505         _dl_lookup_versioned_symbol.
3506         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
3507         elf_machine_lookup_noexec_p): Remove.
3508         (elf_machine_type_class): Define.
3509         * sysdeps/arm/dl-machine.h: Likewise.
3510         * sysdeps/hppa/dl-machine.h: Likewise.
3511         * sysdeps/cris/dl-machine.h: Likewise.
3512         * sysdeps/i386/dl-machine.h: Likewise.
3513         * sysdeps/ia64/dl-machine.h: Likewise.
3514         * sysdeps/m68k/dl-machine.h: Likewise.
3515         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3516         * sysdeps/mips/dl-machine.h: Likewise.
3517         * sysdeps/powerpc/dl-machine.h: Likewise.
3518         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3519         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3520         * sysdeps/sh/dl-machine.h: Likewise.
3521         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3522         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3524 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3526         * manual/message.texi (Advanced gettext functions): Change
3527         description of plural forms for Slovak.
3528         Reported by Marcel Telka <marcel@telka.sk>.
3530         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
3531         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
3533 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3535         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
3536         typo.  Patch by Florian La Roche <laroche@redhat.com>.
3538 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3540         * include/link.h (struct link_map): Add l_lookup_cache element.
3541         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
3542         (RESOLVE_MAP): Likewise.
3543         (_dl_relocate_object): Remove cache initialization.
3544         * elf/dl-lookup.c: Rip out cache handling code.
3545         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
3546         declarations.
3548         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
3549         remove some __builtin_expect.
3550         (_dl_lookup_versioned_symbol): Likewise.
3552         * config.h.in: Add HAVE_Z_COMBRELOC.
3553         * configure.in: Add test for -z combreloc.
3555         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
3556         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
3557         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
3558         case to almost no code.
3560 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
3562         * po/tr.po: Update from translation team.
3564 2001-08-24  Andreas Jaeger  <aj@suse.de>
3566         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
3567         make clean works.
3569 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3571         * elf/rtld.c (print_statistics): Printf % after percent values.
3572         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
3574         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
3575         don't have to compute the hash value and initialize current_value.
3576         Move reference_name variable to where it is needed.
3577         (_dl_lookup_versioned_symbol): Likewise.
3579 2001-08-24  Roland McGrath  <roland@frob.com>
3581         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
3582         Just test that strerror returns non-null for a few errno codes.
3584 2001-08-23  Roland McGrath  <roland@frob.com>
3586         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
3587         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
3589         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
3591         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
3592         __mach_reply_port.
3594 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3596         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
3597         returns NULL.
3599         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
3600         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
3601         doesn't do it.
3602         * elf/rtld.c: Include <sys/param.h>.
3603         * elf/dl-reloc.c: Likewise.
3605 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3607         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
3608         empty to prevent junk from being generated.
3609         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
3611 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3613         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
3614         records.  Rename endrel to relative, initialize it to r, and use it
3615         in elf_machine_rel_relative calls.  Point r after relative relocs.
3617 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3619         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
3620         of R_386_NONE.
3622 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3624         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
3625         necessary.  Undefine newly defined macros at the end.
3626         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
3627         Rename from elf_machine_rel_relative.
3628         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
3629         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
3630         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
3631         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
3632         Likewise.
3633         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
3634         Likewise.
3635         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
3636         Fix argument types.
3637         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
3638         Fix argument types.
3639         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
3640         Likewise.  Fix argument types.
3641         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
3642         Likewise.  Fix argument types.
3643         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
3644         Fix argument types.
3645         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
3646         ElfW(Rel) in argument.
3647         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
3648         function.
3650 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
3652         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
3654 2001-08-24  Andreas Jaeger  <aj@suse.de>
3656         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
3657         Stephen L Moshier <moshier@mediaone.net>.
3659 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3661         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
3662         first if RELCOUNT is set.
3664         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
3665         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
3666         elf_machine_rel_relative.
3667         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
3668         Minor optimizations.
3669         * sysdeps/arm/dl-machine.h: Likewise.
3670         * sysdeps/cris/dl-machine.h: Likewise.
3671         * sysdeps/hppa/dl-machine.h: Likewise.
3672         * sysdeps/i386/dl-machine.h: Likewise.
3673         * sysdeps/ia64/dl-machine.h: Likewise.
3674         * sysdeps/m68k/dl-machine.h: Likewise.
3675         * sysdeps/mips/dl-machine.h: Likewise.
3676         * sysdeps/powerpc/dl-machine.h: Likewise.
3677         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3678         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3679         * sysdeps/sh/dl-machine.h: Likewise.
3680         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3681         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3683 2001-08-23  Roland McGrath  <roland@frob.com>
3685         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
3687         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
3688         sysdeps/mach version.  Implement counting ("recursive") mutexes
3689         on top of cthreads mutexes.
3690         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
3692         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
3693         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
3694         (__libc_cleanup_region_start, __libc_cleanup_region_end,
3695         __libc_clean_end): Define these to call the cleanup function after
3696         normal exit when they're supposed to.
3698         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
3699         Take new first arg DOIT, a boolean saying whether to really install
3700         any cleanup handler.
3701         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
3702         (__libc_cleanup_end): Likewise.
3703         * sysdeps/generic/bits/libc-lock.h: Same changes.
3704         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
3705         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
3706         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
3707         Likewise.
3708         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
3709         * sysdeps/generic/bits/stdio-lock.h
3710         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
3712 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3714         * elf/ldconfig.c (search_dir): Remove stale symlinks.
3716 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3718         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
3719         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
3720         lookups in cache.
3721         (_dl_lookup_versioned_symbol): Likewise.
3722         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
3723         relocation lookup.
3724         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
3725         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
3726         (lookup_cache, lookup_cache_versioned): Add declarations.
3728 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3730         * stdlib/tst-random.c (main): Swap parameters in fail call.
3731         Patch by Pete Bevin <pete@petebevin.com>.
3733 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3735         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
3737 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3739         * malloc/obstack.c: Indent preprocessor directives.
3740         Patch by Jim Meyering <meyering@ascend.com>.
3742         * po/ja.po: Update from translation team.
3744 2001-08-23  Roland McGrath  <roland@frob.com>
3746         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
3748         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
3749         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
3751 2001-08-22  Roland McGrath  <roland@frob.com>
3753         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
3754         __libc_lock_define_recursive.
3755         * elf/dl-open.c: Don't declare it here any more.
3756         * elf/dl-close.c: Likewise.
3757         * elf/dl-lookup.c: Likewise.
3758         * elf/dl-iteratephdr.c: Likewise.
3759         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
3760         __libc_lock_unlock_recursive.
3761         * elf/dl-close.c (_dl_close): Likewise
3762         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
3763         * elf/dl-open.c (_dl_open): Likewise
3765         * sysdeps/generic/bits/libc-lock.h
3766         (__libc_lock_define_recursive): New macro.
3767         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
3768         (_IO_lock_lock): Use __libc_lock_lock_recursive.
3769         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
3771         * conform/conformtest.pl (checknamespace): Sort the output list.
3773         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
3774         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
3775         definitions conditional on [__USE_XOPEN].
3777         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
3778         these unconditionally, not only use [__USE_BSD], so as to match
3779         the sysdeps/unix/sysv/linux files.
3781 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3783         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
3784         avoid warnings.
3786         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
3787         DL_LOOKUP_ADDRESS.
3789 2001-08-22  Roland McGrath  <roland@frob.com>
3791         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
3792         conditionalization of sa_handler/sa_sigaction member types to
3793         match the sysdeps/unix/sysv/linux file.
3795 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3797         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
3798         symbol sizes a bit better.
3800         * sysdeps/ia64/strncpy.S: Complete rewrite.
3801         Contributed by Jakub Jelinek <jakub@redhat.com>.
3803         * string/stratcliff.c (main): Add strncpy test.
3805 2001-08-22  Roland McGrath  <roland@frob.com>
3807         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
3808         and don't declare unsetenv or _environ directly.
3809         (unsetenv): Return int, not void.  Use __environ instead of _environ.
3811 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
3813         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
3814         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
3815         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
3816         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
3817         test for cmsg struct size.
3819 2001-04-23  Paul Eggert  <eggert@twinsun.com>
3821         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
3822         Rename __argc to ___argc in prototypes to avoid compatibility
3823         problems with systems that reserve the identifier "__argc".
3824         Similarly for __argv.
3826 2001-08-21  Roland McGrath  <roland@frob.com>
3828         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
3830         * mach/Makefile (tests): Removed.
3831         * mach/hello.c: File removed.
3833 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3835         * po/sv.po: Update from translation team.
3837         * stdio-common/vfscanf.c: Fix handling of %l[].
3838         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3840         * libio/Makefile (tests): Add tst-sscanf.
3841         * libio/tst-sscanf.c: New file.
3843         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
3844         * malloc/mtrace.c (tr_where): dli_sname always points to a
3845         non-empty string if != NULL.
3846         Reported by Tim Janik <timj@gtk.org>.
3848 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
3850         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
3851         buf.  Free resources on failure.
3852         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
3853         (makefd_xprt): Likewise.
3854         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
3855         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
3856         * sunrpc/auth_unix.c (authunix_create): Likewise.
3858 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
3860         * string/strnlen.c: Remove.
3861         * sysdeps/generic/strnlen.c: New file.
3862         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3864 2001-08-21  Roland McGrath  <roland@frob.com>
3866         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3867         as a macro, not an extern inline function.
3869         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
3870         * Versions.def (libc): Add GLIBC_2.2.5 set.
3871         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
3872         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
3874 2001-08-20  Roland McGrath  <roland@frob.com>
3876         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3877         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3879 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3881         * string/bits/string2.h: Remove strnlen optimization here.
3882         * sysdeps/i386/i486/bits/string.h: Add it here.
3884 2001-08-21  Wolfram Gloger  <wg@malloc.de>
3886         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3888 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3890         * po/gl.po: Update from translation team.
3892 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3894         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3895         * misc/err.c (convert_and_print): Likewise.
3897         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3898         function calls.
3900 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3902         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
3903         change of the gregset_t type.
3904         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3906 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3908         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3910 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3912         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3914         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
3916 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
3918         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3919         before calling the cthreads initialization code.
3921 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3923         * argp/argp-help.c: Fix two problems introduced in last change.
3925         * include/dirent.h: Include <dirstream.h> first.
3927 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
3929         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
3931         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
3932         * sunrpc/xdr_rec.c: Likewise.
3933         * sunrpc/xdr_mem.c: Likewise.
3934         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
3935         * sunrpc/rpc_cmsg.c: Likewise.
3936         * sunrpc/getrpcport.c (getrpcport): Likewise.
3937         * sunrpc/clnt_simp.c (callrpc): Likewise.
3938         * sunrpc/clnt_gen.c (clnt_create): Likewise.
3939         * string/envz.c: Likewise.
3941         * po/ko.po: Update from translation team.
3943         * argp/argp-help.c: Handle wide oriented stderr stream.
3945 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
3947         * sysdeps/generic/strtol.c: Little optimizations.  Add some
3948         __builtin_expect.
3950         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3952         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3953         * wcsmbs/wcwidth.c (wcwdith): Likewise.
3954         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3956         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3958         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3960         * time/time.h (struct timespec): Use __time_t for tv_sec element.
3962         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
3963         wchar_t for function declarations and defintions.
3965         * misc/sys/select.h: Define __need_time_t before including <time.h>.
3966         Define suseconds_t if it hasn't happened yet.
3968         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3970         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3972         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3973         <stddef.h>.
3975         * conform/data/stddef.h-data: Remove wint_t.
3977         * conform/conformtest.pl: Change namespace test to take #undef
3978         lines into account.
3980         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3982         * conform/data/sys/socket.h-data: Add sockatmark.
3984 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3986         * io/fts.c: Update from recent BSD source.
3988 2001-08-17  Roland McGrath  <roland@frob.com>
3990         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3991         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3992         Likewise.
3994 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3996         * locale/duplocale.c (__duplocale): Also initialize the special
3997         __ctype_* elements.
3999         * conform/data/netdb.h-data: Adjust gai_strerror return type.
4001 2001-08-17  Andreas Jaeger  <aj@suse.de>
4003         * misc/getpass.c: Include wchar.h for prototypes.
4004         * malloc/obstack.c: Likewise.
4006 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
4008         * sunrpc/svc_simple.c (universal): Use __write instead of write.
4010         * wcsmbs/wcscoll.c: Also define __wcscoll.
4011         * include/wchar.h: Declare __wcscoll.
4013         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
4014         * libio/vwprintf.c: Likewise.
4015         * libio/wprintf.c: Likewise.
4017         * iconv/gconv_cache.c: Use __munmap instead of munmap.
4019 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
4021         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
4022         instead of mbrtowc.
4023         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
4024         wcslen, and __wcscoll instead of wcscoll.
4026         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
4028         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
4029         __getuid instead of getuid.
4031         * stdio-common/perror.c (perror): Use __close instead of close.
4032         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
4033         * libio/freopen.c (freopen): Likewise.
4034         * libio/freopen64.c (freopen64): Likewise.
4036         * libio/tst-ungetwc2.c (main): Define str const.
4038         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
4039         * libio/fwprintf.c: Also define __fwprintf.
4040         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
4041         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
4042         * assert/assert-perr.c: Likewise.
4043         * assert/assert.c: Likewise.
4044         * gmon/gmon.c: Likewise.
4045         * inet/rcmd.c: Likewise.
4046         * malloc/obstack.c: Likewise.
4047         * misc/err.c: Likewise.
4048         * misc/error.c: Likewise.
4049         * misc/getpass.c: Likewise.
4050         * posix/getopt.c: Likewise.
4051         * resolv/res_hconf.c: Likewise.
4052         * stdio-common/perror.c: Likewise.
4053         * stdio-common/psignal.c: Likewise.
4054         * stdlib/fmtmsg.c: Likewise.
4055         * sunrpc/auth_unix.c: Likewise.
4056         * sunrpc/clnt_perr.c: Likewise.
4057         * sunrpc/clnt_tcp.c: Likewise.
4058         * sunrpc/clnt_udp.c: Likewise.
4059         * sunrpc/clnt_unix.c: Likewise.
4060         * sunrpc/svc_simple.c: Likewise.
4061         * sunrpc/svc_tcp.c: Likewise.
4062         * sunrpc/svc_udp.c: Likewise.
4063         * sunrpc/svc_unix.c: Likewise.
4064         * sunrpc/xdr.c: Likewise.
4065         * sunrpc/xdr_array.c: Likewise.
4066         * sunrpc/xdr_rec.c: Likewise.
4067         * sunrpc/xdr_ref.c: Likewise.
4068         * sysdeps/generic/wordexp.c: Likewise.
4070         * po/it.po: Update from translation team.
4072         * misc/err.c: Handle wide oriented stderr stream.
4074 2001-08-14  Tom Rix  <trix@redhat.com>
4076         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
4077         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
4079 2001-08-13  Tom Rix  <trix@redhat.com>
4081         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
4082         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
4083         and __intptr_t.
4085 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4087         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
4088         Store the access registers to the ucontext structure.
4089         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
4090         Likewise.
4092         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
4093         Load the access registers from the ucontext structure.
4094         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
4095         Likewise.
4097         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
4098         offsets to the new ucontext layout.
4099         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
4101         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
4102         of the ucontext structure.
4103         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
4105 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
4107         * misc/error.c (error): Handle wide oriented stderr stream correctly.
4108         (error_at_line): Likewise.
4110         * stdio-common/perror.c (perror): Implement according to standard.
4111         The stream orientation must not be changed if the stream was not
4112         oriented before the call.
4113         * stdio-common/Makefile (tests): Add tst-perror.
4114         * stdio-common/tst-perror.c: New file.
4117 See ChangeLog.12 for earlier changes.