Update.
[glibc.git] / ChangeLog
blobb8aaa19a25f033d3afb8263d88398823aa6acf48
1 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
3         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
4         (dl_main): Move dtv/static TLS handling before relocation.
5         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
6         TLS_INIT_TP to allocate and install the dtv/static TLS block.
7         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
8         so far uses TLS initialize GL(dl_tls_static_size) and
9         GL(dl_tls_static_align) to account for the TCB.
10         (_dl_allocate_tls): New function.
11         * sysdeps/generic/ldsodefs.h (rtld_global): Add
12         _dl_initial_dtv_malloced.
14         * configure.in: Test for __builtin_memset more realistically.
16         * csu/version.c (banner): If TLS support available say so.
18 2002-02-04  H.J. Lu  <hjl@gnu.org>
20         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
21         __attribute_used__.
22         (__dl_runtime_resolve): Likewise.
24         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
25         declaration.
27 2001-11-15  H.J. Lu  <hjl@gnu.org>
29         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
30         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
32         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
34 2002-02-07  H.J. Lu  <hjl@gnu.org>
36         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
37         ".set noreorder".
38         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
39         Likewise.
41 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
43         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
45         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
46         ___tls_get_addr_internal.
47         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
49         * po/ko.po: Update from translation team.
51 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
53         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
54         attribute, change __pad{1,2} type to unsigned int.
55         (struct stat64): Remove packed attribute.
57 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
59         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
61 2002-02-07  Andreas Schwab  <schwab@suse.de>
63         * configure.in: Fix check for -zcombreloc.
65 2002-02-06  H.J. Lu  <hjl@gnu.org>
67         * config.h.in (HAVE_BUILTIN_MEMSET): New.
68         * configure.in: Check if __builtin_memset really works.
69         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
70         __GNUC_PREREQ (2, 96) before using __builtin_memset.
72 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
74         * io/bug-ftw3.c (main): Don't try the test if root.
76 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
78         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
79         constraints.
80         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
81         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
82         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
83         Likewise.
84         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
85         a weak alias for __clone.
86         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
87         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
88         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
89         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
90         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
91         a weak alias for __mmap64.
93 2002-02-05  H.J. Lu  <hjl@gnu.org>
95         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
96         (atomic_add): Likewise.
97         (compare_and_swap): Likewise.
98         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
100 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
102         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
104         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
105         alignment of the TCB and store total size and alignment of static
106         TLS block in _dl_tls_static_size and _dl_tls_static_align.
107         tls_index is a typedef.
108         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
109         _dl_tls_static_align.
110         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
111         * elf/dl-support.c: Define _dl_tls_static_size and
112         _dl_tls_static_align.
114 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
116         * configure.in: Add --without-tls option.
117         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
118         --without-tls is given.
120         * sysdeps/generic/dl-tls.c: Include <tls.h>.
122         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
124 2002-02-06  Roland McGrath  <roland@frob.com>
126         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
127         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
129         * scripts/versions.awk: Improve error message for missing version.
130         Each version inherits from the last one only if they have the same
131         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
132         but not GLIBC_x and FOO_y.
134         * scripts/firstversions.awk: Handle libraries that don't have each
135         particular version named in the third column of shlib-versions.
137         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
139 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
141         * Versions.def [ld]: Add GLIBC_2.3.
142         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
143         * elf/Makefile (dl-routines): Add dl-tls.
144         (distribute): Add dl-tls.h.
145         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
146         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
147         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
148         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
149         along with the other info in the link map.  Change queueing of init
150         images for double linked list.  Use _dl_next_tls_modid to compute
151         l_tls_modid.
152         * elf/rtld.c (_dl_start_final): Store alignment requirement
153         along with the other info in rtld map and executable map.
154         (dl_main): Add ld.so to the init image list if necessary.  Compute
155         final module ID with _dl_next_tls_modid.
156         * include/link.h (struct link_map): Add l_tls_previmage and
157         l_tls_align.
158         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
159         * sysdeps/i386/elf/Versions: New file.
160         * sysdeps/generic/dl-tls.c: New file.
161         * sysdeps/generic/dl-tls.h: New file.
162         * sysdeps/i386/dl-tls.h: New file.
164 2002-02-06  Roland McGrath  <roland@frob.com>
166         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
167         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
169 2002-01-05  Roland McGrath  <roland@frob.com>
171         * sysdeps/mach/configure.in: New file.
172         * sysdeps/mach/configure: New generated file.
174         * mach/Makefile (user-interfaces): Remove default_pager_helper.
175         It has never been used by anything.
177 2002-02-06  H.J. Lu  <hjl@gnu.org>
179         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
180         is included.
182 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
184         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
185         attribute((packed)) to counter stupid people misusing gcc options.
186         (struct stat64): Likewise.
188 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
190         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
191         the variables which are used as booleans.
193 2002-02-06  Andreas Jaeger  <aj@suse.de>
195         * include/libc-symbols.h (INTUSE): Renamed from INT.
196         * elf/dl-deps.c: Change users.
197         * sysdeps/generic/dl-sysdep.c: Likewise.
198         * sysdeps/generic/dl-cache.c: Likewise.
199         * elf/dl-reloc.c: Likewise.
200         * elf/rtld.c: Likewise.
201         * elf/dl-version.c: Likewise.
202         * elf/dl-load.c: Likewise.
203         * elf/dl-dst.h: Likewise.
204         * elf/dl-init.c: Likewise.
205         * elf/dl-error.c: Likewise.
206         * elf/dl-fini.c: Likewise.
207         * elf/dl-runtime.c: Likewise.
208         * elf/do-lookup.h: Likewise.
210         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
211         definition.
212         * stdio-common/_itowa.h: Likewise.
214 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
216         * elf/dl-minimal.c: Define _itoa_lower_digits.
218         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
219         DT_FLAGS set.
221         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
222         loading modules with the DF_STATIC_TLS flag set.
223         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
224         element.
225         * include/link.h (struct link_map): Add l_flags field.
226         * elf/elf.h (DF_STATIC_TLS): New definition.
228         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
229         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
231         * elf/rtld.c (process_dl_debug): Correct printing help message.
232         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
233         for %s.
235         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
236         definition and pass &errno in use of this variable.
237         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
239 2002-02-04  Andreas Schwab  <schwab@suse.de>
241         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
242         * locale/programs/charmap-dir.c: Wrap calls that output messages
243         with WITH_CUR_LOCALE.  Include "localedef.h" first.
244         * locale/programs/charmap.c: Likewise.
245         * locale/programs/ld-address.c: Likewise.
246         * locale/programs/ld-collate.c: Likewise.
247         * locale/programs/ld-ctype.c: Likewise.
248         * locale/programs/ld-identification.c: Likewise.
249         * locale/programs/ld-measurement.c: Likewise.
250         * locale/programs/ld-messages.c: Likewise.
251         * locale/programs/ld-monetary.c: Likewise.
252         * locale/programs/ld-name.c: Likewise.
253         * locale/programs/ld-numeric.c: Likewise.
254         * locale/programs/ld-paper.c: Likewise.
255         * locale/programs/ld-telephone.c: Likewise.
256         * locale/programs/ld-time.c: Likewise.
257         * locale/programs/linereader.c: Likewise.
258         * locale/programs/linereader.h: Likewise.
259         * locale/programs/localedef.c: Likewise.
260         * locale/programs/locfile.c: Likewise.
261         * locale/programs/repertoire.c: Likewise.
263 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
265         * elf/rtld.c (_dl_start_final): Determine load address to locate
266         ehdr with GL(dl_rtld_map).l_map_start.
268         * po/ca.po: Update from translation team.
270         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
271         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
272         header entry.
273         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
274         _dl_tls_module_cnt.
275         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
277 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
279         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
280         * include/link.h (struct link_map): Add various members for TLS
281         information.
282         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
283         _rtld_tlsoffset, add _dl_initimage_list.
284         * sysdeps/i386/dl-lookupcfg.h: New file.
285         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
286         TLS relocation.  When using TLS we now use RESOLVE_MAP.
287         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
288         is used.
290         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
291         unused.
293         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
294         thread-pointer as soon as possible.
295         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
296         elements in rtld_global.
297         * sysdeps/generic/tls.h: New file.
298         * elf/Makefile (distribute): Add tls.h.
299         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
300         relocations.  Not complete yet.
302         * resolv/resolv.h: Allow user to define __need_res_state and only
303         define __res_start structure then.
304         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
306         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
307         dl_cpuclock_offset initialization to _dl_start_final.
308         (_dl_show_auxv): Avoid unnecessary sign extension.
309         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
311 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
313         * config.h.in: Add HAVE_TLS_SUPPORT.
314         * sysdeps/i386/elf/configure.in: New file.
316 2002-02-03  Andreas Schwab  <schwab@suse.de>
318         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
319         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
321 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
323         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
324         alloca if the memory reqirements are too high.
326 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
328         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
329         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
330         the former is available anyway and speed isn't important here.
331         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
332         * elf/dl-version.c (match_symbol): Likewise.
333         (_dl_check_map_versions): Likewise.
334         * elf/rtld.c (process_envvars): Likewise.
335         (print_statistics): Likewise.
336         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
337         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
338         bases.  Add assert to catch uses of unimplemented features.
339         (__strsep): Add assert to catch uses of unimplemented features.
340         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
341         and avoid inline optimization.
342         * elf/rtld.c (process_envvars): Likewise.
343         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
344         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
345         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
347 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
349         * stdio-common/_itoa.h: Minor simplifications of the code.
350         * stdio-common/_itoa.c: Likewise.
352         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
353         instead of _dl_printf for debugging info output.
355         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
356         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
358 2002-02-01  H.J. Lu  <hjl@gnu.org>
360         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
361         (atomic_add): Likewise.
362         (compare_and_swap): Return 0 only when failed to compare. Use
363         branch likely.
365         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
366         branch likely.
368 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
370         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
372 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
374         * elf/dl-minimal.c (__strsep): New minimal implementation.
376 2002-02-02  Paul Eggert  <eggert@twinsun.com>
378         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
379         (__mktime_internal): If no tm_isdst is requested, prefer solutions
380         with tm_isdst > 0 when the requested time falls within a
381         spring-forward gap [PR libc/2894].
383 2002-02-03  Andreas Schwab  <schwab@suse.de>
385         * stdio-common/tst-rndseek.c: Increase timeout.
387 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
389         Change ld.so to not use functions which are exported.  One cannot
390         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
391         definitions.
392         * include/libc-symbols.h: Define INT and INTDEF.
393         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
394         _dl_signal_error_internal, _dl_map_object_internal,
395         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
396         _dl_lookup_versioned_symbol_internal,
397         _dl_relocate_object_internal, _dl_debug_state_internal,
398         _dl_start_profile_internal, and _dl_unload_cache_internal.
399         * include/dlfcn.h: Declare _dl_catch_error_internal.
400         * elf/rtld.c: Use INT for calls to any of the *_internal functions
401         above.  Add INTDEF to function definitions.
402         * elf/dl-debug.c: Likewise.
403         * elf/dl-deps.c: Likewise.
404         * elf/dl-dst.h: Likewise.
405         * elf/dl-error.c: Likewise.
406         * elf/dl-fini.c: Likewise.
407         * elf/dl-init.c: Likewise.
408         * elf/dl-load.c: Likewise.
409         * elf/dl-lookup.c: Likewise.
410         * elf/dl-misc.c: Likewise.
411         * elf/dl-open.c: Likewise.
412         * elf/dl-profile.c: Likewise.
413         * elf/dl-reloc.c: Likewise.
414         * elf/dl-runtime.c: Likewise.
415         * elf/dl-version.c: Likewise.
416         * elf/do-lookup.h: Likewise.
417         * sysdeps/generic/dl-cache.c: Likewise.
418         * sysdeps/generic/dl-sysdep.c: Likewise.
419         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
420         instead of _dl_init.
421         * sysdeps/arm/dl-machine.h: Likewise.
422         * sysdeps/cris/dl-machine.h: Likewise.
423         * sysdeps/hppa/dl-machine.h: Likewise.
424         * sysdeps/i386/dl-machine.h: Likewise.
425         * sysdeps/ia64/dl-machine.h: Likewise.
426         * sysdeps/m68k/dl-machine.h: Likewise.
427         * sysdeps/mips/dl-machine.h: Likewise.
428         * sysdeps/mips/mips64/dl-machine.h: Likewise.
429         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
430         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
431         * sysdeps/sh/dl-machine.h: Likewise.
432         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
433         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
434         * sysdeps/x86_64/dl-machine.h: Likewise.
435         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
437         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
438         and _dl_debug_initialize.
440         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
441         more information.
442         * elf/rtld.c (dl_main): Avoid strrchr.
443         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
444         result of readlink.  Search from the back for '/'.
446         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
447         strncpy if possible.
449         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
450         strncmp.
451         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
452         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
453         strspn, and strcspn.
454         (process_envvars): Don't use strcspn.
456         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
457         (_dl_dst_substitute): Likewise.
459 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
461         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
462         code which is never used when relocating ld.so itself.
464         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
465         starting ld.so itself.  Move l_addr variable initialization closer
466         to use.
467         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
469 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
471         * Versions.def (libc): Add GLIBC_PRIVATE.
472         (libdb, libnss_db, libdb1): Remove.
473         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
474         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
475         (libpthread): Add GLIBC_PRIVATE.
476         (libresolv): Likewise, remove GLIBC_2.1.
477         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
478         GLIBC_2.2.3, GLIBC_2.3.
479         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
480         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
481         _dl_sym, _dl_vsym): Likewise.
482         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
483         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
484         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
485         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
486         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
487         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
488         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
489         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
490         Likewise.
491         (_dl_object_relocation_scope): Remove.
492         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
493         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
494         __gconv_cache): Move to GLIBC_PRIVATE.
495         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
496         __internal_setnetgrent): Likewise.
497         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
498         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
499         * locale/Versions (__collate_element_hash, __collate_element_strings,
500         __collate_symbol_classes, __collate_symbol_hash,
501         __collate_symbol_strings, _nl_current_LC_COLLATE,
502         _nl_current_LC_CTYPE): Likewise.
503         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
504         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
505         (libnss_nis, libnss_nisplus): Likewise.
506         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
507         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
508         (libnss_files): Move all symbols to GLIBC_PRIVATE.
509         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
510         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
511         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
512         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
513         __ns_get16, __ns_samename): Likewise.
514         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
515         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
516         GLIBC_PRIVATE.
517         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
518         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
519         __libc_connect): Likewise.
520         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
521         Likewise.
522         * stdlib/Versions (__libc_system): Likewise.
523         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
524         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
525         * sysdeps/ia64/fpu/Versions: Likewise.
526         * sysdeps/ia64/Versions: Likewise.
527         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
528         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
529         to GLIBC_PRIVATE.
530         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
531         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
532         __libc_sigaction): Likewise.
533         * termios/Versions (__libc_tcdrain): Likewise.
535         * misc/sys/cdefs (__attribute_noinline__): Define.
536         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
537         __attribute_noinline__.
539         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
540         * elf/dl-xstat64.c: New file.
541         * elf/dl-fxstat64.c: New file.
542         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
543         don't export __fxstat64 at multiple versions.
544         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
545         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
547 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
549         * locale/program/ld-collate.c (collate_finish): Assign a wide
550         char collation sequence value to multi character collating
551         elements, and avoid over writing by non-character elements.
553 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
555         * elf/Makefile (distribute): Add dl-procinfo.c.
556         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
557         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
559 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
561         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
562         definition.
563         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
564         _rtld_global struct.
565         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
566         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
567         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
568         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
569         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
570         _dl_fpu_control_set): Remove unused externs.
571         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
572         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
573         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
574         related variables in _rtld_global struct.
575         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
576         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
577         unused extern.
579 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
581         * sysdeps/generic/dl-procinfo.c: New file.
583 2002-02-01  Andreas Schwab  <schwab@suse.de>
585         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
587 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
589         * elf/rtld.c (_dl_start): Mark as internal_function.
590         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
591         in register.
592         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
593         General pretty printing.
595 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
597         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
598         * elf/dl-reloc.c: Pretty printing.
599         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
600         procinfo-related variables in rtld_global struct.
601         * elf/dl-support.c: Likewise.
602         * elf/rtld.c: Likewise.
603         * sysdeps/i386/i686/Makefile: Likewise.
604         * sysdeps/i386/i686/hp-timing.c: Likewise.
605         * sysdeps/i386/i686/hp-timing.h: Likewise.
606         * sysdeps/ia64/Makefile: Likewise.
607         * sysdeps/ia64/hp-timing.c: Likewise.
608         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
609         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
610         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
611         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
612         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
613         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
614         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
615         * sysdeps/x86_64/Makefile: Likewise.
617         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
618         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
619         _dl_debug_fd to rtld_global.
620         * elf/Versions: Likewise.
621         * elf/dl-close.c: Likewise.
622         * elf/dl-iteratephdr.c: Likewise.
623         * elf/dl-lookup.c: Likewise.
624         * elf/dl-misc.c: Likewise.
625         * elf/dl-open.c: Likewise.
626         * elf/dl-support.c: Likewise.
627         * elf/do-lookup.h: Likewise.
628         * elf/rtld.c: Likewise.
629         * sysdeps/generic/dl-cache.c: Likewise.
630         * sysdeps/generic/dl-sysdep.c: Likewise.
631         * sysdeps/ia64/Versions: Likewise.
632         * sysdeps/unix/clock_gettime.c: Likewise.
633         * sysdeps/unix/clock_settime.c: Likewise.
634         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
635         * sysdeps/sparc/Versions: Removed.
636         * sysdeps/i386/i686/Versions : Removed.
637         * sysdeps/x86_64/Versions: Removed.
638         * configure.in: Define HAVE_PROTECTED if .protected is available.
639         * config.h.in: Add entry for HAVE_PROTECTED.
641 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
643         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
644         code in struct _rtld_global.  Export this struct, remove all
645         exports for the signal variables.
646         * sysdeps/arm/dl-machine: Likewise.
647         * sysdeps/generic/dl-origin: Likewise.
648         * sysdeps/generic/dl-sysdep: Likewise.
649         * sysdeps/generic/dl-cache: Likewise.
650         * sysdeps/hppa/dl-fptr: Likewise.
651         * sysdeps/hppa/dl-machine: Likewise.
652         * sysdeps/cris/dl-machine: Likewise.
653         * sysdeps/i386/dl-machine: Likewise.
654         * sysdeps/ia64/dl-machine: Likewise.
655         * sysdeps/m68k/dl-machine: Likewise.
656         * sysdeps/mach/hurd/dl-sysdep: Likewise.
657         * sysdeps/mips/mips64/dl-machine: Likewise.
658         * sysdeps/mips/dl-machine: Likewise.
659         * sysdeps/powerpc/elf/libc-start: Likewise.
660         * sysdeps/powerpc/dl-machine: Likewise.
661         * sysdeps/powerpc/dl-start: Likewise.
662         * sysdeps/sparc/sparc32/dl-machine: Likewise.
663         * sysdeps/sparc/sparc64/dl-machine: Likewise.
664         * sysdeps/sh/dl-machine: Likewise.
665         * sysdeps/s390/s390-32/dl-machine: Likewise.
666         * sysdeps/s390/s390-64/dl-machine: Likewise.
667         * sysdeps/unix/sysv/aix/libc-start: Likewise.
668         * sysdeps/unix/sysv/aix/start-libc: Likewise.
669         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
670         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
671         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
672         * sysdeps/x86_64/dl-machine: Likewise.
674 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
676         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
677         are too high.
679 2002-01-31  Andreas Schwab  <schwab@suse.de>
681         * sysdeps/posix/readv.c: Check for ssize_t overflow.
683 2002-01-31  Andreas Schwab  <schwab@suse.de>
685         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
686         reference to _dl_pagesize.
688 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
690         * Versions.def [ld]: Add GLIBC_2.3.
691         * elf/dl-addr.c: Move global variables for SHARED code in struct
692         _rtld_global.  Export this struct, remove all exports for the
693         signal variables.
694         * elf/dl-close.c: Likewise.
695         * elf/dl-conflict.c: Likewise.
696         * elf/dl-debug.c: Likewise.
697         * elf/dl-deps.c: Likewise.
698         * elf/dl-dst.h: Likewise.
699         * elf/dl-error.c: Likewise.
700         * elf/dl-fini.c: Likewise.
701         * elf/dl-init.c: Likewise.
702         * elf/dl-iteratephdr.c: Likewise.
703         * elf/dl-libc.c: Likewise.
704         * elf/dl-load.c: Likewise.
705         * elf/dl-lookup.c: Likewise.
706         * elf/dl-minimal.c: Likewise.
707         * elf/dl-object.c: Likewise.
708         * elf/dl-open.c: Likewise.
709         * elf/dl-profile.c: Likewise.
710         * elf/dl-profstub.c: Likewise.
711         * elf/dl-reloc.c: Likewise.
712         * elf/dl-runtime.c: Likewise.
713         * elf/dl-support.c: Likewise.
714         * elf/dl-sym.c: Likewise.
715         * elf/dl-version.c: Likewise.
716         * elf/do-lookup.h: Likewise.
717         * elf/do-rel.h: Likewise.
718         * elf/dynamic-link.h: Likewise.
719         * elf/rtld.c: Likewise.
720         * sysdeps/generic/dl-cache.c: Likewise.
721         * sysdeps/generic/dl-sysdep.c: Likewise.
722         * sysdeps/generic/ldsodefs.h: Likewise.
723         * sysdeps/generic/libc-start.c: Likewise.
724         * sysdeps/i386/dl-machine.h: Likewise.
725         * sysdeps/ia64/dl-fptr.c: Likewise.
726         * sysdeps/ia64/dl-machine.h: Likewise.
727         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
728         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
729         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
730         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
731         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
732         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
733         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
734         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
736 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
738         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
739         to avoid warning
740         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
742         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
743         SHARED version.
744         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
746         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
748 2002-01-29  Ben Collins  <bcollins@debian.org>
750         * string/bits/string2.h (__mempcpy): Protect size arg for
751         addition when using __builtin_memcpy.
753 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
755         * stdlib/Makefile (tests): Add tst-qsort.
756         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
758         * manual/signal.texi (Process Signal Mask): Document that
759         pthread_sigmask, not sigprocmask, must be used in MT programs.
760         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
762         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
763         found.
764         * misc/Makefile (tests): Add tst-hsearch.
765         * misc/tst-hsearch.c: New file.
767 2002-01-18  Wolfram Gloger  <wg@malloc.de>
769         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
770         * malloc/malloc.h: Likewise.
771         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
772         * malloc/arena.c: New file.
773         * malloc/hooks.c: New file.
774         * malloc/tst-mallocstate.c: New file.
775         * malloc/Makefile: Add new testcase tst-mallocstate.
776         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
778 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
780         * stdlib/msort.c: Remove last patch.  The optimization violates the
781         same rule which qsort.c had problems with.
783 2002-01-27  Paul Eggert  <eggert@twinsun.com>
785         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
786         to a pivot element that lies outside the array to be sorted, as
787         ISO C99 requires that the comparison function be called only with
788         addresses of array elements [PR libc/2880].
790 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
792         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
793         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
795         * timezone/asia: Update from tzdata2002b.
796         * timezone/australasia: Likewise.
797         * timezone/backward: Likewise.
798         * timezone/europe: Likewise.
799         * timezone/leapseconds: Likewise.
800         * timezone/iso3166.tab: Likewise.
801         * timezone/zone.tab: Likewise.
803 2002-01-23  Richard Henderson  <rth@redhat.com>
805         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
807 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
809         * string/strxfrm.c: Allocate one more byte for rulearr and clear
810         this element [PR libc/2855].
812         * string/strcoll.c: Handle zero-length arguments specially
813         [PR libc/2856].
815 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
817         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
818         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
819         short lengths and constant src.
820         (strcpy): Don't optimize for gcc 3.0+.
821         (__stpcpy): For gcc 3.0+, don't use
822         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
823         for short string literal src.
825 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
827         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
828         Set for arm, too.
830 2001-01-22  Paul Eggert  <eggert@twinsun.com>
832         * manual/llio.texi (Linked Channels, Cleaning Streams):
833         Make it clearer that a just-opened input stream might need cleaning.
835 2002-01-21  H.J. Lu  <hjl@gnu.org>
837         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
838         Don't use label at end of compound statement.
840 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
842         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
843         Remove test for negative integer arg; sin_pi does it correctly.
845 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
847         * nscd/Makefile (distribute): Filter out xmalloc.c.
849 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
851         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
852         Set offset if read end wasn't the buffer end.
853         (_IO_file_seekoff_mmap): New function.
854         (_IO_file_xsgetn_mmap): New function.
855         (_IO_file_jumps_mmap): Use the two new functions.
856         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
857         != end buffer.
858         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
859         _IO_file_underflow_mmap.
860         * libio/iofopen.c: Don't position file descriptor at end of file.
861         * libio/tst-widetext.c: Improve error messages.
862         * stdio-common/tst-rndseek.c: Likewise.
864 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
866         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
867         end of enum for !_GNU_SOURCE.
868         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
869         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
870         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
871         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
872         values unless _GNU_SOURCE.
874         * iconvdata/tcvn5712-1.c: Minor cleanups.
876 2002-01-18  Andreas Schwab  <schwab@suse.de>
878         * sysdeps/unix/sysv/linux/configure.in
879         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
881 2002-01-16  Roger Sayle  <roger@eyesopen.com>
883         * stdlib/msort.c (msort_with_tmp): Replace implementation with
884         more efficient "Towers of Hanoi" mergesort.
885         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
886         for generic, sizeof(int) and sizeof(long) variants respectively.
888 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
890         * manual/syslog.texi (openlog): Describe possible problems with
891         first parameter.
892         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
894         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
895         * nscd/connections.c (begin_drop_privileges): New function.
896         (finish_drop_privileges): New function.
897         (nscd_init): Call the new functions which also install all groups
898         for the server user.
899         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
900         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
902 2002-01-17  H.J. Lu  <hjl@gnu.org>
904         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
905         `const' from `got'.
907 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
909         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
910         instructions for pointer operations.
911         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
913 2002-01-17  Andreas Jaeger  <aj@suse.de>
915         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
916         __uint128_t build-in.
918         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
919         PowerPC, sync with 2.2 branch.
921 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
923         * posix/getconf.c: Update copyright year.
924         * nss/getent.c: Likewise.
925         * nscd/nscd_nischeck.c: Likewise.
926         * iconv/iconvconfig.c: Likewise.
927         * iconv/iconv_prog.c: Likewise.
928         * elf/ldconfig.c: Likewise.
929         * catgets/gencat.c: Likewise.
930         * csu/version.c: Likewise.
931         * elf/ldd.bash.in: Likewise.
932         * elf/sprof.c (print_version): Likewise.
933         * locale/programs/locale.c: Likewise.
934         * locale/programs/localedef.c: Likewise.
935         * nscd/nscd.c (print_version): Likewise.
936         * debug/xtrace.sh: Likewise.
937         * malloc/memusage.sh: Likewise.
938         * malloc/mtrace.pl: Likewise.
940 2002-01-16  Andreas Schwab  <schwab@suse.de>
942         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
943         reliably remove "-ia64" from rtld name.
945 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
947         * iconvdata/gb18030.c: Bug fixes and support for more characters.
948         Patch by Yu Shao <yshao@redhat.com>.
950 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
952         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
953         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
954         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
956 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
958         * sysdeps/s390/fpu/libm-test-ulps: Update.
960 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
962         * elf/elf.h: Update x86 relocations.
964 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
966         * locale/programs/charmap.c (new_width): Check whether byte
967         sequences for both ends of range have the same length.
969 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
971         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
973 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
975         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
976         string literals.
977         (__full_ieee754_sqrt): Add __attribute_used__.
979 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
981         * sysdeps/generic/group_member.c (__group_member): Also check
982         groups[0] [PR libc/2781].
984 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
986         * Makefile (distribute): Add scripts/cpp.
987         * elf/Makefile (distribute): Add reldep6mod[01234].c,
988         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
989         unwind-dw2-fde.h, and dwarf2.h.
990         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
991         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
992         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
993         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
995 2002-01-07  Roland McGrath  <roland@frob.com>
997         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
998         volatile on type of ARGC so the compiler doesn't get clever.
1000 2002-01-07  Andreas Jaeger  <aj@suse.de>
1002         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
1003         * sysdeps/i386/bits/byteswap.h: Likewise.
1004         * sysdeps/ia64/bits/byteswap.h: Likewise.
1005         * sysdeps/m68k/bits/byteswap.h: Likewise.
1006         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
1007         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
1009 2002-01-02  Bruno Haible  <bruno@clisp.org>
1011         * intl/plural.y: Fix %expect count.
1013 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
1015         * elf/Makefile (routines, shared-only-routines): Add
1016         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
1017         * elf/elf.h (PT_GNU_EH_FRAME): Define.
1018         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
1019         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
1020         Optimize if .eh_frame section contains no FDEs.
1021         (__register_frame, __deregister_frame_info_bases,
1022         __deregister_frame): Likewise.
1023         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
1024         DW_CFA_restore handling.
1026 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
1028         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
1030         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
1031         for x < 0.25 and restore original range reduction method.
1032         (__ieee754_lgammal_r): Make sure signgam is set before returning.
1034 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
1036         * libio/fileops.c (_IO_file_underflow_mmap): New function.
1037         (_IO_file_close_mmap): New function.
1038         (_IO_file_jumps_mmap): New variable.
1039         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
1040         trying to convert rest of byte buffer.
1041         (_IO_wfile_underflow_mmap): New function.
1042         (_IO_wfile_jumps_mmap): New variable.
1043         * libio/iofopen.c (__fopen_maybe_mmap): New function.
1044         (__fopen_internal): New function.  Split out from _IO_new_fopen.
1045         (_IO_new_fopen): Call __fopen_internal.
1046         * libio/iofopen64.c: Just call __fopen_internal.
1047         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
1048         successfully.
1049         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
1050         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
1051         _IO_file_close_mmap.
1053         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
1054         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
1056         * stdio-common/Makefile (tests): Add tst-rndseek.
1057         * stdio-common/tst-rndseek.c: New file.
1059 2002-01-05  Roland McGrath  <roland@frob.com>
1061         * config.h.in (HAVE_MIG_RETCODE): New #undef.
1062         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
1063         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
1064         * sysdeps/mach/hurd/configure: Regenerated.
1066 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
1068         * elf/elf.h: Add more TLS definitions.
1070 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
1072         * include/features.h (__GLIBC_MINOR__): Bump to 3.
1074 2002-01-02  Roland McGrath  <roland@frob.com>
1076         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
1077         __sigisemptyset.  Don't use MASK uninitialized.
1079         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
1080         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
1081         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
1082         __sigdelset, __sigaddset, __sigorset.
1084         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
1085         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
1087         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
1088         _hurd_ports is null.
1090         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
1091         for old CMU and new OSF Mach interface flavors.
1092         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
1093         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1095         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
1097         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
1098         Pass extra arguments to task_create for OSF variant.
1099         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1101         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
1102         conditional on [HAVE_AUX_VECTOR].
1104         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
1105         mach_msg_timeout_t as type of final argument.
1107         * hurd/privports.c (__get_privileged_ports):
1108         Change host_priv_t to mach_port_t in argument type.
1109         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
1110         Update decls.
1112         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
1113         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
1114         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
1115         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
1116         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
1117         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1119 2002-01-01  Roland McGrath  <roland@frob.com>
1121         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
1123 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
1125         * include/stdlib.h: Define inlines for the _l variants of the strto*
1126         functions.
1128 2002-01-01  Roland McGrath  <roland@frob.com>
1130         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
1132         * mach/Machrules (MIG): Set CPP as well as CC.
1134 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
1136         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
1137         locale to parse /proc/loadavg [PR libc/2760].
1139 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
1141         * elf/dl-conflict.c: Include sys/param.h.
1142         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
1143         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
1144         warning.
1145         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
1146         literals to avoid warnings.
1148 2001-12-31  Andreas Jaeger  <aj@suse.de>
1150         * configure.in: Don't check for gsed since we do not use it anywhere.
1152 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
1154         * io/fts.c: Update from BSD to fix memory leaks.
1156 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
1158         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
1159         * elf/chroot_canon.c: Likewise.
1160         * elf/dl-object.c: Likewise.
1161         * iconv/iconv_charmap.c: Likewise.
1162         * iconv/iconv_prog.c: Likewise.
1163         * libio/iogetdelim.c: Likewise.
1164         * locale/lc-time.c: Likewise.
1165         * stdlib/canonicalize.c: Likewise.
1166         * sunrpc/svc.c: Likewise.
1167         * sysdeps/generic/glob.c: Likewise.
1169 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1171         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
1172         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
1173         remove high order bit from the program counter.
1174         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
1176 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1178         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1179         unnecessary code and add missing reloc types.
1180         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
1181         case for reloc type R_390_NONE.
1183 2001-12-28  Andreas Jaeger  <aj@suse.de>
1185         * io/bug-ftw3.c: Include string.h for prototypes.
1187         * crypt/md5test.c (main): Remove unused variable.
1189         * dlfcn/modstatic.c: Add prototype to avoid warning.
1191 2001-12-26  Roland McGrath  <roland@frob.com>
1193         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
1194         check only (SS->pending & MASK) for the signal to return.
1195         From Jeroen Dekkers <jeroen@dekkers.cx>.
1197 2001-12-22  Roland McGrath  <roland@frob.com>
1199         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
1200         Use preprocessor #if conditionals instead of `if' to avoid
1201         warnings about divide by zero in dead code.
1203         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
1204         _hurd_port_init, and __hurd_self_sigstate.
1206         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
1208 2001-12-21  Andreas Jaeger  <aj@suse.de>
1210         * elf/dblloadmod1.c: Add prototype to avoid warning.
1211         * elf/dblloadmod2.c: Likewise.
1212         * elf/dblloadmod3.c: Likewise.
1213         * elf/reldepmod5.c: Likewise.
1214         * elf/reldepmod6.c: Likewise.
1216         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
1217         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
1218         used on all architectures.
1220         * sunrpc/svc_tcp.c: Add noreturn attribute for
1221         svctcp_rendezvous_abort.
1222         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
1224         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
1225         to avoid warning.
1227 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
1229         * manual/llio.texi (aio_fsync): Fix a typo.
1230         Patch by Tammy Fox <tfox@redhat.com>.
1232 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1234         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
1235         stack bias from child stack pointer before passing it to clone syscall.
1237 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
1239         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
1240         _SC_TZNAME_MAX.
1241         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
1242         Reported by Thorsten Kukuk <kukuk@suse.de>.
1244         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
1245         add some casts.
1247         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
1249 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
1251         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
1252         conforming: return EBADF if file descriptor is invalid and EINVAL
1253         if file descriptor is no valid tty.
1254         * login/tst-grantpt.c: New file.
1255         * login/Makefile (tests): Add tst-grantpt.
1257 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
1259         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
1260         different than implemented in last patch.
1261         * io/bug-ftw3.c: Adjust test for changed handling of
1262         inaccessibility of toplevel dir.
1264 2001-12-16  Roland McGrath  <roland@frob.com>
1266         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
1267         * grp/initgroups.c (internal_getgrouplist): Likewise.
1269         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
1270         `default:' to silence new GCC warning.
1271         Rewrite cast of lvalue to silence new GCC warning.
1273         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
1275         * sysdeps/mach/hurd/spawni.c: New file, by me with a
1276         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
1278 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
1280         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
1281         Patch by Stephen R. van den Berg.
1283         * crypt/md5.h: Define md5_uintptr.
1285 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1287         * libio/tst_swprintf.c (main): Add test for string argument with
1288         zero precision.
1289         * stdio-common/Makefile (tests): Add tst-sprintf.
1290         * stdio-common/tst-sprintf.c: New file.
1292 2001-12-13  Andreas Schwab  <schwab@suse.de>
1294         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
1295         zero precision with wide character string format.
1297 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
1299         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
1300         but have a user supplied buffer, return the empty buffer, not NULL.
1302 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1304         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
1305         Patch by Eric Sharkey <sharkey@netrics.com>.
1307         * crypt/md5test.c (main): Add test for multiple calls to
1308         __md5_process_bytes to itererate over input string.
1310 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
1312         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
1313         from __nis_findfastest.  Take timeout value from parameter.
1314         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
1315         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
1316         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
1318 2001-12-12  Andreas Jaeger  <aj@suse.de>
1320         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
1321         combreloc test so that it works in this case.
1323         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
1325 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
1327         * sysdeps/sh/Makefile: New file.
1328         * sysdeps/sh/_mcount.S: New file.
1329         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
1330         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
1332 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1334         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
1335         limitation [PR libc/2564].
1337 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
1339         * elf/Makefile (dl-routines): Add conflict.
1340         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
1341         (ld.so): Add _begin local symbol.
1342         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
1343         Define.
1344         * elf/dl-deps.c (_dl_build_local_scope): New.
1345         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
1346         of all libraries.
1347         * elf/do-rel.h (VALIDX): Define.
1348         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
1349         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
1350         can be skipped.
1351         * elf/dl-conflict.c: New file.
1352         * elf/dl-lookup.c (_dl_debug_bindings): New.
1353         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
1354         non-NULL.
1355         (_dl_lookup_symbol_skip): Likewise.
1356         (_dl_lookup_versioned_symbol): Likewise.
1357         (_dl_lookup_versioned_symbol_skip): Likewise.
1358         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
1359         define to ElfW(Rel).
1360         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
1361         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
1362         ranges.
1363         Don't adjust address dynamic tags if l_addr is 0.
1364         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
1365         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
1366         (VALIDX, ADDRIDX): Define.
1367         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
1368         (dl_main): Print library list for LD_TRACE_PRELINKING.
1369         If prelinking information can be used, skip relocating libraries and
1370         call _dl_resolve_conflicts instead.
1371         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
1372         * elf/dl-load.c (_dl_map_object): Don't create fake libs
1373         if LD_TRACE_PRELINKING.
1374         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
1375         + DT_ADDRNUM.
1376         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
1377         (DL_DEBUG_PRELINK): Define.
1378         (_dl_resolve_conflicts): Add prototype.
1380         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
1381         .plt for prelinked libraries where prelinking info cannot be used.
1382         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
1383         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
1384         * sysdeps/arm/bits/link.h: New file.
1385         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
1386         content of .got[1].
1387         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1388         (ELF_MACHINE_PLT_REL): Define.
1389         (elf_machine_rela, elf_machine_rela_relative): New.
1390         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
1391         of adjusting it if prelinked and prelinking cannot be used.
1392         * sysdeps/i386/bits/link.h: New file.
1393         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
1394         content of .got[1].
1395         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1396         (ELF_MACHINE_PLT_REL): Define.
1397         (elf_machine_rela, elf_machine_rela_relative): New.
1398         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
1399         of adjusting it if prelinked and prelinking cannot be used.
1400         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
1401         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
1402         to find out map for R_PPC_JMP_SLOT relocs.
1403         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
1404         (OPCODE_BA): Define.
1405         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1406         libraries where prelinking info cannot be used.
1407         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
1408         (elf_machine_fixup_plt): Call sparc_fixup_plt.
1409         (elf_machine_rela): Set value to 0 if relocating conflicts.
1410         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
1411         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
1412         (sparc64_fixup_plt): Fix a typo.
1413         (elf_machine_rela): Set value to 0 if relocating conflicts.
1414         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
1415         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1416         libraries where prelinking info cannot be used.
1417         * sysdeps/sh/bits/link.h: New file.
1418         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
1419         content of .got[1].
1420         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
1421         of adjusting it if prelinked and prelinking cannot be used.
1422         * sysdeps/s390/s390-32/bits/link.h: New file.
1423         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
1424         Save original content of .got[1].
1425         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1426         of adjusting it if prelinked and prelinking cannot be used.
1427         * sysdeps/s390/s390-64/bits/link.h: New file.
1428         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
1429         Save original content of .got[1].
1430         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1431         of adjusting it if prelinked and prelinking cannot be used.
1432         * sysdeps/x86_64/bits/link.h: New file.
1433         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1434         Save original content of .got[1].
1435         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
1436         of adjusting it if prelinked and prelinking cannot be used.
1438 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1440         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
1441         where appropriate instead of numbers.  Little optimizations.
1443 2001-12-10  Roland McGrath  <roland@frob.com>
1445         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
1446         set it.
1448         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
1449         set to GLIBC_2.2.5, not GLIBC_2.2.4.
1451         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
1452         Fix conditionals so this is set by default for stdio and not for libio.
1453         * sysdeps/mach/hurd/configure: Regenerated.
1455 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
1457         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
1459 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
1461         * io/Makefile (tests): Add bug-ftw3.
1462         * io/bug-ftw3.c: New file.
1464         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
1465         matches and GLOB_NOCHECK is set.
1466         * posix/globtest.sh: Correct expected result for NOCHECK test.
1468         * po/ca.po: Update from translation team.
1470 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
1472         Implement transliteration of characters in strings of the locale
1473         definitions.
1474         * locale/programs/linereader.c: Adjust for additional parameter to
1475         lr_token.
1476         (get_string): If character <Uxxxx> is not found try to transliterate
1477         it.
1478         * locale/programs/ld-ctype.c: Adjust for additional parameter to
1479         lr_token.  Add const to charmap parameter of all functions.
1480         (find_translit, find_translit2): New functions.
1481         * locale/programs/charmap.c: Adjust for additional parameter to
1482         lr_token.
1483         * locale/programs/repertoire.c: Likewise.
1484         * locale/programs/linereader.h: Likewise.
1485         * locale/programs/ld-address.c: Likewise.  Add const to charmap
1486         parameter of all functions.
1487         * locale/programs/ld-collate.c: Likewise.
1488         * locale/programs/ld-identification.c: Likewise.
1489         * locale/programs/ld-measurement.c: Likewise.
1490         * locale/programs/ld-messages.c: Likewise.
1491         * locale/programs/ld-monetary.c: Likewise.
1492         * locale/programs/ld-name.c: Likewise.
1493         * locale/programs/ld-numeric.c: Likewise.
1494         * locale/programs/ld-paper.c: Likewise.
1495         * locale/programs/ld-paper.c: Likewise.
1496         * locale/programs/ld-telephone.c: Likewise.
1497         * locale/programs/ld-time.c: Likewise.
1498         * locale/programs/locfile.c: Likewise.
1499         * locale/programs/localedef.c: Likewise.
1500         * locale/programs/localedef.h: Likewise.
1501         * locale/programs/locfile.h: Likewise.  Add declaration for
1502         find_translit.
1503         * locale/programs/simple-hash.c: Add const to first parameter of
1504         find_entry, iterate_table, and lookup.
1505         * locale/programs/simple-hash.h: Likewise.
1506         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
1507         instead.
1508         * include/locale.h: Define __LC_LAST.
1509         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
1511 2001-12-07  Geoff Keating  <geoffk@redhat.com>
1513         * sysdeps/powerpc/Dist: Update for recent FP changes.
1514         * sysdeps/powerpc/fpu/Dist: Likewise.
1516 2001-12-07  Andreas Schwab  <schwab@suse.de>
1518         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
1520 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1522         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
1523         save/restore functions here.
1524         (libm-support): Don't define these functions here.
1525         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
1526         functions here.
1527         * sysdeps/powerpc/fe_nomask.c: Move to...
1528         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
1529         * sysdeps/powerpc/fprrest.S: Move to...
1530         * sysdeps/powerpc/fpu/fprrest.S: ... here.
1531         * sysdeps/powerpc/fprsave.S: Move to...
1532         * sysdeps/powerpc/fpu/fprsave.S: ... here.
1534 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1536         * sysdeps/unix/sysv/linux/opensock.c: New file.
1538 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1540         * config.make.in (with-fp): Define from configure.
1541         * configure.in: Substitute with_fp.
1542         * configure: Regenerate.
1543         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
1544         specified, and don't change FPU environment.
1546 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1548         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
1549         * assert/assert.c: Check result of __asprintf call and don't use
1550         string if it failed.
1551         * assert/assert-perr.c: Likewise.
1552         * inet/rcmd.c: Likewise.
1553         * locale/programs/localedef.c (main): Check result of
1554         construct_output_path and exit if it failed.
1555         (construct_output_path): Check result of asprintf and mkdir calls and
1556         fail if they failed.
1557         * posix/getopt.c: Check result of __asprintf calls and fail if
1558         they failed.
1559         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
1561 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1563         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
1564         patch.
1565         * sysdeps/generic/strncase.c: Likewise.
1566         * string/tester.c: Add tests for strcasecmp and strncasecmp.
1568 2001-12-05  Geoff Keating  <geoffk@redhat.com>
1570         * scripts/cpp: Test the exit status from 'type', not 'awk'.
1572         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
1573         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
1574         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
1575         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
1576         * sysdeps/powerpc/fclrexcpt.c: Move to...
1577         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
1578         * sysdeps/powerpc/fpu_control.h: Move to...
1579         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
1581 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1583         * iconvdata/ibm1129.h: Remove duplicate mappings.
1584         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
1585         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
1586         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1588         * timezone/zic.c: Fix handling of turnaround times.
1589         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
1591 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
1593         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
1594         overflow problem.
1596 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1598         * posix/regex.c: For use outside glibc defined bounded pointer
1599         macros here.  Patch by Jim Meyering <jim@meyering.net>.
1601         * iconvdata/Makefile (modules): Add TCVN5712-1.
1602         * iconvdata/TESTS: Add TCVN5712-1.
1603         * iconvdata/gconv-modules: Likewise.
1604         * iconvdata/tcvn5712-1.c: New file.
1605         * iconvdata/testdata/TCVN-5712: New file.
1606         * iconvdata/testdata/TCVN-5712..UTF8: New file.
1608 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
1610         * iconvdata/cp1258.c: Optimize conversion from UCS4.
1612 2001-12-02  Roland McGrath  <roland@frob.com>
1614         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1616         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1617         Reported by Jeff Bailey <jbailey@nisa.net>.
1619         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1620         Reported by Jeff Bailey <jbailey@nisa.net>.
1622         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
1623         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
1624         Reported by Jeff Bailey <jbailey@nisa.net>.
1626 2001-12-01  Roland McGrath  <roland@frob.com>
1628         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
1629         missing backslash in test arguments.
1630         * sysdeps/mach/hurd/configure: Regenerated.
1632 2001-11-26  Roland McGrath  <roland@frob.com>
1634         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1635         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1637 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
1639         * iconvdata/Makefile (modules): Add ARMSCII-8.
1640         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1641         * iconvdata/armscii-8.c: New file.
1643 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1645         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
1646         don't match, fix {{a,b},c} globbing, clean up.
1647         Patch by Flavio Veloso <flaviovs@magnux.com>.
1648         * posix/globtest.sh: Add new tests.
1650 2001-11-29  Andreas Jaeger  <aj@suse.de>
1652         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1653         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1655         * sysdeps/generic/abort.c: Include libioP.h for
1656         _IO_flush_all_lockp prototype.
1658 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
1660         * posix/regex.h: Define __restrict_arr correctly.
1662 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1664         * iconvdata/ibm1163.c: New file.
1665         * iconvdata/ibm1163.h: New file.
1666         * iconvdata/ibm1164.c: New file.
1667         * iconvdata/ibm1164.h: New file.
1668         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
1669         * iconvdata/Makefile: Likewise.
1670         * iconvdata/testdata/IBM1163: New file.
1671         * iconvdata/testdata/IBM1163..UTF8: New file.
1672         * iconvdata/testdata/IBM1164: New file.
1673         * iconvdata/testdata/IBM1164..UTF8: New file.
1674         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1676         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
1677         * iconvdata/ibm1124.h: Likewise.
1678         * iconvdata/ibm1132.h: Likewise.
1679         * iconvdata/ibm1133.h: Likewise.
1680         * iconvdata/ibm1160.h: Likewise.
1681         * iconvdata/ibm1161.h: Likewise.
1682         * iconvdata/ibm1162.h: Likewise.
1683         * iconvdata/ibm856.h: Likewise.
1684         * iconvdata/ibm922.h: Likewise.
1685         * iconvdata/ibm930.h: Likewise.
1686         * iconvdata/ibm932.h: Likewise.
1687         * iconvdata/ibm933.h: Likewise.
1688         * iconvdata/ibm935.h: Likewise.
1689         * iconvdata/ibm937.h: Likewise.
1690         * iconvdata/ibm939.h: Likewise.
1691         * iconvdata/ibm943.h: Likewise.
1692         * iconvdata/ibm930.c: Pretty printing.
1693         * iconvdata/ibm937.c: Avoid access accross array boundary.
1695         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
1696         the current locale's codeset.
1697         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
1698         empty input string.
1699         * iconv/iconv_prog.c: Pass empty strings as default value for to-
1700         and from-charset.  Don't determine locale's charset here.
1702         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
1703         as the old _IO_flush_all but lock only if parameter is nonzero.
1704         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
1705         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
1706         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
1707         if libio is used [PR libc/2575].
1709 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
1711         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1712         __signbitl): Only define for ISO C99.
1714 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1716         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
1717         herrnop to NETDB_INTERNAL if we run out of buffer space.
1719 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1721         * nss/nss_files/files-XXX.c (internal_getent): Correct input
1722         overflow test for platforms with signed char.
1723         Reported by Andrew Haley <aph@cambridge.redhat.com>.
1725 2001-11-28  Bruno Haible  <bruno@clisp.org>
1727         * locale/programs/simple-hash.c (lookup_2): Remove function.
1728         (insert_entry_2): Call lookup instead of lookup_2.
1730 2001-03-04  Bruno Haible  <bruno@clisp.org>
1732         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1734 2001-10-31  Bruno Haible  <bruno@clisp.org>
1736         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1738 2001-03-21  Bruno Haible  <bruno@clisp.org>
1740         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
1741         chokes on empty macro arguments.
1742         * intl/plural.y: Add #pragma for alloca on AIX 3.
1744 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1746         * intl/dcigettext.c (guess_category_value): Only implement for
1747         glibc.  Otherwise rely on function _nl_locale_name which isn't
1748         present in the glibc sources.
1750 2001-09-24  Bruno Haible  <bruno@clisp.org>
1752         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1753         transliteration when building on a glibc system but outside glibc.
1755 2001-09-22  Bruno Haible  <bruno@clisp.org>
1757         * intl/plural-eval.c: New file, extracted from dcigettext.c.
1758         * intl/dcigettext.c (plural_eval): Remove function, moved to
1759         intl/plural-eval.c.
1760         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1761         Include plural-eval.c.
1763 2001-09-22  Bruno Haible  <bruno@clisp.org>
1765         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1766         don't start with a digit; nplurals must be positive.
1768 2001-09-02  Bruno Haible  <bruno@clisp.org>
1770         * intl/plural-exp.h: New file, extracted from gettextP.h.
1771         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1772         * intl/gettextP.h (struct expression, struct parse_args,
1773         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
1774         * intl/loadmsgcat.c: Include plural-exp.h.
1775         (PLURAL_PARSE): Move macro to plural-exp.h.
1776         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
1777         plural-exp.c.
1778         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
1779         EXTRACT_PLURAL_EXPRESSION.
1780         (_nl_unload_domain): Update.
1781         * intl/dcigettext.c: Include plural-exp.h.
1782         * intl/plural.y: Include plural-exp.h, not gettextP.h.
1783         (FREE_EXPRESSION): Move macro to plural-exp.h.
1784         * intl/Makefile (routines): Add plural-exp.
1785         (distribute): Add plural-exp.h.
1787 2001-07-28  Bruno Haible  <bruno@clisp.org>
1789         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
1790         isdigit, tolower argument to 'unsigned char'.
1791         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
1792         'unsigned char'.
1793         * intl/localealias.c (read_alias_file): Cast isspace argument to
1794         'unsigned char'.
1796 2001-10-20  Bruno Haible  <bruno@clisp.org>
1798         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
1799         anyway.)
1800         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
1801         with the variable 'index' in plural_lookup.
1802         * intl/l10nflist.c (strchr): Likewise.
1803         * intl/localealias.c (strchr): Likewise.
1805         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
1806         * intl/bindtextdom.c: Likewise.
1807         * intl/dcigettext.c: Likewise.
1808         * intl/dgettext.c: Likewise.
1809         * intl/dngettext.c: Likewise.
1810         * intl/explodename.c: Likewise.
1811         * intl/finddomain.c: Likewise.
1812         * intl/gettext.c: Likewise.
1813         * intl/l10nflist.c: Likewise.
1814         * intl/loadmsgcat.c: Likewise.
1815         * intl/localealias.c: Likewise.
1816         * intl/ngettext.c: Likewise.
1817         * intl/textdomain.c: Likewise.
1818         * intl/gettext.h: Assume <limits.h> exists.
1820 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1822         * stdio-common/Makefile (tests): Add scanf11.
1823         * stdio-common/scanf11.c: New file.
1825 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1827         * version.h (RELEASE): Define as development.
1828         (VERSION): Set to 2.2.90.
1830 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1832         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
1833         * nis/nss_nis/nis-grp.c: Likewise.
1834         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1836         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
1837         * nis/nss_nis/nis-pwd.c: Likewise.
1838         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1840         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
1841         * nis/nss_nisplus/nisplus-parser.c: Likewise.
1842         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1844         * nscd/grpcache.c: Use strtoul instead of atol.
1845         * nscd/pwdcache.c: Likewise.
1846         * nss/getent.c: Likewise.
1848 2001-11-27  Paul Eggert  <eggert@twinsun.com>
1850         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1851         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1853 2001-11-19  Bruno Haible  <bruno@clisp.org>
1855         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
1856         90%.
1857         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
1858         improves the quality of the hash function, especially for short
1859         strings.
1861 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1863         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
1864         are found call conv_error and not input_error [PR libc/2669].
1866         * math/bits/mathcalls.h: Mark ceil and floor as const.
1867         Reported by David Mosberger.
1869 2001-11-21  Jim Meyering  <meyering@lucent.com>
1871         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
1872         Define to be __-prefixed.
1873         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
1875 2001-11-26  Andreas Jaeger  <aj@suse.de>
1877         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
1878         avoid warning.
1880 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
1882         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
1883         initialization.
1885         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
1886         unused variables.  Fix threshold for returning 1.0.
1888         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
1889         argument.
1891         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
1892         remove unused variables.
1894         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
1896         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
1897         include local math header files.
1899 2001-11-22  Andreas Jaeger  <aj@suse.de>
1901         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
1902         avoid warning.
1904 2001-11-21  Andreas Jaeger  <aj@suse.de>
1906         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
1908         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
1909         sys/debugreg.h
1911 2001-11-15  Andreas Jaeger  <aj@suse.de>
1913         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
1914         compilers that support it.
1916         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
1917         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1918         * stdlib/stdlib.h: Likewise.
1920 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
1922         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
1923         statement with gotos.
1924         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
1926 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
1928         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
1930 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
1932         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
1934 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
1935             H.J. Lu  <hjl@gnu.org>
1937         * Versions.def (libc): Add GCC_3.0.
1938         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
1939         if gcc supports this flag.
1940         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
1941         (gcc3): Allow glibc to be compiled with gcc 3.x.
1942         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
1943         * config.make.in (static-libgcc, unwind-find-fde): Add.
1944         * Makerules (build-shlib-helper, build-module-helper): Use it.
1945         * scripts/versions.awk: Make sure GLIBC_ versions come first.
1946         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
1947         necessary.
1948         (_fini): Call __deregister_frame_info_bases if
1949         __register_frame_info_bases was used to register.
1950         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
1951         for GLIBC_2.0.
1952         (__register_frame_info_bases, __register_frame_info_table_bases,
1953         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
1954         * elf/Makefile (routines): Add unwind-dw2-fde.
1955         (shared-only-routines): Add unwind-dw2-fde.
1956         * sysdeps/alpha/gccframe.h: New file.
1957         * sysdeps/arm/gccframe.h: New file.
1958         * sysdeps/generic/framestate.c: New file.
1959         * sysdeps/generic/dwarf2.h: New file.
1960         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
1961         * sysdeps/generic/unwind-dw2-fde.c: New file.
1962         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
1963         * sysdeps/generic/unwind-dw2-fde.h: New file.
1964         * sysdeps/generic/unwind-dw2.c: New file.
1965         * sysdeps/generic/unwind-pe.h: New file.
1966         * sysdeps/generic/unwind.h: New file.
1967         * sysdeps/hppa/gccframe.h: New file.
1968         * sysdeps/i386/gccframe.h: New file.
1969         * sysdeps/m68k/gccframe.h: New file.
1970         * sysdeps/mips/gccframe.h: New file.
1971         * sysdeps/powerpc/gccframe.h: New file.
1972         * sysdeps/s390/gccframe.h: New file.
1973         * sysdeps/sh/gccframe.h: New file.
1974         * sysdeps/sparc/gccframe.h: New file.
1975         * sysdeps/vax/gccframe.h: New file.
1976         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1977         Set on all architectures except ia64.
1978         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
1979         for i386.
1980         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
1981         __deregister_frame_info): Move to elf/Versions.
1982         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
1983         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1984         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1985         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
1986         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1987         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1988         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1989         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1990         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1991         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
1992         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
1993         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
1994         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1995         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1996         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
1997         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
1998         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1999         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2001 2001-11-15  Jeff Law  <law@redhat.com>
2003         * posix/regex.c (uintptr_t): Do not provide a definition if the
2004         system provided one.
2006 2001-11-13  Roland McGrath  <roland@frob.com>
2008         * stdio-common/tmpfile.c: Moved to ...
2009         * sysdeps/generic/tmpfile.c: ... here.
2010         * sysdeps/mach/hurd/tmpfile.c: New file.
2012         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
2013         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
2014         (fopenport): Define as weak alias.
2016         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
2017         * libio/libioP.h: ... to here.
2019 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
2021         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
2022         program header twice.  Construct list with the needed information.
2024 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
2026         * po/ca.po: Update from translation team.
2028         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
2029         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
2030         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
2031         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2033 2001-11-10  Andreas Jaeger  <aj@suse.de>
2035         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
2036         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2037         Contributed by Stephen L Moshier <moshier@mediaone.net>.
2039 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
2041         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
2042         correctly.
2043         * elf/dl-load.c (is_dst): New function.
2044         (_dl_dst_count): Use is_dst to check for DST variable.
2045         (_dl_dst_substitute): Likewise.
2047 2001-11-09  Roland McGrath  <roland@frob.com>
2049         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
2050         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
2051         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
2052         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
2053         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
2054         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
2055         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
2056         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
2057         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
2058         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
2059         * sysdeps/mach/hurd/powerpc/Dist: New file.
2061         * hurd/privports.c (__get_privileged_ports):
2062         Only contact the proc server if necessary for this call.
2063         Suggested by Neal H Walfield <neal@cs.uml.edu>.
2064         Check error return for mach_port_mod_refs.
2066 2001-11-09  Andreas Schwab  <schwab@suse.de>
2068         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
2070 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
2072         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
2073         object is always the last in the list.
2074         (_dl_map_object_from_fd): Delete code to remove from object list
2075         when DF_1_NOOPEN is seen.  This is done in lose.
2077 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
2079         * elf/dl-object.c (_dl_new_object): Various small optimizations.
2081 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
2083         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
2084         HWCAP_CHECK macro code.
2086         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
2087         Now returns MAP_FAILED on error.
2088         * elf/rtld.c: Adjust caller.
2089         * sysdeps/generic/dl-cache.c: Likewise.
2090         * sysdeps/generic/ldsodefs.h: Adjust description.
2092         * elf/dl-version.c (match_symbol): Optimize error handling for size.
2093         (_dl_check_map_versions): Likewise.
2095 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
2097         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
2098         _dl_signal_error directly, always use lose.  Set fd to -1 after
2099         file is closed.
2100         (lose): Don't call close if fd == -1.
2102 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
2104         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
2105          Also fix typo @code {mbsinit} to @code{mbsinit}.
2107 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
2109         * elf/dl-profile.c: Replace state variable with simple flag named
2110         running.  Remove commented-out code.
2112         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
2113         (_dl_init_paths): Likewise.
2114         (_dl_map_object_from_fd): Likewise.
2115         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2117 2001-11-06  Roland McGrath  <roland@frob.com>
2119         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
2120         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
2122         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
2123         sysdeps/powerpc/elf/sysdep.h.
2124         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
2126 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
2128         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
2129         speed.
2130         (process_envvars): Some more optimizations.
2131         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
2133         * elf/elf.h: Add dynamic tag definitions for prelinking.
2135         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
2136         Rewrite code to remove environment varables for SUID binaries.
2137         Small optimization in LD_PROFILE handling.
2138         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
2139         changes.
2140         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2142         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
2144         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
2145         strings.  Change type of second parameter.
2146         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
2147         for last change.
2149         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
2151 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2153         * manual/string.texi: Fix typos.
2154         * manual/examples/argp-ex2.c: Likewise.
2156 2001-11-05  Roland McGrath  <roland@frob.com>
2158         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
2159         the more-specific unix/sysv/linux/powerpc file and breaks everything.
2160         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
2161         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
2162         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
2163         here, put under [__ELF__].
2165 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
2167         * manual/charset.texi: Extensive editing work.
2168         * manual/nss.texi: Likewise.
2169         Changes by Dennis Grace <dgrace@us.ibm.com>.
2171 2001-11-04  Roland McGrath  <roland@frob.com>
2173         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
2174         parameter to dir_mkfile.
2176 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
2178         * string/bits/string2.h (__strndup): If n is smaller than len, set
2179         len to n + 1.
2180         * string/tester.c (test_strndup): New function.
2181         (main): Call it.
2183 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
2185         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
2187         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
2188         * scripts/cpp: New file.
2190         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
2191         for rtld_search_dirs content.  Minor optimizations.
2193 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2195         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
2196         avoiding unnecessary duplication.
2198 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
2200         * elf/dl-load.c (_dl_map_object): If library was found using
2201         LD_LIBRARY_PATH, don't try RUNPATH list.
2203 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2205         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
2206         Correct second argument of register_dump call.
2207         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
2208         Likewise.
2210 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2212         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
2213         modules.
2214         * iconvdata/TESTS: Likewise.
2215         * iconvdata/gconv-modules: Likewise.
2216         * iconvdata/ibm1132.c: New file.
2217         * iconvdata/ibm1132.h: New file.
2218         * iconvdata/ibm1133.c: New file.
2219         * iconvdata/ibm1133.h: New file.
2220         * iconvdata/ibm1162.c: New file.
2221         * iconvdata/ibm1162.h: New file.
2222         * iconvdata/testdata/IBM1132: New file.
2223         * iconvdata/testdata/IBM1132..UTF8: New file.
2224         * iconvdata/testdata/IBM1133: New file.
2225         * iconvdata/testdata/IBM1133..UTF8: New file.
2226         * iconvdata/testdata/IBM1162: New file.
2227         * iconvdata/testdata/IBM1162..UTF8: New file.
2228         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
2230         * string/string.h: Fix typo in comment.
2231         * wcsmbs/wchar.h: Likewise.
2233 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
2235         * manual/getopt.texi (getopt_long, getopt_long_only): Include
2236         const in type of longopts parameter.
2238 2001-10-29  Andreas Jaeger  <aj@suse.de>
2240         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
2242 2001-10-29  Kevin Ryde  <user42@zip.com.au>
2244         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
2245         output, clarify `#' behaviour on 0.
2246         (Floating-Point Conversions): Clarify that %g only uses %e when
2247         the exponent would be greater than 1.
2249 2001-10-28  Roland McGrath  <roland@frob.com>
2251         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
2252         * sysdeps/mach/powerpc/machine-sp.h: New file.
2253         * sysdeps/mach/powerpc/sysdep.h: New file.
2254         * sysdeps/mach/powerpc/thread_state.h: New file.
2256         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
2257         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
2258         expect to need the same thing on every platform.
2260         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
2261         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
2263         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
2264         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
2265         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
2266         Move all these assembly-related definitions to ...
2267         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
2269         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
2270         by Peter Bruin <pjbruin@dds.nl>.
2272         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
2273         packing results for a `poll' call.
2275 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2277         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
2278         correctly.
2279         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
2280         bracket expression.
2282         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2283         nrules value.
2284         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
2286 2001-10-24  H.J. Lu  <hjl@gnu.org>
2288         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
2289         Use __BEGIN_DECLS/__END_DECLS around prototypes.
2290         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
2292 2001-10-21  Jim Meyering  <meyering@lucent.com>
2294         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
2295         this code would end up calling gettext even in packages built
2296         with --disable-nls.
2297         * posix/getopt.c (_): Likewise.
2298         * posix/regex.c (_): Likewise.
2300 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2302         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
2303         lookup not ip6.int.
2304         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2305         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
2307 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
2309         * misc/sys/cdefs.h (__attribute_used__): Define.
2310         * elf/rtld.c (_dl_start): Add __attribute_used__.
2311         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
2313 2001-10-25  Andreas Schwab  <schwab@suse.de>
2315         * stdlib/a64l.c: Expect least significant digit first.
2316         * stdlib/l64a.c: Produce least significant digit first.
2317         * stdlib/Makefile (tests): Add test-a64l.
2318         * stdlib/test-a64l.c: New file.
2319         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
2321 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
2323         * po/sk.po: Update from translation team.
2325 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
2327         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
2329 2001-10-18  Andreas Schwab  <schwab@suse.de>
2331         * math/libm-test.inc (print_ulps): Print ulp values rounded to
2332         next whole number.
2333         (print_function_ulps): Likewise.
2334         (print_complex_function_ulps): Likewise.
2335         (print_max_error): Likewise.
2336         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
2338 2001-10-16  Andreas Schwab  <schwab@suse.de>
2340         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
2341         implementation.
2343         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
2344         BSD_SETJMP or BSD__SETJMP is defined, resp.
2345         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
2346         a tail call to __sigsetjmp that would require extending the
2347         caller's frame.
2348         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
2349         * sysdeps/m68k/bsd-setjmp.S: Deleted.
2350         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
2351         Reported by Jes Sorensen <jes@trained-monkey.org>.
2353 2001-10-16  Andreas Jaeger  <aj@suse.de>
2355         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
2356         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
2357         close PR libc/2589.
2359 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
2361         * po/ca.po: New file.  Contributed by the translation team.
2363 2001-10-15  Ralf Baechle  <ralf@gnu.org>
2365         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
2366         a varargs prototype.  Remove dependency from kernel header files.
2368         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
2369         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
2371 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2373         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
2374         to generate hexadecimal identifier.
2375         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
2377 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
2379         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
2381 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2383         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
2384         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
2385         Contributed by Stephen L Moshier <moshier@mediaone.net>.
2387         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
2388         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2389         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
2390         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
2391         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
2392         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
2394         * timezone/africa: Update from tzdata2001d.
2395         * timezone/asia: Likewise.
2396         * timezone/australasia: Likewise.
2397         * timezone/backward: Likewise.
2398         * timezone/europe: Likewise.
2399         * timezone/leapseconds: Likewise.
2400         * timezone/northamerica: Likewise.
2401         * timezone/southamerica: Likewise.
2402         * timezone/zone.tab: Likewise.
2404 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2406         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
2407         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
2409 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
2411         * elf/elf.h (PT_TLS): New definition.
2413 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
2415         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
2416         bits/errno.h
2418 2001-10-07  Roland McGrath  <roland@frob.com>
2420         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
2422 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
2424         * elf/elf.h: Add more ELFOSABI_* constants.
2426 2001-10-04  Ben Collins  <bcollins@debian.org>
2428         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
2429         decleration of __need_wchar_t.
2431 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
2433         * string/bits/string2.h (__strsep_g): Add prototype.
2434         (__strsep): Use it.
2435         * string/Versions (__strsep): Remove.
2436         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
2438 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
2440         * manua/llio.texi: Clarify file references added by mmap.
2441         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
2443 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
2445         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
2446         Add sc_loadrs and sc_rbs_bas to match current kernel.
2448 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2450         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2452         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
2454 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2456         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
2457         object has been bumped because of relocation dependency, avoid
2458         duplicates in l_scope.
2459         (show_scope): Fix typos.
2460         * elf/Makefile: Add rules to build and run reldep6.
2461         * elf/reldep6.c: New file.
2462         * elf/reldep6mod0.c: New file.
2463         * elf/reldep6mod1.c: New file.
2464         * elf/reldep6mod2.c: New file.
2465         * elf/reldep6mod3.c: New file.
2466         * elf/reldep6mod4.c: New file.
2468 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
2470         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
2471         sparc64_fixup_plt.
2472         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
2473         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
2474         for non-lazy binding. Fix .plt[32768+] handling.
2475         (elf_machine_plt_value): Don't add addend.
2476         (elf_machine_rela): Call sparc64_fixup_plt instead of
2477         elf_machine_fixup_plt.
2478         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
2479         dynamic linker at 0xfffff800XXXXXXXX.
2481         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2483 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
2485         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
2487 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
2489         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
2490         declare __cmsg_data field if its size would be bigger than 0.
2491         (CMSG_DATA): Adjust accordingly.
2492         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2493         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
2494         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
2495         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
2496         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2497         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2498         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2500 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
2502         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
2503         * iconvdata/testdata/IBM1160: New file.
2504         * iconvdata/testdata/IBM1160..UTF8: New file.
2505         * iconvdata/testdata/IBM1161: New file.
2506         * iconvdata/testdata/IBM1161..UTF8: New file.
2507         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2509 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2511         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
2512         UL_SETFSIZE computations better.
2514         * rt/Makefile: Remove use of filter for librt again.
2516         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
2517         UL_SETFSIZE computations better.
2519         * string/Versions: Export __strsep for GLIBC_2.2.5.
2520         * string/bits/string2.h: Define all __STRING_INLINE functions if
2521         _FORCE_INLINES is defined.
2522         Use int instead of char of parameter types.
2523         (__strsep): Don't use __strsep_g.  Don't define it.
2524         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
2525         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
2526         __strcpy_small.
2527         (__stpcpy_a_small): Renamed from __stpcpy_small.
2528         (__strcspn_c1): Don't define if _FORCE_INLINES.
2529         (__strspn_c1): Likewise.
2531 2001-09-22  Ben Collins  <bcollins@debian.org>
2533         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
2534         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
2535         * sysdeps/ia64/bits/sigaction.h: Likewise.
2536         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
2538 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
2540         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
2542 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
2544         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
2546 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2548         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
2550 2001-09-20  H.J. Lu  <hjl@gnu.org>
2552         * include/dlfcn.h (__RTLD_SPROF): New definiton.
2553         * elf/dl-open.c (dl_open_worker): Return immediately after loading
2554         for __RTLD_SPROF.
2555         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
2556         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
2558 2001-09-20  H.J. Lu  <hjl@gnu.org>
2560         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
2561         don't add 1.
2563 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2565         * nss/getent.c: Accept -s parameter to overwrite rules in
2566         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
2568         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
2569         with as many ".0" as necessary to form a complete address
2570         inet_network understands.
2572         * nss/getent.c: Various cleanups.  Use simpler and fewer function
2573         calls.
2575 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2577         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
2578         _JMPBUF_UNWINDS.
2579         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
2581 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2583         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
2584         IBM1161.
2585         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
2586         * iconvdata/ibm1160.c: New file.
2587         * iconvdata/ibm1160.h: New file.
2588         * iconvdata/ibm1161.c: New file.
2589         * iconvdata/ibm1161.h: New file.
2590         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2592 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
2594         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
2595         difference between base address and first PT_LOAD's virtual address,
2596         not the base address.
2598 2001-09-11  Tom Rix  <trix@redhat.com>
2600         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
2601         ifdef for __getopt_clean_environment.
2602         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
2604 2001-09-22  Andreas Jaeger  <aj@suse.de>
2606         * elf/reldep4.c (main): Add proper prototype to fix warning.
2608         * elf/reldep5.c (main): Remove unused variable.
2610         * math/math_private.h: Add prototypes.
2612 2001-09-21  Andreas Jaeger  <aj@suse.de>
2614         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
2615         * sysdeps/x86_64/Dist: New file.
2616         * sysdeps/x86_64/soft-fp/Dist: New file.
2618         * sysdeps/gnu/Dist: Remove eval.c.
2620 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
2622         * malloc/memusage.c (realloc): Don't count already allocated
2623         memory in the sums.
2624         (me): Always use dlsym() to find the real implementations.
2626         * malloc/memusage.sh: Make -n option actually do something.
2628 2001-09-20  Andreas Jaeger  <aj@suse.de>
2630         * elf/elf.h (R_390_NUM): Correct value.
2632         * Versions.def: Add missing versions 2.2.3 for libthread_db and
2633         libpthread.
2635         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2636         for x86-64, install x86-64 into */lib64.
2638         * shlib-versions: Add x86-64.
2640         * elf/elf.h: Add x86-64 relocations.
2642 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
2644         * po/fr.po: Update from translation team.
2646 2001-09-19  Andreas Jaeger  <aj@suse.de>
2648         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
2649         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
2650         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
2651         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
2652         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
2653         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
2654         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
2655         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
2656         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
2657         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2658         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
2659         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
2660         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
2661         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
2662         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
2663         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
2664         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
2665         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2666         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
2667         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
2668         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
2669         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
2670         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
2671         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
2672         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
2673         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
2674         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
2675         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
2676         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
2677         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
2678         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
2679         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
2680         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
2681         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
2682         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
2683         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
2684         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
2685         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
2686         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
2687         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
2688         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
2689         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
2690         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
2691         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
2692         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
2693         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
2694         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
2695         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
2696         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2697         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
2698         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
2699         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2700         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
2701         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
2702         * sysdeps/unix/x86_64/sysdep.S: New file.
2703         * sysdeps/unix/x86_64/sysdep.h: New file.
2704         * sysdeps/x86_64/Implies: New file.
2705         * sysdeps/x86_64/Makefile: New file.
2706         * sysdeps/x86_64/Versions: New file.
2707         * sysdeps/x86_64/__longjmp.S: New file.
2708         * sysdeps/x86_64/abort-instr.h: New file.
2709         * sysdeps/x86_64/atomicity.h: New file.
2710         * sysdeps/x86_64/bits/endian.h: New file.
2711         * sysdeps/x86_64/bits/setjmp.h: New file.
2712         * sysdeps/x86_64/bits/string.h: New file.
2713         * sysdeps/x86_64/bp-asm.h: New file.
2714         * sysdeps/x86_64/bsd-_setjmp.S: New file.
2715         * sysdeps/x86_64/bsd-setjmp.S: New file.
2716         * sysdeps/x86_64/dl-machine.h: New file.
2717         * sysdeps/x86_64/elf/initfini.c: New file.
2718         * sysdeps/x86_64/elf/start.S: New file.
2719         * sysdeps/x86_64/ffs.c: New file.
2720         * sysdeps/x86_64/ffsll.c: New file.
2721         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
2722         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
2723         * sysdeps/x86_64/fpu/e_acosl.c: New file.
2724         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
2725         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
2726         * sysdeps/x86_64/fpu/e_expl.c: New file.
2727         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
2728         * sysdeps/x86_64/fpu/e_log10l.S: New file.
2729         * sysdeps/x86_64/fpu/e_log2l.S: New file.
2730         * sysdeps/x86_64/fpu/e_logl.S: New file.
2731         * sysdeps/x86_64/fpu/e_powl.S: New file.
2732         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
2733         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
2734         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
2735         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
2736         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
2737         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
2738         * sysdeps/x86_64/fpu/fegetenv.c: New file.
2739         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
2740         * sysdeps/x86_64/fpu/fegetround.c: New file.
2741         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
2742         * sysdeps/x86_64/fpu/fesetenv.c: New file.
2743         * sysdeps/x86_64/fpu/fesetround.c: New file.
2744         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
2745         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
2746         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
2747         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
2748         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
2749         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
2750         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
2751         * sysdeps/x86_64/fpu/s_atanl.c: New file.
2752         * sysdeps/x86_64/fpu/s_cosl.S: New file.
2753         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
2754         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
2755         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2756         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2757         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2758         * sysdeps/x86_64/fpu/s_logbl.c: New file.
2759         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2760         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2761         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2762         * sysdeps/x86_64/fpu/s_rintl.c: New file.
2763         * sysdeps/x86_64/fpu/s_significandl.c: New file.
2764         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2765         * sysdeps/x86_64/fpu/s_sinl.S: New file.
2766         * sysdeps/x86_64/fpu/s_tanl.S: New file.
2767         * sysdeps/x86_64/gmp-mparam.h: New file.
2768         * sysdeps/x86_64/hp-timing.c: New file.
2769         * sysdeps/x86_64/hp-timing.h: New file.
2770         * sysdeps/x86_64/htonl.S: New file.
2771         * sysdeps/x86_64/memusage.h: New file.
2772         * sysdeps/x86_64/setjmp.S: New file.
2773         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
2774         * sysdeps/x86_64/stackinfo.h: New file.
2775         * sysdeps/x86_64/sysdep.h: New file.
2776         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
2778         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
2779         L Moshier.
2781 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2783         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
2784         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
2786 2001-09-18  Andreas Schwab  <schwab@suse.de>
2788         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
2789         list, now that l_scope is a pointer.
2791         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
2792         scope list.
2794 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2796         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
2797         (elf_machine_rela_relative): Add a missing declaration.
2799 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
2801         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
2802         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
2803         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
2804         ldd-rewrite scripts.
2806 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2808         * elf/ldd.bash.in: Update copyright message.
2810 2001-09-17  H.J. Lu  <hjl@gnu.org>
2812         * hurd/hurdmalloc.c (bcopy): Removed.
2813         (realloc): Replace bcopy with memcpy.
2814         * hurd/path-lookup.c (file_name_path_scan): Likewise.
2815         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
2816         * sunrpc/rpcinfo.c (pmapdump): Likewise.
2818         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
2819         (gethostbyaddr): Likewise.
2820         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
2822 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2824         * sysdeps/gnu/eval.c: Removed.
2826 2001-09-18  Andreas Jaeger  <aj@suse.de>
2828         * sysdeps/i386/fpu/s_logbl.S: Move to ...
2829         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
2831         * sysdeps/i386/fpu/s_rintl.S: Move to ...
2832         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
2834         * sysdeps/i386/fpu/s_significandl.S: Move to ...
2835         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
2837 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
2839         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2840         nrules value.
2842 2001-09-14  H.J. Lu  <hjl@gnu.org>
2844         * sysdeps/mips/fpu/libm-test-ulps: Updated.
2846 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
2848         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
2849         Patch by Florian La Roche <laroche@redhat.com>.
2851         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
2853         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
2854         ETHER_CRC_LEN.
2856 2001-09-14  Andreas Schwab  <schwab@suse.de>
2858         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
2859         Sumner <bls@sgi.com>.
2860         * posix/execlp.c: Likewise.
2862 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
2864         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
2865         is already found earlier in the search scope.
2867 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
2869         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
2870         filter.
2872 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
2874         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
2876 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
2878         * config.h.in: Enforce optimization to be used.
2879         * Makeconfig (preprocess-versions): Define ASSEMBLER.
2880         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
2881         * posix/Makefile (annexc-CFLAGS): Define to -O.
2882         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
2884 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
2886         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
2887         Patch by Stephan Kulow.
2889 2001-09-08  Ben Collins  <bcollins@debian.org>
2891         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
2892         usage of RESOLVE() (r_type, not reloc->r_type).
2894 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2896         * elf/dl-object.c: Avoid allocating extra memory block for name.
2897         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
2898         allocated separately.
2899         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2901 2001-09-08  H.J. Lu  <hjl@gnu.org>
2903         * po/zh_TW.po: Fix a typo.
2905 2001-09-07  Tom Rix  <trix@redhat.com>
2907         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
2909 2001-08-26  Tom Rix  <trix@redhat.com>
2911         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
2912         command line options.
2913         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
2914         * sysdeps/unix/sysv/aix/start.c: Removed.
2915         * sysdeps/unix/sysv/aix/start-libc.c: New file.
2916         * sysdeps/unix/sysv/aix/init-first.c: New file.
2917         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
2919 2001-09-08  Ben Collins  <bcollins@debian.org>
2921         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
2922         * sysdeps/generic/dl-machine.h: Likewise.
2923         * sysdeps/hppa/dl-fptr.c: Likewise.
2924         * sysdeps/ia64/dl-fptr.c: Likewise.
2925         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2926         * sysdeps/mips/dl-machine.h: Likewise.
2927         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2928         * sysdeps/powerpc/dl-machine.c: Likewise.
2930 2001-09-07  Ben Collins  <bcollins@debian.org>
2932         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
2934         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
2936 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2938         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
2939         dependencies if necessary.
2941         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
2942         loaded directly) determine length if l_initfini list by iterating
2943         over its elements.  Minor optimizations.
2944         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
2945         for dependency objects.
2946         If object was already loaded check whether any of the dependencies
2947         is already on the relocation dependency list.  If yes, remove the
2948         latter.  Minor optimizations.
2949         * elf/dl-lookup.c (add_dependency): Add check for self reference of
2950         maps here.  Search l_initfini list only if the object was loaded
2951         directly and not only as a dependency.
2952         (_dl_lookup_symbol): Add relocation dependency also if object
2953         is not in global scope.  Remove test for self-reference here.
2954         (_dl_lookup_versioned_symbol): Likewise.
2955         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
2956         element of first name record.
2957         * elf/loadtest.c: Add some more test to recognize early if an object
2958         wasn't unloaded.
2959         * elf/Makefile: Add rules to build and run reldep5.
2960         * elf/reldep5.c: New file.
2961         * elf/reldepmod5.c: New file.
2962         * elf/reldepmod6.c: New file.
2964         * elf/reldep2.c: Fix typo.
2966 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
2968         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
2969         elements.  Change l_scope to be a pointer only.
2970         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
2971         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
2972         here add searchlist of newly open file to the dependency's scope.
2973         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
2974         only searchlist from its scope.  Free own scope array if necessary.
2975         * elf/Makefile (tests): Add dblload and dblunload now.
2977 2001-09-06  Andreas Jaeger  <aj@suse.de>
2979         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
2980         Stephen L Moshier.
2982 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
2984         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
2985         they both fail.
2986         * elf/dblload.c: New file.
2987         * elf/dblloadmod1.c: New file.
2988         * elf/dblloadmod2.c: New file.
2989         * elf/dblloadmod3.c: New file.
2990         * elf/dblunload.c: New file.
2992 2001-09-04  Richard Henderson  <rth@redhat.com>
2994         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
2995         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
2997 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2999         Correct very misleading message for error in failed runtime relocation.
3000         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
3001         place of the error.
3002         (_dl_signal_cerror): Likewise.
3003         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
3004         * elf/dl-close.c: Likewise.
3005         * elf/dl-deps.c: Likewise.
3006         * elf/dl-load.c: Likewise.
3007         * elf/dl-lookup.c: Likewise.
3008         * elf/dl-open.c: Likewise.
3009         * elf/dl-reloc.c: Likewise.
3010         * elf/dl-sym.c: Likewise.
3011         * elf/dl-version.c: Likewise.
3012         * sysdeps/generic/dl-sysdep.c: Likewise.
3014 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
3016         * iconv/strtab.c (strtabinit): Initialize null Strent.
3017         (newstring): Move len == 0 handling...
3018         (strtabadd): ...here.
3019         If len == 1, return null Strent.
3020         When inserting a suffix of an existing string, check if
3021         it is not equal to some suffix already recorded.
3022         Copy left and right members over if adding longer string.
3024 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
3026         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
3028         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
3029         (__syscall_gethostname): Add prototype.
3031 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
3033         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
3035 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
3037         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
3039 2001-08-27  Roland McGrath  <roland@frob.com>
3041         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
3042         short, copy that much into NAME anyway before returning error.
3044 2001-09-01  Richard Henderson  <rth@redhat.com>
3046         * sysdeps/alpha/elf/Dist: Remove file.
3047         * sysdeps/alpha/elf/Makefile: Remove file.
3048         * sysdeps/alpha/elf/crtbegin.S: Remove file.
3049         * sysdeps/alpha/elf/crtend.S: Remove file.
3050         * sysdeps/alpha/elf/initfini.c: New file.
3052 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
3054         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
3055         * iconv/tst-iconv3.c: Likewise.
3057 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
3059         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
3061 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
3063         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
3064         export it.
3065         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
3066         * iconv/iconv_prog.c (insert_cache): New function.
3067         (print_known_names): If cache is used call insert_cache to use the
3068         information from the cache [PR libc/2509].
3070 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
3072         * time/strptime.c (strptime_internal): Recognize 'l' format and
3073         handle it like 'I' for symmetry with strftime.
3075 2001-08-31  Richard Henderson  <rth@redhat.com>
3077         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
3078         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
3079         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
3080         (print_statistics): Make scalar unsigned long long.
3081         * sysdeps/alpha/hp-timing.h: New file.
3083 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
3085         * stdio-common/perror.c (perror): Save errno early, pass it
3086         down to perror_internal.
3087         (perror_internal): Add errnum argument.
3089 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
3091         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
3092         Don't add old memory content for R_ALPHA_REFQUAD.
3094 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3096         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
3097         memory correctly.
3099         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
3100         instead of open, __close instead of close, __getpagesize instead
3101         of getpagesize.
3103         * string/argz-stringify.c (__argz_stringify): Use __strnlen
3104         instead of strnlen.
3105         * include/string.h (strndupa): Redefine here to use __strnlen
3106         instead of strnlen.
3107         * string/strndup.c (__strndup): Use __strnlen not strnlen.
3109         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
3110         connected).
3112 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
3114         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
3115         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
3116         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
3117         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
3118         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
3119         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
3120         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
3122 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3124         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
3126 2001-08-30  Andreas Jaeger  <aj@suse.de>
3128         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
3129         contributed Stephen L Moshier.
3131 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
3133         * sunrpc/etc.rpc (sgi_fam): Add.
3135 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3137         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
3139 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3141         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
3142         first is from a previous call.
3143         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
3145 2001-08-29  Andreas Schwab  <schwab@suse.de>
3147         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
3149 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3151         * config.make.in (INSTALL_SCRIPT): Define.
3152         * Makeconfig (INSTALL_SCRIPT): Define.
3153         * Makerules (do-install-script): New macro to install scripts using
3154         INSTALL_SCRIPT.
3155         (install-bin-script): New rule to install scripts with
3156         do-install-script.
3157         (install-bin-script-nosubdir): New rule.
3158         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
3159         (distinfo-vars): Add $(install-bin-script).
3160         * Rules (others): Likewise.
3161         * Makefile (glibcbug): Install with install-bin-script.
3162         * debug/Makefile (xtrace): Likewise.
3163         (catchsegv): Likewise.
3164         * elf/Makefile (ldd): Likewise.
3165         * malloc/Makefile (mtrace): Likewise.
3166         * timezone/Makefile (tzselect): Likewise.
3168 2001-08-29  H.J. Lu  <hjl@gnu.org>
3170         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
3171         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
3172         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
3174 2001-08-29  Andreas Schwab  <schwab@suse.de>
3176         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
3178 2001-08-28  H.J. Lu  <hjl@gnu.org>
3180         * Makeconfig (combreloc-LDFLAGS): New variable.
3181         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
3182         * config.make.in (have-z-combreloc): New variable.
3183         * configure.in: Substitute libc_cv_z_combreloc.
3185 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3187         * po/sv.po: Update from translation team.
3188         * po/fr.po: Likewise.
3189         * po/da.po: Likewise.
3191 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3193         * Makerules: Fix a typo: MD% -> MD5.
3195 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
3197         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
3198         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
3200 2001-08-28  Andreas Jaeger  <aj@suse.de>
3202         * manual/libc-texinfo.sh: Add entry about free manuals.
3204         * manual/contrib.texi (Contributors): Fix cross reference.
3206         * manual/libc.texinfo (Copying): Include freemanuals.
3208         * manual/Makefile (appendices): Add freemanuals.
3210         * manual/freemanuals.texi: New file.
3211         Patch by Brian Youmans <3diff@gnu.org>.
3213         * manual/libm-err-tab.pl: Pretty print more platforms, print a
3214         smaller table.
3216         * manual/math.texi (Errors in Math Functions): Fix grammar, start
3217         table on separate page.
3218         Patch by Brian Youmans <3diff@gnu.org>.
3220 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3222         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
3223         the connection went down after we first used it try to connect
3224         again and resend the message before printing to the console.
3225         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
3227 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3229         * string/tst-strlen.c (main): Test strnlen (, -1) too.
3230         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
3231         bit set.
3233 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3235         * iconv/strtab.c (searchstring): Use correct length for comparison.
3236         (strtabadd): Account total size correct if new string has old string as
3237         substring.
3239 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3241         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
3243 2001-08-27  Andreas Jaeger  <aj@suse.de>
3245         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
3247         * math/libm-test.inc (j0_test): Add extra tests.
3248         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
3249         not x, in Hankel approximation.
3250         Patches by Stephen L Moshier.
3252 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3254         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
3255         link_map.
3257         * configure.in: Fix test for .rela.dyn section.
3259         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
3261 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3263         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
3264         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
3265         Pass type_class to _dl_lookup_*.
3266         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
3267         Pass around just type_class instead of noexec, noplt pair.
3268         (_dl_lookup_versioned_symbol): Likewise.
3269         (_dl_lookup_symbol_skip): Pass around just type_class instead of
3270         noexec, noplt pair.
3271         (_dl_lookup_versioned_symbol_skip): Likewise.
3272         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
3273         * elf/do-lookup.h (do_lookup): Likewise.
3274         * include/link.h (struct link_map): Replace noexec and noplt fields
3275         in l_lookup_cache with type_class field.
3276         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
3277         ELF_RTYPE_CLASS_COPY): Define.
3278         Adjust prototypes for _dl_lookup_symbol and
3279         _dl_lookup_versioned_symbol.
3280         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
3281         elf_machine_lookup_noexec_p): Remove.
3282         (elf_machine_type_class): Define.
3283         * sysdeps/arm/dl-machine.h: Likewise.
3284         * sysdeps/hppa/dl-machine.h: Likewise.
3285         * sysdeps/cris/dl-machine.h: Likewise.
3286         * sysdeps/i386/dl-machine.h: Likewise.
3287         * sysdeps/ia64/dl-machine.h: Likewise.
3288         * sysdeps/m68k/dl-machine.h: Likewise.
3289         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3290         * sysdeps/mips/dl-machine.h: Likewise.
3291         * sysdeps/powerpc/dl-machine.h: Likewise.
3292         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3293         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3294         * sysdeps/sh/dl-machine.h: Likewise.
3295         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3296         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3298 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3300         * manual/message.texi (Advanced gettext functions): Change
3301         description of plural forms for Slovak.
3302         Reported by Marcel Telka <marcel@telka.sk>.
3304         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
3305         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
3307 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3309         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
3310         typo.  Patch by Florian La Roche <laroche@redhat.com>.
3312 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3314         * include/link.h (struct link_map): Add l_lookup_cache element.
3315         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
3316         (RESOLVE_MAP): Likewise.
3317         (_dl_relocate_object): Remove cache initialization.
3318         * elf/dl-lookup.c: Rip out cache handling code.
3319         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
3320         declarations.
3322         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
3323         remove some __builtin_expect.
3324         (_dl_lookup_versioned_symbol): Likewise.
3326         * config.h.in: Add HAVE_Z_COMBRELOC.
3327         * configure.in: Add test for -z combreloc.
3329         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
3330         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
3331         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
3332         case to almost no code.
3334 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
3336         * po/tr.po: Update from translation team.
3338 2001-08-24  Andreas Jaeger  <aj@suse.de>
3340         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
3341         make clean works.
3343 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3345         * elf/rtld.c (print_statistics): Printf % after percent values.
3346         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
3348         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
3349         don't have to compute the hash value and initialize current_value.
3350         Move reference_name variable to where it is needed.
3351         (_dl_lookup_versioned_symbol): Likewise.
3353 2001-08-24  Roland McGrath  <roland@frob.com>
3355         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
3356         Just test that strerror returns non-null for a few errno codes.
3358 2001-08-23  Roland McGrath  <roland@frob.com>
3360         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
3361         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
3363         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
3365         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
3366         __mach_reply_port.
3368 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3370         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
3371         returns NULL.
3373         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
3374         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
3375         doesn't do it.
3376         * elf/rtld.c: Include <sys/param.h>.
3377         * elf/dl-reloc.c: Likewise.
3379 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3381         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
3382         empty to prevent junk from being generated.
3383         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
3385 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3387         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
3388         records.  Rename endrel to relative, initialize it to r, and use it
3389         in elf_machine_rel_relative calls.  Point r after relative relocs.
3391 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3393         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
3394         of R_386_NONE.
3396 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3398         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
3399         necessary.  Undefine newly defined macros at the end.
3400         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
3401         Rename from elf_machine_rel_relative.
3402         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
3403         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
3404         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
3405         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
3406         Likewise.
3407         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
3408         Likewise.
3409         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
3410         Fix argument types.
3411         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
3412         Fix argument types.
3413         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
3414         Likewise.  Fix argument types.
3415         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
3416         Likewise.  Fix argument types.
3417         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
3418         Fix argument types.
3419         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
3420         ElfW(Rel) in argument.
3421         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
3422         function.
3424 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
3426         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
3428 2001-08-24  Andreas Jaeger  <aj@suse.de>
3430         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
3431         Stephen L Moshier <moshier@mediaone.net>.
3433 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3435         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
3436         first if RELCOUNT is set.
3438         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
3439         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
3440         elf_machine_rel_relative.
3441         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
3442         Minor optimizations.
3443         * sysdeps/arm/dl-machine.h: Likewise.
3444         * sysdeps/cris/dl-machine.h: Likewise.
3445         * sysdeps/hppa/dl-machine.h: Likewise.
3446         * sysdeps/i386/dl-machine.h: Likewise.
3447         * sysdeps/ia64/dl-machine.h: Likewise.
3448         * sysdeps/m68k/dl-machine.h: Likewise.
3449         * sysdeps/mips/dl-machine.h: Likewise.
3450         * sysdeps/powerpc/dl-machine.h: Likewise.
3451         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3452         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3453         * sysdeps/sh/dl-machine.h: Likewise.
3454         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3455         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3457 2001-08-23  Roland McGrath  <roland@frob.com>
3459         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
3461         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
3462         sysdeps/mach version.  Implement counting ("recursive") mutexes
3463         on top of cthreads mutexes.
3464         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
3466         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
3467         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
3468         (__libc_cleanup_region_start, __libc_cleanup_region_end,
3469         __libc_clean_end): Define these to call the cleanup function after
3470         normal exit when they're supposed to.
3472         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
3473         Take new first arg DOIT, a boolean saying whether to really install
3474         any cleanup handler.
3475         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
3476         (__libc_cleanup_end): Likewise.
3477         * sysdeps/generic/bits/libc-lock.h: Same changes.
3478         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
3479         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
3480         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
3481         Likewise.
3482         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
3483         * sysdeps/generic/bits/stdio-lock.h
3484         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
3486 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3488         * elf/ldconfig.c (search_dir): Remove stale symlinks.
3490 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3492         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
3493         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
3494         lookups in cache.
3495         (_dl_lookup_versioned_symbol): Likewise.
3496         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
3497         relocation lookup.
3498         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
3499         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
3500         (lookup_cache, lookup_cache_versioned): Add declarations.
3502 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3504         * stdlib/tst-random.c (main): Swap parameters in fail call.
3505         Patch by Pete Bevin <pete@petebevin.com>.
3507 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3509         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
3511 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3513         * malloc/obstack.c: Indent preprocessor directives.
3514         Patch by Jim Meyering <meyering@ascend.com>.
3516         * po/ja.po: Update from translation team.
3518 2001-08-23  Roland McGrath  <roland@frob.com>
3520         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
3522         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
3523         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
3525 2001-08-22  Roland McGrath  <roland@frob.com>
3527         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
3528         __libc_lock_define_recursive.
3529         * elf/dl-open.c: Don't declare it here any more.
3530         * elf/dl-close.c: Likewise.
3531         * elf/dl-lookup.c: Likewise.
3532         * elf/dl-iteratephdr.c: Likewise.
3533         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
3534         __libc_lock_unlock_recursive.
3535         * elf/dl-close.c (_dl_close): Likewise
3536         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
3537         * elf/dl-open.c (_dl_open): Likewise
3539         * sysdeps/generic/bits/libc-lock.h
3540         (__libc_lock_define_recursive): New macro.
3541         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
3542         (_IO_lock_lock): Use __libc_lock_lock_recursive.
3543         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
3545         * conform/conformtest.pl (checknamespace): Sort the output list.
3547         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
3548         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
3549         definitions conditional on [__USE_XOPEN].
3551         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
3552         these unconditionally, not only use [__USE_BSD], so as to match
3553         the sysdeps/unix/sysv/linux files.
3555 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3557         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
3558         avoid warnings.
3560         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
3561         DL_LOOKUP_ADDRESS.
3563 2001-08-22  Roland McGrath  <roland@frob.com>
3565         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
3566         conditionalization of sa_handler/sa_sigaction member types to
3567         match the sysdeps/unix/sysv/linux file.
3569 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3571         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
3572         symbol sizes a bit better.
3574         * sysdeps/ia64/strncpy.S: Complete rewrite.
3575         Contributed by Jakub Jelinek <jakub@redhat.com>.
3577         * string/stratcliff.c (main): Add strncpy test.
3579 2001-08-22  Roland McGrath  <roland@frob.com>
3581         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
3582         and don't declare unsetenv or _environ directly.
3583         (unsetenv): Return int, not void.  Use __environ instead of _environ.
3585 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
3587         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
3588         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
3589         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
3590         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
3591         test for cmsg struct size.
3593 2001-04-23  Paul Eggert  <eggert@twinsun.com>
3595         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
3596         Rename __argc to ___argc in prototypes to avoid compatibility
3597         problems with systems that reserve the identifier "__argc".
3598         Similarly for __argv.
3600 2001-08-21  Roland McGrath  <roland@frob.com>
3602         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
3604         * mach/Makefile (tests): Removed.
3605         * mach/hello.c: File removed.
3607 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3609         * po/sv.po: Update from translation team.
3611         * stdio-common/vfscanf.c: Fix handling of %l[].
3612         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3614         * libio/Makefile (tests): Add tst-sscanf.
3615         * libio/tst-sscanf.c: New file.
3617         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
3618         * malloc/mtrace.c (tr_where): dli_sname always points to a
3619         non-empty string if != NULL.
3620         Reported by Tim Janik <timj@gtk.org>.
3622 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
3624         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
3625         buf.  Free resources on failure.
3626         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
3627         (makefd_xprt): Likewise.
3628         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
3629         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
3630         * sunrpc/auth_unix.c (authunix_create): Likewise.
3632 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
3634         * string/strnlen.c: Remove.
3635         * sysdeps/generic/strnlen.c: New file.
3636         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3638 2001-08-21  Roland McGrath  <roland@frob.com>
3640         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3641         as a macro, not an extern inline function.
3643         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
3644         * Versions.def (libc): Add GLIBC_2.2.5 set.
3645         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
3646         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
3648 2001-08-20  Roland McGrath  <roland@frob.com>
3650         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3651         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3653 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3655         * string/bits/string2.h: Remove strnlen optimization here.
3656         * sysdeps/i386/i486/bits/string.h: Add it here.
3658 2001-08-21  Wolfram Gloger  <wg@malloc.de>
3660         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3662 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3664         * po/gl.po: Update from translation team.
3666 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3668         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3669         * misc/err.c (convert_and_print): Likewise.
3671         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3672         function calls.
3674 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3676         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
3677         change of the gregset_t type.
3678         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3680 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3682         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3684 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3686         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3688         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
3690 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
3692         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3693         before calling the cthreads initialization code.
3695 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3697         * argp/argp-help.c: Fix two problems introduced in last change.
3699         * include/dirent.h: Include <dirstream.h> first.
3701 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
3703         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
3705         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
3706         * sunrpc/xdr_rec.c: Likewise.
3707         * sunrpc/xdr_mem.c: Likewise.
3708         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
3709         * sunrpc/rpc_cmsg.c: Likewise.
3710         * sunrpc/getrpcport.c (getrpcport): Likewise.
3711         * sunrpc/clnt_simp.c (callrpc): Likewise.
3712         * sunrpc/clnt_gen.c (clnt_create): Likewise.
3713         * string/envz.c: Likewise.
3715         * po/ko.po: Update from translation team.
3717         * argp/argp-help.c: Handle wide oriented stderr stream.
3719 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
3721         * sysdeps/generic/strtol.c: Little optimizations.  Add some
3722         __builtin_expect.
3724         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3726         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3727         * wcsmbs/wcwidth.c (wcwdith): Likewise.
3728         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3730         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3732         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3734         * time/time.h (struct timespec): Use __time_t for tv_sec element.
3736         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
3737         wchar_t for function declarations and defintions.
3739         * misc/sys/select.h: Define __need_time_t before including <time.h>.
3740         Define suseconds_t if it hasn't happened yet.
3742         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3744         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3746         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3747         <stddef.h>.
3749         * conform/data/stddef.h-data: Remove wint_t.
3751         * conform/conformtest.pl: Change namespace test to take #undef
3752         lines into account.
3754         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3756         * conform/data/sys/socket.h-data: Add sockatmark.
3758 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3760         * io/fts.c: Update from recent BSD source.
3762 2001-08-17  Roland McGrath  <roland@frob.com>
3764         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3765         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3766         Likewise.
3768 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3770         * locale/duplocale.c (__duplocale): Also initialize the special
3771         __ctype_* elements.
3773         * conform/data/netdb.h-data: Adjust gai_strerror return type.
3775 2001-08-17  Andreas Jaeger  <aj@suse.de>
3777         * misc/getpass.c: Include wchar.h for prototypes.
3778         * malloc/obstack.c: Likewise.
3780 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3782         * sunrpc/svc_simple.c (universal): Use __write instead of write.
3784         * wcsmbs/wcscoll.c: Also define __wcscoll.
3785         * include/wchar.h: Declare __wcscoll.
3787         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
3788         * libio/vwprintf.c: Likewise.
3789         * libio/wprintf.c: Likewise.
3791         * iconv/gconv_cache.c: Use __munmap instead of munmap.
3793 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
3795         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3796         instead of mbrtowc.
3797         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3798         wcslen, and __wcscoll instead of wcscoll.
3800         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
3802         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
3803         __getuid instead of getuid.
3805         * stdio-common/perror.c (perror): Use __close instead of close.
3806         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3807         * libio/freopen.c (freopen): Likewise.
3808         * libio/freopen64.c (freopen64): Likewise.
3810         * libio/tst-ungetwc2.c (main): Define str const.
3812         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
3813         * libio/fwprintf.c: Also define __fwprintf.
3814         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
3815         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
3816         * assert/assert-perr.c: Likewise.
3817         * assert/assert.c: Likewise.
3818         * gmon/gmon.c: Likewise.
3819         * inet/rcmd.c: Likewise.
3820         * malloc/obstack.c: Likewise.
3821         * misc/err.c: Likewise.
3822         * misc/error.c: Likewise.
3823         * misc/getpass.c: Likewise.
3824         * posix/getopt.c: Likewise.
3825         * resolv/res_hconf.c: Likewise.
3826         * stdio-common/perror.c: Likewise.
3827         * stdio-common/psignal.c: Likewise.
3828         * stdlib/fmtmsg.c: Likewise.
3829         * sunrpc/auth_unix.c: Likewise.
3830         * sunrpc/clnt_perr.c: Likewise.
3831         * sunrpc/clnt_tcp.c: Likewise.
3832         * sunrpc/clnt_udp.c: Likewise.
3833         * sunrpc/clnt_unix.c: Likewise.
3834         * sunrpc/svc_simple.c: Likewise.
3835         * sunrpc/svc_tcp.c: Likewise.
3836         * sunrpc/svc_udp.c: Likewise.
3837         * sunrpc/svc_unix.c: Likewise.
3838         * sunrpc/xdr.c: Likewise.
3839         * sunrpc/xdr_array.c: Likewise.
3840         * sunrpc/xdr_rec.c: Likewise.
3841         * sunrpc/xdr_ref.c: Likewise.
3842         * sysdeps/generic/wordexp.c: Likewise.
3844         * po/it.po: Update from translation team.
3846         * misc/err.c: Handle wide oriented stderr stream.
3848 2001-08-14  Tom Rix  <trix@redhat.com>
3850         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
3851         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
3853 2001-08-13  Tom Rix  <trix@redhat.com>
3855         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
3856         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
3857         and __intptr_t.
3859 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3861         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
3862         Store the access registers to the ucontext structure.
3863         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
3864         Likewise.
3866         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
3867         Load the access registers from the ucontext structure.
3868         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
3869         Likewise.
3871         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
3872         offsets to the new ucontext layout.
3873         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
3875         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
3876         of the ucontext structure.
3877         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3879 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
3881         * misc/error.c (error): Handle wide oriented stderr stream correctly.
3882         (error_at_line): Likewise.
3884         * stdio-common/perror.c (perror): Implement according to standard.
3885         The stream orientation must not be changed if the stream was not
3886         oriented before the call.
3887         * stdio-common/Makefile (tests): Add tst-perror.
3888         * stdio-common/tst-perror.c: New file.
3891 See ChangeLog.12 for earlier changes.