[ld]: Add __tls_get_addr to GLIBC_2.3.
[glibc.git] / ChangeLog
blob995c79d04c4eac42b092e51c11501a712a0b5ac4
1 2002-02-06  Roland McGrath  <roland@frob.com>
3         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
4         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
6 2002-02-06  H.J. Lu  <hjl@gnu.org>
8         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9         is included.
11 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
13         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
14         attribute((packed)) to counter stupid people misuing gcc options.
15         (struct stat64): Likewise.
17 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
19         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
20         the variables which are used as booleans.
22 2002-02-06  Andreas Jaeger  <aj@suse.de>
24         * include/libc-symbols.h (INTUSE): Renamed from INT.
25         * elf/dl-deps.c: Change users.
26         * sysdeps/generic/dl-sysdep.c: Likewise.
27         * sysdeps/generic/dl-cache.c: Likewise.
28         * elf/dl-reloc.c: Likewise.
29         * elf/rtld.c: Likewise.
30         * elf/dl-version.c: Likewise.
31         * elf/dl-load.c: Likewise.
32         * elf/dl-dst.h: Likewise.
33         * elf/dl-init.c: Likewise.
34         * elf/dl-error.c: Likewise.
35         * elf/dl-fini.c: Likewise.
36         * elf/dl-runtime.c: Likewise.
37         * elf/do-lookup.h: Likewise.
39         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
40         definition.
41         * stdio-common/_itowa.h: Likewise.
43 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
45         * elf/dl-minimal.c: Define _itoa_lower_digits.
47         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
48         DT_FLAGS set.
50         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
51         loading modules with the DF_STATIC_TLS flag set.
52         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
53         element.
54         * include/link.h (struct link_map): Add l_flags field.
55         * elf/elf.h (DF_STATIC_TLS): New definition.
57         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
58         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
60         * elf/rtld.c (process_dl_debug): Correct printing help message.
61         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
62         for %s.
64         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
65         definition and pass &errno in use of this variable.
66         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
68 2002-02-04  Andreas Schwab  <schwab@suse.de>
70         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
71         * locale/programs/charmap-dir.c: Wrap calls that output messages
72         with WITH_CUR_LOCALE.  Include "localedef.h" first.
73         * locale/programs/charmap.c: Likewise.
74         * locale/programs/ld-address.c: Likewise.
75         * locale/programs/ld-collate.c: Likewise.
76         * locale/programs/ld-ctype.c: Likewise.
77         * locale/programs/ld-identification.c: Likewise.
78         * locale/programs/ld-measurement.c: Likewise.
79         * locale/programs/ld-messages.c: Likewise.
80         * locale/programs/ld-monetary.c: Likewise.
81         * locale/programs/ld-name.c: Likewise.
82         * locale/programs/ld-numeric.c: Likewise.
83         * locale/programs/ld-paper.c: Likewise.
84         * locale/programs/ld-telephone.c: Likewise.
85         * locale/programs/ld-time.c: Likewise.
86         * locale/programs/linereader.c: Likewise.
87         * locale/programs/linereader.h: Likewise.
88         * locale/programs/localedef.c: Likewise.
89         * locale/programs/locfile.c: Likewise.
90         * locale/programs/repertoire.c: Likewise.
92 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
94         * elf/rtld.c (_dl_start_final): Determine load address to locate
95         ehdr with GL(dl_rtld_map).l_map_start.
97         * po/ca.po: Update from translation team.
99         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
100         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
101         header entry.
102         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
103         _dl_tls_module_cnt.
104         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
106 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
108         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
109         * include/link.h (struct link_map): Add various members for TLS
110         information.
111         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
112         _rtld_tlsoffset, add _dl_initimage_list.
113         * sysdeps/i386/dl-lookupcfg.h: New file.
114         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
115         TLS relocation.  When using TLS we now use RESOLVE_MAP.
116         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
117         is used.
119         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
120         unused.
122         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
123         thread-pointer as soon as possible.
124         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
125         elements in rtld_global.
126         * sysdeps/generic/tls.h: New file.
127         * elf/Makefile (distribute): Add tls.h.
128         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
129         relocations.  Not complete yet.
131         * resolv/resolv.h: Allow user to define __need_res_state and only
132         define __res_start structure then.
133         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
135         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
136         dl_cpuclock_offset initialization to _dl_start_final.
137         (_dl_show_auxv): Avoid unnecessary sign extension.
138         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
140 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
142         * config.h.in: Add HAVE_TLS_SUPPORT.
143         * sysdeps/i386/elf/configure.in: New file.
145 2002-02-03  Andreas Schwab  <schwab@suse.de>
147         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
148         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
150 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
152         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
153         alloca if the memory reqirements are too high.
155 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
157         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
158         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
159         the former is available anyway and speed isn't important here.
160         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
161         * elf/dl-version.c (match_symbol): Likewise.
162         (_dl_check_map_versions): Likewise.
163         * elf/rtld.c (process_envvars): Likewise.
164         (print_statistics): Likewise.
165         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
166         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
167         bases.  Add assert to catch uses of unimplemented features.
168         (__strsep): Add assert to catch uses of unimplemented features.
169         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
170         and avoid inline optimization.
171         * elf/rtld.c (process_envvars): Likewise.
172         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
173         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
174         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
176 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
178         * stdio-common/_itoa.h: Minor simplifications of the code.
179         * stdio-common/_itoa.c: Likewise.
181         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
182         instead of _dl_printf for debugging info output.
184         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
185         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
187 2002-02-01  H.J. Lu  <hjl@gnu.org>
189         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
190         (atomic_add): Likewise.
191         (compare_and_swap): Return 0 only when failed to compare. Use
192         branch likely.
194         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
195         branch likely.
197 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
199         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
201 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
203         * elf/dl-minimal.c (__strsep): New minimal implementation.
205 2002-02-02  Paul Eggert  <eggert@twinsun.com>
207         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
208         (__mktime_internal): If no tm_isdst is requested, prefer solutions
209         with tm_isdst > 0 when the requested time falls within a
210         spring-forward gap [PR libc/2894].
212 2002-02-03  Andreas Schwab  <schwab@suse.de>
214         * stdio-common/tst-rndseek.c: Increase timeout.
216 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
218         Change ld.so to not use functions which are exported.  One cannot
219         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
220         definitions.
221         * include/libc-symbols.h: Define INT and INTDEF.
222         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
223         _dl_signal_error_internal, _dl_map_object_internal,
224         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
225         _dl_lookup_versioned_symbol_internal,
226         _dl_relocate_object_internal, _dl_debug_state_internal,
227         _dl_start_profile_internal, and _dl_unload_cache_internal.
228         * include/dlfcn.h: Declare _dl_catch_error_internal.
229         * elf/rtld.c: Use INT for calls to any of the *_internal functions
230         above.  Add INTDEF to function definitions.
231         * elf/dl-debug.c: Likewise.
232         * elf/dl-deps.c: Likewise.
233         * elf/dl-dst.h: Likewise.
234         * elf/dl-error.c: Likewise.
235         * elf/dl-fini.c: Likewise.
236         * elf/dl-init.c: Likewise.
237         * elf/dl-load.c: Likewise.
238         * elf/dl-lookup.c: Likewise.
239         * elf/dl-misc.c: Likewise.
240         * elf/dl-open.c: Likewise.
241         * elf/dl-profile.c: Likewise.
242         * elf/dl-reloc.c: Likewise.
243         * elf/dl-runtime.c: Likewise.
244         * elf/dl-version.c: Likewise.
245         * elf/do-lookup.h: Likewise.
246         * sysdeps/generic/dl-cache.c: Likewise.
247         * sysdeps/generic/dl-sysdep.c: Likewise.
248         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
249         instead of _dl_init.
250         * sysdeps/arm/dl-machine.h: Likewise.
251         * sysdeps/cris/dl-machine.h: Likewise.
252         * sysdeps/hppa/dl-machine.h: Likewise.
253         * sysdeps/i386/dl-machine.h: Likewise.
254         * sysdeps/ia64/dl-machine.h: Likewise.
255         * sysdeps/m68k/dl-machine.h: Likewise.
256         * sysdeps/mips/dl-machine.h: Likewise.
257         * sysdeps/mips/mips64/dl-machine.h: Likewise.
258         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
259         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
260         * sysdeps/sh/dl-machine.h: Likewise.
261         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
262         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
263         * sysdeps/x86_64/dl-machine.h: Likewise.
264         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
266         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
267         and _dl_debug_initialize.
269         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
270         more information.
271         * elf/rtld.c (dl_main): Avoid strrchr.
272         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
273         result of readlink.  Search from the back for '/'.
275         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
276         strncpy if possible.
278         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
279         strncmp.
280         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
281         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
282         strspn, and strcspn.
283         (process_envvars): Don't use strcspn.
285         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
286         (_dl_dst_substitute): Likewise.
288 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
290         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
291         code which is never used when relocating ld.so itself.
293         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
294         starting ld.so itself.  Move l_addr variable initialization closer
295         to use.
296         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
298 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
300         * Versions.def (libc): Add GLIBC_PRIVATE.
301         (libdb, libnss_db, libdb1): Remove.
302         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
303         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
304         (libpthread): Add GLIBC_PRIVATE.
305         (libresolv): Likewise, remove GLIBC_2.1.
306         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
307         GLIBC_2.2.3, GLIBC_2.3.
308         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
309         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
310         _dl_sym, _dl_vsym): Likewise.
311         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
312         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
313         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
314         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
315         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
316         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
317         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
318         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
319         Likewise.
320         (_dl_object_relocation_scope): Remove.
321         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
322         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
323         __gconv_cache): Move to GLIBC_PRIVATE.
324         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
325         __internal_setnetgrent): Likewise.
326         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
327         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
328         * locale/Versions (__collate_element_hash, __collate_element_strings,
329         __collate_symbol_classes, __collate_symbol_hash,
330         __collate_symbol_strings, _nl_current_LC_COLLATE,
331         _nl_current_LC_CTYPE): Likewise.
332         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
333         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
334         (libnss_nis, libnss_nisplus): Likewise.
335         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
336         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
337         (libnss_files): Move all symbols to GLIBC_PRIVATE.
338         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
339         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
340         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
341         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
342         __ns_get16, __ns_samename): Likewise.
343         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
344         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
345         GLIBC_PRIVATE.
346         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
347         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
348         __libc_connect): Likewise.
349         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
350         Likewise.
351         * stdlib/Versions (__libc_system): Likewise.
352         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
353         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
354         * sysdeps/ia64/fpu/Versions: Likewise.
355         * sysdeps/ia64/Versions: Likewise.
356         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
357         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
358         to GLIBC_PRIVATE.
359         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
360         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
361         __libc_sigaction): Likewise.
362         * termios/Versions (__libc_tcdrain): Likewise.
364         * misc/sys/cdefs (__attribute_noinline__): Define.
365         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
366         __attribute_noinline__.
368         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
369         * elf/dl-xstat64.c: New file.
370         * elf/dl-fxstat64.c: New file.
371         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
372         don't export __fxstat64 at multiple versions.
373         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
374         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
376 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
378         * locale/program/ld-collate.c (collate_finish): Assign a wide
379         char collation sequence value to multi character collating
380         elements, and avoid over writing by non-character elements.
382 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
384         * elf/Makefile (distribute): Add dl-procinfo.c.
385         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
386         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
388 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
390         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
391         definition.
392         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
393         _rtld_global struct.
394         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
395         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
396         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
397         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
398         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
399         _dl_fpu_control_set): Remove unused externs.
400         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
401         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
402         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
403         related variables in _rtld_global struct.
404         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
405         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
406         unused extern.
408 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
410         * sysdeps/generic/dl-procinfo.c: New file.
412 2002-02-01  Andreas Schwab  <schwab@suse.de>
414         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
416 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
418         * elf/rtld.c (_dl_start): Mark as internal_function.
419         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
420         in register.
421         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
422         General pretty printing.
424 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
426         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
427         * elf/dl-reloc.c: Pretty printing.
428         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
429         procinfo-related variables in rtld_global struct.
430         * elf/dl-support.c: Likewise.
431         * elf/rtld.c: Likewise.
432         * sysdeps/i386/i686/Makefile: Likewise.
433         * sysdeps/i386/i686/hp-timing.c: Likewise.
434         * sysdeps/i386/i686/hp-timing.h: Likewise.
435         * sysdeps/ia64/Makefile: Likewise.
436         * sysdeps/ia64/hp-timing.c: Likewise.
437         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
438         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
439         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
440         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
441         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
442         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
443         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
444         * sysdeps/x86_64/Makefile: Likewise.
446         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
447         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
448         _dl_debug_fd to rtld_global.
449         * elf/Versions: Likewise.
450         * elf/dl-close.c: Likewise.
451         * elf/dl-iteratephdr.c: Likewise.
452         * elf/dl-lookup.c: Likewise.
453         * elf/dl-misc.c: Likewise.
454         * elf/dl-open.c: Likewise.
455         * elf/dl-support.c: Likewise.
456         * elf/do-lookup.h: Likewise.
457         * elf/rtld.c: Likewise.
458         * sysdeps/generic/dl-cache.c: Likewise.
459         * sysdeps/generic/dl-sysdep.c: Likewise.
460         * sysdeps/ia64/Versions: Likewise.
461         * sysdeps/unix/clock_gettime.c: Likewise.
462         * sysdeps/unix/clock_settime.c: Likewise.
463         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
464         * sysdeps/sparc/Versions: Removed.
465         * sysdeps/i386/i686/Versions : Removed.
466         * sysdeps/x86_64/Versions: Removed.
467         * configure.in: Define HAVE_PROTECTED if .protected is available.
468         * config.h.in: Add entry for HAVE_PROTECTED.
470 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
472         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
473         code in struct _rtld_global.  Export this struct, remove all
474         exports for the signal variables.
475         * sysdeps/arm/dl-machine: Likewise.
476         * sysdeps/generic/dl-origin: Likewise.
477         * sysdeps/generic/dl-sysdep: Likewise.
478         * sysdeps/generic/dl-cache: Likewise.
479         * sysdeps/hppa/dl-fptr: Likewise.
480         * sysdeps/hppa/dl-machine: Likewise.
481         * sysdeps/cris/dl-machine: Likewise.
482         * sysdeps/i386/dl-machine: Likewise.
483         * sysdeps/ia64/dl-machine: Likewise.
484         * sysdeps/m68k/dl-machine: Likewise.
485         * sysdeps/mach/hurd/dl-sysdep: Likewise.
486         * sysdeps/mips/mips64/dl-machine: Likewise.
487         * sysdeps/mips/dl-machine: Likewise.
488         * sysdeps/powerpc/elf/libc-start: Likewise.
489         * sysdeps/powerpc/dl-machine: Likewise.
490         * sysdeps/powerpc/dl-start: Likewise.
491         * sysdeps/sparc/sparc32/dl-machine: Likewise.
492         * sysdeps/sparc/sparc64/dl-machine: Likewise.
493         * sysdeps/sh/dl-machine: Likewise.
494         * sysdeps/s390/s390-32/dl-machine: Likewise.
495         * sysdeps/s390/s390-64/dl-machine: Likewise.
496         * sysdeps/unix/sysv/aix/libc-start: Likewise.
497         * sysdeps/unix/sysv/aix/start-libc: Likewise.
498         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
499         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
500         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
501         * sysdeps/x86_64/dl-machine: Likewise.
503 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
505         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
506         are too high.
508 2002-01-31  Andreas Schwab  <schwab@suse.de>
510         * sysdeps/posix/readv.c: Check for ssize_t overflow.
512 2002-01-31  Andreas Schwab  <schwab@suse.de>
514         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
515         reference to _dl_pagesize.
517 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
519         * Versions.def [ld]: Add GLIBC_2.3.
520         * elf/dl-addr.c: Move global variables for SHARED code in struct
521         _rtld_global.  Export this struct, remove all exports for the
522         signal variables.
523         * elf/dl-close.c: Likewise.
524         * elf/dl-conflict.c: Likewise.
525         * elf/dl-debug.c: Likewise.
526         * elf/dl-deps.c: Likewise.
527         * elf/dl-dst.h: Likewise.
528         * elf/dl-error.c: Likewise.
529         * elf/dl-fini.c: Likewise.
530         * elf/dl-init.c: Likewise.
531         * elf/dl-iteratephdr.c: Likewise.
532         * elf/dl-libc.c: Likewise.
533         * elf/dl-load.c: Likewise.
534         * elf/dl-lookup.c: Likewise.
535         * elf/dl-minimal.c: Likewise.
536         * elf/dl-object.c: Likewise.
537         * elf/dl-open.c: Likewise.
538         * elf/dl-profile.c: Likewise.
539         * elf/dl-profstub.c: Likewise.
540         * elf/dl-reloc.c: Likewise.
541         * elf/dl-runtime.c: Likewise.
542         * elf/dl-support.c: Likewise.
543         * elf/dl-sym.c: Likewise.
544         * elf/dl-version.c: Likewise.
545         * elf/do-lookup.h: Likewise.
546         * elf/do-rel.h: Likewise.
547         * elf/dynamic-link.h: Likewise.
548         * elf/rtld.c: Likewise.
549         * sysdeps/generic/dl-cache.c: Likewise.
550         * sysdeps/generic/dl-sysdep.c: Likewise.
551         * sysdeps/generic/ldsodefs.h: Likewise.
552         * sysdeps/generic/libc-start.c: Likewise.
553         * sysdeps/i386/dl-machine.h: Likewise.
554         * sysdeps/ia64/dl-fptr.c: Likewise.
555         * sysdeps/ia64/dl-machine.h: Likewise.
556         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
557         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
558         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
559         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
560         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
561         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
562         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
563         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
565 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
567         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
568         to avoid warning
569         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
571         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
572         SHARED version.
573         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
575         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
577 2002-01-29  Ben Collins  <bcollins@debian.org>
579         * string/bits/string2.h (__mempcpy): Protect size arg for
580         addition when using __builtin_memcpy.
582 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
584         * stdlib/Makefile (tests): Add tst-qsort.
585         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
587         * manual/signal.texi (Process Signal Mask): Document that
588         pthread_sigmask, not sigprocmask, must be used in MT programs.
589         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
591         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
592         found.
593         * misc/Makefile (tests): Add tst-hsearch.
594         * misc/tst-hsearch.c: New file.
596 2002-01-18  Wolfram Gloger  <wg@malloc.de>
598         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
599         * malloc/malloc.h: Likewise.
600         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
601         * malloc/arena.c: New file.
602         * malloc/hooks.c: New file.
603         * malloc/tst-mallocstate.c: New file.
604         * malloc/Makefile: Add new testcase tst-mallocstate.
605         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
607 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
609         * stdlib/msort.c: Remove last patch.  The optimization violates the
610         same rule which qsort.c had problems with.
612 2002-01-27  Paul Eggert  <eggert@twinsun.com>
614         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
615         to a pivot element that lies outside the array to be sorted, as
616         ISO C99 requires that the comparison function be called only with
617         addresses of array elements [PR libc/2880].
619 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
621         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
622         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
624         * timezone/asia: Update from tzdata2002b.
625         * timezone/australasia: Likewise.
626         * timezone/backward: Likewise.
627         * timezone/europe: Likewise.
628         * timezone/leapseconds: Likewise.
629         * timezone/iso3166.tab: Likewise.
630         * timezone/zone.tab: Likewise.
632 2002-01-23  Richard Henderson  <rth@redhat.com>
634         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
636 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
638         * string/strxfrm.c: Allocate one more byte for rulearr and clear
639         this element [PR libc/2855].
641         * string/strcoll.c: Handle zero-length arguments specially
642         [PR libc/2856].
644 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
646         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
647         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
648         short lengths and constant src.
649         (strcpy): Don't optimize for gcc 3.0+.
650         (__stpcpy): For gcc 3.0+, don't use
651         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
652         for short string literal src.
654 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
656         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
657         Set for arm, too.
659 2001-01-22  Paul Eggert  <eggert@twinsun.com>
661         * manual/llio.texi (Linked Channels, Cleaning Streams):
662         Make it clearer that a just-opened input stream might need cleaning.
664 2002-01-21  H.J. Lu  <hjl@gnu.org>
666         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
667         Don't use label at end of compound statement.
669 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
671         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
672         Remove test for negative integer arg; sin_pi does it correctly.
674 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
676         * nscd/Makefile (distribute): Filter out xmalloc.c.
678 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
680         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
681         Set offset if read end wasn't the buffer end.
682         (_IO_file_seekoff_mmap): New function.
683         (_IO_file_xsgetn_mmap): New function.
684         (_IO_file_jumps_mmap): Use the two new functions.
685         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
686         != end buffer.
687         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
688         _IO_file_underflow_mmap.
689         * libio/iofopen.c: Don't position file descriptor at end of file.
690         * libio/tst-widetext.c: Improve error messages.
691         * stdio-common/tst-rndseek.c: Likewise.
693 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
695         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
696         end of enum for !_GNU_SOURCE.
697         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
698         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
699         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
700         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
701         values unless _GNU_SOURCE.
703         * iconvdata/tcvn5712-1.c: Minor cleanups.
705 2002-01-18  Andreas Schwab  <schwab@suse.de>
707         * sysdeps/unix/sysv/linux/configure.in
708         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
710 2002-01-16  Roger Sayle  <roger@eyesopen.com>
712         * stdlib/msort.c (msort_with_tmp): Replace implementation with
713         more efficient "Towers of Hanoi" mergesort.
714         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
715         for generic, sizeof(int) and sizeof(long) variants respectively.
717 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
719         * manual/syslog.texi (openlog): Describe possible problems with
720         first parameter.
721         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
723         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
724         * nscd/connections.c (begin_drop_privileges): New function.
725         (finish_drop_privileges): New function.
726         (nscd_init): Call the new functions which also install all groups
727         for the server user.
728         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
729         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
731 2002-01-17  H.J. Lu  <hjl@gnu.org>
733         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
734         `const' from `got'.
736 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
738         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
739         instructions for pointer operations.
740         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
742 2002-01-17  Andreas Jaeger  <aj@suse.de>
744         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
745         __uint128_t build-in.
747         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
748         PowerPC, sync with 2.2 branch.
750 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
752         * posix/getconf.c: Update copyright year.
753         * nss/getent.c: Likewise.
754         * nscd/nscd_nischeck.c: Likewise.
755         * iconv/iconvconfig.c: Likewise.
756         * iconv/iconv_prog.c: Likewise.
757         * elf/ldconfig.c: Likewise.
758         * catgets/gencat.c: Likewise.
759         * csu/version.c: Likewise.
760         * elf/ldd.bash.in: Likewise.
761         * elf/sprof.c (print_version): Likewise.
762         * locale/programs/locale.c: Likewise.
763         * locale/programs/localedef.c: Likewise.
764         * nscd/nscd.c (print_version): Likewise.
765         * debug/xtrace.sh: Likewise.
766         * malloc/memusage.sh: Likewise.
767         * malloc/mtrace.pl: Likewise.
769 2002-01-16  Andreas Schwab  <schwab@suse.de>
771         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
772         reliably remove "-ia64" from rtld name.
774 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
776         * iconvdata/gb18030.c: Bug fixes and support for more characters.
777         Patch by Yu Shao <yshao@redhat.com>.
779 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
781         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
782         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
783         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
785 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
787         * sysdeps/s390/fpu/libm-test-ulps: Update.
789 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
791         * elf/elf.h: Update x86 relocations.
793 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
795         * locale/programs/charmap.c (new_width): Check whether byte
796         sequences for both ends of range have the same length.
798 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
800         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
802 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
804         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
805         string literals.
806         (__full_ieee754_sqrt): Add __attribute_used__.
808 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
810         * sysdeps/generic/group_member.c (__group_member): Also check
811         groups[0] [PR libc/2781].
813 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
815         * Makefile (distribute): Add scripts/cpp.
816         * elf/Makefile (distribute): Add reldep6mod[01234].c,
817         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
818         unwind-dw2-fde.h, and dwarf2.h.
819         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
820         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
821         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
822         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
824 2002-01-07  Roland McGrath  <roland@frob.com>
826         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
827         volatile on type of ARGC so the compiler doesn't get clever.
829 2002-01-07  Andreas Jaeger  <aj@suse.de>
831         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
832         * sysdeps/i386/bits/byteswap.h: Likewise.
833         * sysdeps/ia64/bits/byteswap.h: Likewise.
834         * sysdeps/m68k/bits/byteswap.h: Likewise.
835         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
836         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
838 2002-01-02  Bruno Haible  <bruno@clisp.org>
840         * intl/plural.y: Fix %expect count.
842 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
844         * elf/Makefile (routines, shared-only-routines): Add
845         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
846         * elf/elf.h (PT_GNU_EH_FRAME): Define.
847         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
848         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
849         Optimize if .eh_frame section contains no FDEs.
850         (__register_frame, __deregister_frame_info_bases,
851         __deregister_frame): Likewise.
852         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
853         DW_CFA_restore handling.
855 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
857         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
859         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
860         for x < 0.25 and restore original range reduction method.
861         (__ieee754_lgammal_r): Make sure signgam is set before returning.
863 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
865         * libio/fileops.c (_IO_file_underflow_mmap): New function.
866         (_IO_file_close_mmap): New function.
867         (_IO_file_jumps_mmap): New variable.
868         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
869         trying to convert rest of byte buffer.
870         (_IO_wfile_underflow_mmap): New function.
871         (_IO_wfile_jumps_mmap): New variable.
872         * libio/iofopen.c (__fopen_maybe_mmap): New function.
873         (__fopen_internal): New function.  Split out from _IO_new_fopen.
874         (_IO_new_fopen): Call __fopen_internal.
875         * libio/iofopen64.c: Just call __fopen_internal.
876         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
877         successfully.
878         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
879         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
880         _IO_file_close_mmap.
882         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
883         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
885         * stdio-common/Makefile (tests): Add tst-rndseek.
886         * stdio-common/tst-rndseek.c: New file.
888 2002-01-05  Roland McGrath  <roland@frob.com>
890         * config.h.in (HAVE_MIG_RETCODE): New #undef.
891         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
892         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
893         * sysdeps/mach/hurd/configure: Regenerated.
895 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
897         * elf/elf.h: Add more TLS definitions.
899 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
901         * include/features.h (__GLIBC_MINOR__): Bump to 3.
903 2002-01-02  Roland McGrath  <roland@frob.com>
905         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
906         __sigisemptyset.  Don't use MASK uninitialized.
908         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
909         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
910         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
911         __sigdelset, __sigaddset, __sigorset.
913         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
914         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
916         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
917         _hurd_ports is null.
919         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
920         for old CMU and new OSF Mach interface flavors.
921         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
922         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
924         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
926         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
927         Pass extra arguments to task_create for OSF variant.
928         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
930         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
931         conditional on [HAVE_AUX_VECTOR].
933         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
934         mach_msg_timeout_t as type of final argument.
936         * hurd/privports.c (__get_privileged_ports):
937         Change host_priv_t to mach_port_t in argument type.
938         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
939         Update decls.
941         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
942         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
943         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
944         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
945         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
946         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
948 2002-01-01  Roland McGrath  <roland@frob.com>
950         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
952 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
954         * include/stdlib.h: Define inlines for the _l variants of the strto*
955         functions.
957 2002-01-01  Roland McGrath  <roland@frob.com>
959         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
961         * mach/Machrules (MIG): Set CPP as well as CC.
963 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
965         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
966         locale to parse /proc/loadavg [PR libc/2760].
968 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
970         * elf/dl-conflict.c: Include sys/param.h.
971         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
972         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
973         warning.
974         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
975         literals to avoid warnings.
977 2001-12-31  Andreas Jaeger  <aj@suse.de>
979         * configure.in: Don't check for gsed since we do not use it anywhere.
981 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
983         * io/fts.c: Update from BSD to fix memory leaks.
985 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
987         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
988         * elf/chroot_canon.c: Likewise.
989         * elf/dl-object.c: Likewise.
990         * iconv/iconv_charmap.c: Likewise.
991         * iconv/iconv_prog.c: Likewise.
992         * libio/iogetdelim.c: Likewise.
993         * locale/lc-time.c: Likewise.
994         * stdlib/canonicalize.c: Likewise.
995         * sunrpc/svc.c: Likewise.
996         * sysdeps/generic/glob.c: Likewise.
998 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1000         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
1001         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
1002         remove high order bit from the program counter.
1003         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
1005 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1007         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1008         unnecessary code and add missing reloc types.
1009         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
1010         case for reloc type R_390_NONE.
1012 2001-12-28  Andreas Jaeger  <aj@suse.de>
1014         * io/bug-ftw3.c: Include string.h for prototypes.
1016         * crypt/md5test.c (main): Remove unused variable.
1018         * dlfcn/modstatic.c: Add prototype to avoid warning.
1020 2001-12-26  Roland McGrath  <roland@frob.com>
1022         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
1023         check only (SS->pending & MASK) for the signal to return.
1024         From Jeroen Dekkers <jeroen@dekkers.cx>.
1026 2001-12-22  Roland McGrath  <roland@frob.com>
1028         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
1029         Use preprocessor #if conditionals instead of `if' to avoid
1030         warnings about divide by zero in dead code.
1032         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
1033         _hurd_port_init, and __hurd_self_sigstate.
1035         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
1037 2001-12-21  Andreas Jaeger  <aj@suse.de>
1039         * elf/dblloadmod1.c: Add prototype to avoid warning.
1040         * elf/dblloadmod2.c: Likewise.
1041         * elf/dblloadmod3.c: Likewise.
1042         * elf/reldepmod5.c: Likewise.
1043         * elf/reldepmod6.c: Likewise.
1045         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
1046         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
1047         used on all architectures.
1049         * sunrpc/svc_tcp.c: Add noreturn attribute for
1050         svctcp_rendezvous_abort.
1051         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
1053         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
1054         to avoid warning.
1056 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
1058         * manual/llio.texi (aio_fsync): Fix a typo.
1059         Patch by Tammy Fox <tfox@redhat.com>.
1061 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1063         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
1064         stack bias from child stack pointer before passing it to clone syscall.
1066 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
1068         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
1069         _SC_TZNAME_MAX.
1070         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
1071         Reported by Thorsten Kukuk <kukuk@suse.de>.
1073         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
1074         add some casts.
1076         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
1078 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
1080         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
1081         conforming: return EBADF if file descriptor is invalid and EINVAL
1082         if file descriptor is no valid tty.
1083         * login/tst-grantpt.c: New file.
1084         * login/Makefile (tests): Add tst-grantpt.
1086 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
1088         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
1089         different than implemented in last patch.
1090         * io/bug-ftw3.c: Adjust test for changed handling of
1091         inaccessibility of toplevel dir.
1093 2001-12-16  Roland McGrath  <roland@frob.com>
1095         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
1096         * grp/initgroups.c (internal_getgrouplist): Likewise.
1098         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
1099         `default:' to silence new GCC warning.
1100         Rewrite cast of lvalue to silence new GCC warning.
1102         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
1104         * sysdeps/mach/hurd/spawni.c: New file, by me with a
1105         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
1107 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
1109         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
1110         Patch by Stephen R. van den Berg.
1112         * crypt/md5.h: Define md5_uintptr.
1114 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1116         * libio/tst_swprintf.c (main): Add test for string argument with
1117         zero precision.
1118         * stdio-common/Makefile (tests): Add tst-sprintf.
1119         * stdio-common/tst-sprintf.c: New file.
1121 2001-12-13  Andreas Schwab  <schwab@suse.de>
1123         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
1124         zero precision with wide character string format.
1126 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
1128         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
1129         but have a user supplied buffer, return the empty buffer, not NULL.
1131 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1133         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
1134         Patch by Eric Sharkey <sharkey@netrics.com>.
1136         * crypt/md5test.c (main): Add test for multiple calls to
1137         __md5_process_bytes to itererate over input string.
1139 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
1141         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
1142         from __nis_findfastest.  Take timeout value from parameter.
1143         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
1144         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
1145         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
1147 2001-12-12  Andreas Jaeger  <aj@suse.de>
1149         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
1150         combreloc test so that it works in this case.
1152         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
1154 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
1156         * sysdeps/sh/Makefile: New file.
1157         * sysdeps/sh/_mcount.S: New file.
1158         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
1159         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
1161 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1163         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
1164         limitation [PR libc/2564].
1166 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
1168         * elf/Makefile (dl-routines): Add conflict.
1169         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
1170         (ld.so): Add _begin local symbol.
1171         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
1172         Define.
1173         * elf/dl-deps.c (_dl_build_local_scope): New.
1174         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
1175         of all libraries.
1176         * elf/do-rel.h (VALIDX): Define.
1177         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
1178         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
1179         can be skipped.
1180         * elf/dl-conflict.c: New file.
1181         * elf/dl-lookup.c (_dl_debug_bindings): New.
1182         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
1183         non-NULL.
1184         (_dl_lookup_symbol_skip): Likewise.
1185         (_dl_lookup_versioned_symbol): Likewise.
1186         (_dl_lookup_versioned_symbol_skip): Likewise.
1187         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
1188         define to ElfW(Rel).
1189         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
1190         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
1191         ranges.
1192         Don't adjust address dynamic tags if l_addr is 0.
1193         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
1194         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
1195         (VALIDX, ADDRIDX): Define.
1196         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
1197         (dl_main): Print library list for LD_TRACE_PRELINKING.
1198         If prelinking information can be used, skip relocating libraries and
1199         call _dl_resolve_conflicts instead.
1200         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
1201         * elf/dl-load.c (_dl_map_object): Don't create fake libs
1202         if LD_TRACE_PRELINKING.
1203         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
1204         + DT_ADDRNUM.
1205         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
1206         (DL_DEBUG_PRELINK): Define.
1207         (_dl_resolve_conflicts): Add prototype.
1209         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
1210         .plt for prelinked libraries where prelinking info cannot be used.
1211         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
1212         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
1213         * sysdeps/arm/bits/link.h: New file.
1214         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
1215         content of .got[1].
1216         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1217         (ELF_MACHINE_PLT_REL): Define.
1218         (elf_machine_rela, elf_machine_rela_relative): New.
1219         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
1220         of adjusting it if prelinked and prelinking cannot be used.
1221         * sysdeps/i386/bits/link.h: New file.
1222         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
1223         content of .got[1].
1224         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1225         (ELF_MACHINE_PLT_REL): Define.
1226         (elf_machine_rela, elf_machine_rela_relative): New.
1227         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
1228         of adjusting it if prelinked and prelinking cannot be used.
1229         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
1230         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
1231         to find out map for R_PPC_JMP_SLOT relocs.
1232         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
1233         (OPCODE_BA): Define.
1234         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1235         libraries where prelinking info cannot be used.
1236         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
1237         (elf_machine_fixup_plt): Call sparc_fixup_plt.
1238         (elf_machine_rela): Set value to 0 if relocating conflicts.
1239         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
1240         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
1241         (sparc64_fixup_plt): Fix a typo.
1242         (elf_machine_rela): Set value to 0 if relocating conflicts.
1243         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
1244         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1245         libraries where prelinking info cannot be used.
1246         * sysdeps/sh/bits/link.h: New file.
1247         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
1248         content of .got[1].
1249         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
1250         of adjusting it if prelinked and prelinking cannot be used.
1251         * sysdeps/s390/s390-32/bits/link.h: New file.
1252         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
1253         Save original content of .got[1].
1254         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1255         of adjusting it if prelinked and prelinking cannot be used.
1256         * sysdeps/s390/s390-64/bits/link.h: New file.
1257         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
1258         Save original content of .got[1].
1259         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1260         of adjusting it if prelinked and prelinking cannot be used.
1261         * sysdeps/x86_64/bits/link.h: New file.
1262         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1263         Save original content of .got[1].
1264         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
1265         of adjusting it if prelinked and prelinking cannot be used.
1267 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1269         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
1270         where appropriate instead of numbers.  Little optimizations.
1272 2001-12-10  Roland McGrath  <roland@frob.com>
1274         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
1275         set it.
1277         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
1278         set to GLIBC_2.2.5, not GLIBC_2.2.4.
1280         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
1281         Fix conditionals so this is set by default for stdio and not for libio.
1282         * sysdeps/mach/hurd/configure: Regenerated.
1284 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
1286         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
1288 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
1290         * io/Makefile (tests): Add bug-ftw3.
1291         * io/bug-ftw3.c: New file.
1293         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
1294         matches and GLOB_NOCHECK is set.
1295         * posix/globtest.sh: Correct expected result for NOCHECK test.
1297         * po/ca.po: Update from translation team.
1299 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
1301         Implement transliteration of characters in strings of the locale
1302         definitions.
1303         * locale/programs/linereader.c: Adjust for additional parameter to
1304         lr_token.
1305         (get_string): If character <Uxxxx> is not found try to transliterate
1306         it.
1307         * locale/programs/ld-ctype.c: Adjust for additional parameter to
1308         lr_token.  Add const to charmap parameter of all functions.
1309         (find_translit, find_translit2): New functions.
1310         * locale/programs/charmap.c: Adjust for additional parameter to
1311         lr_token.
1312         * locale/programs/repertoire.c: Likewise.
1313         * locale/programs/linereader.h: Likewise.
1314         * locale/programs/ld-address.c: Likewise.  Add const to charmap
1315         parameter of all functions.
1316         * locale/programs/ld-collate.c: Likewise.
1317         * locale/programs/ld-identification.c: Likewise.
1318         * locale/programs/ld-measurement.c: Likewise.
1319         * locale/programs/ld-messages.c: Likewise.
1320         * locale/programs/ld-monetary.c: Likewise.
1321         * locale/programs/ld-name.c: Likewise.
1322         * locale/programs/ld-numeric.c: Likewise.
1323         * locale/programs/ld-paper.c: Likewise.
1324         * locale/programs/ld-paper.c: Likewise.
1325         * locale/programs/ld-telephone.c: Likewise.
1326         * locale/programs/ld-time.c: Likewise.
1327         * locale/programs/locfile.c: Likewise.
1328         * locale/programs/localedef.c: Likewise.
1329         * locale/programs/localedef.h: Likewise.
1330         * locale/programs/locfile.h: Likewise.  Add declaration for
1331         find_translit.
1332         * locale/programs/simple-hash.c: Add const to first parameter of
1333         find_entry, iterate_table, and lookup.
1334         * locale/programs/simple-hash.h: Likewise.
1335         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
1336         instead.
1337         * include/locale.h: Define __LC_LAST.
1338         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
1340 2001-12-07  Geoff Keating  <geoffk@redhat.com>
1342         * sysdeps/powerpc/Dist: Update for recent FP changes.
1343         * sysdeps/powerpc/fpu/Dist: Likewise.
1345 2001-12-07  Andreas Schwab  <schwab@suse.de>
1347         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
1349 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1351         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
1352         save/restore functions here.
1353         (libm-support): Don't define these functions here.
1354         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
1355         functions here.
1356         * sysdeps/powerpc/fe_nomask.c: Move to...
1357         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
1358         * sysdeps/powerpc/fprrest.S: Move to...
1359         * sysdeps/powerpc/fpu/fprrest.S: ... here.
1360         * sysdeps/powerpc/fprsave.S: Move to...
1361         * sysdeps/powerpc/fpu/fprsave.S: ... here.
1363 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1365         * sysdeps/unix/sysv/linux/opensock.c: New file.
1367 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1369         * config.make.in (with-fp): Define from configure.
1370         * configure.in: Substitute with_fp.
1371         * configure: Regenerate.
1372         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
1373         specified, and don't change FPU environment.
1375 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1377         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
1378         * assert/assert.c: Check result of __asprintf call and don't use
1379         string if it failed.
1380         * assert/assert-perr.c: Likewise.
1381         * inet/rcmd.c: Likewise.
1382         * locale/programs/localedef.c (main): Check result of
1383         construct_output_path and exit if it failed.
1384         (construct_output_path): Check result of asprintf and mkdir calls and
1385         fail if they failed.
1386         * posix/getopt.c: Check result of __asprintf calls and fail if
1387         they failed.
1388         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
1390 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1392         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
1393         patch.
1394         * sysdeps/generic/strncase.c: Likewise.
1395         * string/tester.c: Add tests for strcasecmp and strncasecmp.
1397 2001-12-05  Geoff Keating  <geoffk@redhat.com>
1399         * scripts/cpp: Test the exit status from 'type', not 'awk'.
1401         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
1402         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
1403         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
1404         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
1405         * sysdeps/powerpc/fclrexcpt.c: Move to...
1406         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
1407         * sysdeps/powerpc/fpu_control.h: Move to...
1408         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
1410 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1412         * iconvdata/ibm1129.h: Remove duplicate mappings.
1413         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
1414         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
1415         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1417         * timezone/zic.c: Fix handling of turnaround times.
1418         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
1420 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
1422         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
1423         overflow problem.
1425 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1427         * posix/regex.c: For use outside glibc defined bounded pointer
1428         macros here.  Patch by Jim Meyering <jim@meyering.net>.
1430         * iconvdata/Makefile (modules): Add TCVN5712-1.
1431         * iconvdata/TESTS: Add TCVN5712-1.
1432         * iconvdata/gconv-modules: Likewise.
1433         * iconvdata/tcvn5712-1.c: New file.
1434         * iconvdata/testdata/TCVN-5712: New file.
1435         * iconvdata/testdata/TCVN-5712..UTF8: New file.
1437 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
1439         * iconvdata/cp1258.c: Optimize conversion from UCS4.
1441 2001-12-02  Roland McGrath  <roland@frob.com>
1443         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1445         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1446         Reported by Jeff Bailey <jbailey@nisa.net>.
1448         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1449         Reported by Jeff Bailey <jbailey@nisa.net>.
1451         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
1452         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
1453         Reported by Jeff Bailey <jbailey@nisa.net>.
1455 2001-12-01  Roland McGrath  <roland@frob.com>
1457         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
1458         missing backslash in test arguments.
1459         * sysdeps/mach/hurd/configure: Regenerated.
1461 2001-11-26  Roland McGrath  <roland@frob.com>
1463         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1464         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1466 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
1468         * iconvdata/Makefile (modules): Add ARMSCII-8.
1469         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1470         * iconvdata/armscii-8.c: New file.
1472 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1474         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
1475         don't match, fix {{a,b},c} globbing, clean up.
1476         Patch by Flavio Veloso <flaviovs@magnux.com>.
1477         * posix/globtest.sh: Add new tests.
1479 2001-11-29  Andreas Jaeger  <aj@suse.de>
1481         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1482         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1484         * sysdeps/generic/abort.c: Include libioP.h for
1485         _IO_flush_all_lockp prototype.
1487 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
1489         * posix/regex.h: Define __restrict_arr correctly.
1491 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1493         * iconvdata/ibm1163.c: New file.
1494         * iconvdata/ibm1163.h: New file.
1495         * iconvdata/ibm1164.c: New file.
1496         * iconvdata/ibm1164.h: New file.
1497         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
1498         * iconvdata/Makefile: Likewise.
1499         * iconvdata/testdata/IBM1163: New file.
1500         * iconvdata/testdata/IBM1163..UTF8: New file.
1501         * iconvdata/testdata/IBM1164: New file.
1502         * iconvdata/testdata/IBM1164..UTF8: New file.
1503         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1505         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
1506         * iconvdata/ibm1124.h: Likewise.
1507         * iconvdata/ibm1132.h: Likewise.
1508         * iconvdata/ibm1133.h: Likewise.
1509         * iconvdata/ibm1160.h: Likewise.
1510         * iconvdata/ibm1161.h: Likewise.
1511         * iconvdata/ibm1162.h: Likewise.
1512         * iconvdata/ibm856.h: Likewise.
1513         * iconvdata/ibm922.h: Likewise.
1514         * iconvdata/ibm930.h: Likewise.
1515         * iconvdata/ibm932.h: Likewise.
1516         * iconvdata/ibm933.h: Likewise.
1517         * iconvdata/ibm935.h: Likewise.
1518         * iconvdata/ibm937.h: Likewise.
1519         * iconvdata/ibm939.h: Likewise.
1520         * iconvdata/ibm943.h: Likewise.
1521         * iconvdata/ibm930.c: Pretty printing.
1522         * iconvdata/ibm937.c: Avoid access accross array boundary.
1524         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
1525         the current locale's codeset.
1526         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
1527         empty input string.
1528         * iconv/iconv_prog.c: Pass empty strings as default value for to-
1529         and from-charset.  Don't determine locale's charset here.
1531         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
1532         as the old _IO_flush_all but lock only if parameter is nonzero.
1533         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
1534         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
1535         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
1536         if libio is used [PR libc/2575].
1538 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
1540         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1541         __signbitl): Only define for ISO C99.
1543 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1545         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
1546         herrnop to NETDB_INTERNAL if we run out of buffer space.
1548 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1550         * nss/nss_files/files-XXX.c (internal_getent): Correct input
1551         overflow test for platforms with signed char.
1552         Reported by Andrew Haley <aph@cambridge.redhat.com>.
1554 2001-11-28  Bruno Haible  <bruno@clisp.org>
1556         * locale/programs/simple-hash.c (lookup_2): Remove function.
1557         (insert_entry_2): Call lookup instead of lookup_2.
1559 2001-03-04  Bruno Haible  <bruno@clisp.org>
1561         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1563 2001-10-31  Bruno Haible  <bruno@clisp.org>
1565         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1567 2001-03-21  Bruno Haible  <bruno@clisp.org>
1569         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
1570         chokes on empty macro arguments.
1571         * intl/plural.y: Add #pragma for alloca on AIX 3.
1573 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1575         * intl/dcigettext.c (guess_category_value): Only implement for
1576         glibc.  Otherwise rely on function _nl_locale_name which isn't
1577         present in the glibc sources.
1579 2001-09-24  Bruno Haible  <bruno@clisp.org>
1581         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1582         transliteration when building on a glibc system but outside glibc.
1584 2001-09-22  Bruno Haible  <bruno@clisp.org>
1586         * intl/plural-eval.c: New file, extracted from dcigettext.c.
1587         * intl/dcigettext.c (plural_eval): Remove function, moved to
1588         intl/plural-eval.c.
1589         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1590         Include plural-eval.c.
1592 2001-09-22  Bruno Haible  <bruno@clisp.org>
1594         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1595         don't start with a digit; nplurals must be positive.
1597 2001-09-02  Bruno Haible  <bruno@clisp.org>
1599         * intl/plural-exp.h: New file, extracted from gettextP.h.
1600         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1601         * intl/gettextP.h (struct expression, struct parse_args,
1602         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
1603         * intl/loadmsgcat.c: Include plural-exp.h.
1604         (PLURAL_PARSE): Move macro to plural-exp.h.
1605         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
1606         plural-exp.c.
1607         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
1608         EXTRACT_PLURAL_EXPRESSION.
1609         (_nl_unload_domain): Update.
1610         * intl/dcigettext.c: Include plural-exp.h.
1611         * intl/plural.y: Include plural-exp.h, not gettextP.h.
1612         (FREE_EXPRESSION): Move macro to plural-exp.h.
1613         * intl/Makefile (routines): Add plural-exp.
1614         (distribute): Add plural-exp.h.
1616 2001-07-28  Bruno Haible  <bruno@clisp.org>
1618         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
1619         isdigit, tolower argument to 'unsigned char'.
1620         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
1621         'unsigned char'.
1622         * intl/localealias.c (read_alias_file): Cast isspace argument to
1623         'unsigned char'.
1625 2001-10-20  Bruno Haible  <bruno@clisp.org>
1627         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
1628         anyway.)
1629         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
1630         with the variable 'index' in plural_lookup.
1631         * intl/l10nflist.c (strchr): Likewise.
1632         * intl/localealias.c (strchr): Likewise.
1634         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
1635         * intl/bindtextdom.c: Likewise.
1636         * intl/dcigettext.c: Likewise.
1637         * intl/dgettext.c: Likewise.
1638         * intl/dngettext.c: Likewise.
1639         * intl/explodename.c: Likewise.
1640         * intl/finddomain.c: Likewise.
1641         * intl/gettext.c: Likewise.
1642         * intl/l10nflist.c: Likewise.
1643         * intl/loadmsgcat.c: Likewise.
1644         * intl/localealias.c: Likewise.
1645         * intl/ngettext.c: Likewise.
1646         * intl/textdomain.c: Likewise.
1647         * intl/gettext.h: Assume <limits.h> exists.
1649 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1651         * stdio-common/Makefile (tests): Add scanf11.
1652         * stdio-common/scanf11.c: New file.
1654 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1656         * version.h (RELEASE): Define as development.
1657         (VERSION): Set to 2.2.90.
1659 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1661         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
1662         * nis/nss_nis/nis-grp.c: Likewise.
1663         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1665         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
1666         * nis/nss_nis/nis-pwd.c: Likewise.
1667         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1669         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
1670         * nis/nss_nisplus/nisplus-parser.c: Likewise.
1671         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1673         * nscd/grpcache.c: Use strtoul instead of atol.
1674         * nscd/pwdcache.c: Likewise.
1675         * nss/getent.c: Likewise.
1677 2001-11-27  Paul Eggert  <eggert@twinsun.com>
1679         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1680         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1682 2001-11-19  Bruno Haible  <bruno@clisp.org>
1684         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
1685         90%.
1686         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
1687         improves the quality of the hash function, especially for short
1688         strings.
1690 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1692         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
1693         are found call conv_error and not input_error [PR libc/2669].
1695         * math/bits/mathcalls.h: Mark ceil and floor as const.
1696         Reported by David Mosberger.
1698 2001-11-21  Jim Meyering  <meyering@lucent.com>
1700         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
1701         Define to be __-prefixed.
1702         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
1704 2001-11-26  Andreas Jaeger  <aj@suse.de>
1706         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
1707         avoid warning.
1709 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
1711         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
1712         initialization.
1714         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
1715         unused variables.  Fix threshold for returning 1.0.
1717         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
1718         argument.
1720         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
1721         remove unused variables.
1723         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
1725         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
1726         include local math header files.
1728 2001-11-22  Andreas Jaeger  <aj@suse.de>
1730         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
1731         avoid warning.
1733 2001-11-21  Andreas Jaeger  <aj@suse.de>
1735         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
1737         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
1738         sys/debugreg.h
1740 2001-11-15  Andreas Jaeger  <aj@suse.de>
1742         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
1743         compilers that support it.
1745         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
1746         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1747         * stdlib/stdlib.h: Likewise.
1749 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
1751         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
1752         statement with gotos.
1753         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
1755 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
1757         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
1759 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
1761         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
1763 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
1764             H.J. Lu  <hjl@gnu.org>
1766         * Versions.def (libc): Add GCC_3.0.
1767         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
1768         if gcc supports this flag.
1769         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
1770         (gcc3): Allow glibc to be compiled with gcc 3.x.
1771         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
1772         * config.make.in (static-libgcc, unwind-find-fde): Add.
1773         * Makerules (build-shlib-helper, build-module-helper): Use it.
1774         * scripts/versions.awk: Make sure GLIBC_ versions come first.
1775         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
1776         necessary.
1777         (_fini): Call __deregister_frame_info_bases if
1778         __register_frame_info_bases was used to register.
1779         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
1780         for GLIBC_2.0.
1781         (__register_frame_info_bases, __register_frame_info_table_bases,
1782         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
1783         * elf/Makefile (routines): Add unwind-dw2-fde.
1784         (shared-only-routines): Add unwind-dw2-fde.
1785         * sysdeps/alpha/gccframe.h: New file.
1786         * sysdeps/arm/gccframe.h: New file.
1787         * sysdeps/generic/framestate.c: New file.
1788         * sysdeps/generic/dwarf2.h: New file.
1789         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
1790         * sysdeps/generic/unwind-dw2-fde.c: New file.
1791         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
1792         * sysdeps/generic/unwind-dw2-fde.h: New file.
1793         * sysdeps/generic/unwind-dw2.c: New file.
1794         * sysdeps/generic/unwind-pe.h: New file.
1795         * sysdeps/generic/unwind.h: New file.
1796         * sysdeps/hppa/gccframe.h: New file.
1797         * sysdeps/i386/gccframe.h: New file.
1798         * sysdeps/m68k/gccframe.h: New file.
1799         * sysdeps/mips/gccframe.h: New file.
1800         * sysdeps/powerpc/gccframe.h: New file.
1801         * sysdeps/s390/gccframe.h: New file.
1802         * sysdeps/sh/gccframe.h: New file.
1803         * sysdeps/sparc/gccframe.h: New file.
1804         * sysdeps/vax/gccframe.h: New file.
1805         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1806         Set on all architectures except ia64.
1807         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
1808         for i386.
1809         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
1810         __deregister_frame_info): Move to elf/Versions.
1811         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
1812         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1813         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1814         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
1815         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1816         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1817         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1818         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1819         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1820         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
1821         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
1822         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
1823         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1824         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1825         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
1826         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
1827         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1828         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
1830 2001-11-15  Jeff Law  <law@redhat.com>
1832         * posix/regex.c (uintptr_t): Do not provide a definition if the
1833         system provided one.
1835 2001-11-13  Roland McGrath  <roland@frob.com>
1837         * stdio-common/tmpfile.c: Moved to ...
1838         * sysdeps/generic/tmpfile.c: ... here.
1839         * sysdeps/mach/hurd/tmpfile.c: New file.
1841         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
1842         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
1843         (fopenport): Define as weak alias.
1845         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
1846         * libio/libioP.h: ... to here.
1848 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
1850         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
1851         program header twice.  Construct list with the needed information.
1853 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
1855         * po/ca.po: Update from translation team.
1857         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
1858         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
1859         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
1860         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1862 2001-11-10  Andreas Jaeger  <aj@suse.de>
1864         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
1865         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1866         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1868 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1870         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
1871         correctly.
1872         * elf/dl-load.c (is_dst): New function.
1873         (_dl_dst_count): Use is_dst to check for DST variable.
1874         (_dl_dst_substitute): Likewise.
1876 2001-11-09  Roland McGrath  <roland@frob.com>
1878         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
1879         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
1880         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
1881         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
1882         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
1883         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
1884         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
1885         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
1886         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
1887         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
1888         * sysdeps/mach/hurd/powerpc/Dist: New file.
1890         * hurd/privports.c (__get_privileged_ports):
1891         Only contact the proc server if necessary for this call.
1892         Suggested by Neal H Walfield <neal@cs.uml.edu>.
1893         Check error return for mach_port_mod_refs.
1895 2001-11-09  Andreas Schwab  <schwab@suse.de>
1897         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
1899 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1901         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
1902         object is always the last in the list.
1903         (_dl_map_object_from_fd): Delete code to remove from object list
1904         when DF_1_NOOPEN is seen.  This is done in lose.
1906 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
1908         * elf/dl-object.c (_dl_new_object): Various small optimizations.
1910 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
1912         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
1913         HWCAP_CHECK macro code.
1915         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
1916         Now returns MAP_FAILED on error.
1917         * elf/rtld.c: Adjust caller.
1918         * sysdeps/generic/dl-cache.c: Likewise.
1919         * sysdeps/generic/ldsodefs.h: Adjust description.
1921         * elf/dl-version.c (match_symbol): Optimize error handling for size.
1922         (_dl_check_map_versions): Likewise.
1924 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1926         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
1927         _dl_signal_error directly, always use lose.  Set fd to -1 after
1928         file is closed.
1929         (lose): Don't call close if fd == -1.
1931 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
1933         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
1934          Also fix typo @code {mbsinit} to @code{mbsinit}.
1936 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1938         * elf/dl-profile.c: Replace state variable with simple flag named
1939         running.  Remove commented-out code.
1941         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
1942         (_dl_init_paths): Likewise.
1943         (_dl_map_object_from_fd): Likewise.
1944         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1946 2001-11-06  Roland McGrath  <roland@frob.com>
1948         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
1949         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
1951         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
1952         sysdeps/powerpc/elf/sysdep.h.
1953         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
1955 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1957         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
1958         speed.
1959         (process_envvars): Some more optimizations.
1960         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
1962         * elf/elf.h: Add dynamic tag definitions for prelinking.
1964         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
1965         Rewrite code to remove environment varables for SUID binaries.
1966         Small optimization in LD_PROFILE handling.
1967         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
1968         changes.
1969         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1971         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
1973         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
1974         strings.  Change type of second parameter.
1975         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
1976         for last change.
1978         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
1980 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1982         * manual/string.texi: Fix typos.
1983         * manual/examples/argp-ex2.c: Likewise.
1985 2001-11-05  Roland McGrath  <roland@frob.com>
1987         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
1988         the more-specific unix/sysv/linux/powerpc file and breaks everything.
1989         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
1990         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
1991         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
1992         here, put under [__ELF__].
1994 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1996         * manual/charset.texi: Extensive editing work.
1997         * manual/nss.texi: Likewise.
1998         Changes by Dennis Grace <dgrace@us.ibm.com>.
2000 2001-11-04  Roland McGrath  <roland@frob.com>
2002         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
2003         parameter to dir_mkfile.
2005 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
2007         * string/bits/string2.h (__strndup): If n is smaller than len, set
2008         len to n + 1.
2009         * string/tester.c (test_strndup): New function.
2010         (main): Call it.
2012 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
2014         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
2016         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
2017         * scripts/cpp: New file.
2019         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
2020         for rtld_search_dirs content.  Minor optimizations.
2022 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2024         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
2025         avoiding unnecessary duplication.
2027 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
2029         * elf/dl-load.c (_dl_map_object): If library was found using
2030         LD_LIBRARY_PATH, don't try RUNPATH list.
2032 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2034         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
2035         Correct second argument of register_dump call.
2036         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
2037         Likewise.
2039 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2041         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
2042         modules.
2043         * iconvdata/TESTS: Likewise.
2044         * iconvdata/gconv-modules: Likewise.
2045         * iconvdata/ibm1132.c: New file.
2046         * iconvdata/ibm1132.h: New file.
2047         * iconvdata/ibm1133.c: New file.
2048         * iconvdata/ibm1133.h: New file.
2049         * iconvdata/ibm1162.c: New file.
2050         * iconvdata/ibm1162.h: New file.
2051         * iconvdata/testdata/IBM1132: New file.
2052         * iconvdata/testdata/IBM1132..UTF8: New file.
2053         * iconvdata/testdata/IBM1133: New file.
2054         * iconvdata/testdata/IBM1133..UTF8: New file.
2055         * iconvdata/testdata/IBM1162: New file.
2056         * iconvdata/testdata/IBM1162..UTF8: New file.
2057         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
2059         * string/string.h: Fix typo in comment.
2060         * wcsmbs/wchar.h: Likewise.
2062 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
2064         * manual/getopt.texi (getopt_long, getopt_long_only): Include
2065         const in type of longopts parameter.
2067 2001-10-29  Andreas Jaeger  <aj@suse.de>
2069         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
2071 2001-10-29  Kevin Ryde  <user42@zip.com.au>
2073         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
2074         output, clarify `#' behaviour on 0.
2075         (Floating-Point Conversions): Clarify that %g only uses %e when
2076         the exponent would be greater than 1.
2078 2001-10-28  Roland McGrath  <roland@frob.com>
2080         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
2081         * sysdeps/mach/powerpc/machine-sp.h: New file.
2082         * sysdeps/mach/powerpc/sysdep.h: New file.
2083         * sysdeps/mach/powerpc/thread_state.h: New file.
2085         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
2086         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
2087         expect to need the same thing on every platform.
2089         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
2090         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
2092         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
2093         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
2094         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
2095         Move all these assembly-related definitions to ...
2096         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
2098         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
2099         by Peter Bruin <pjbruin@dds.nl>.
2101         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
2102         packing results for a `poll' call.
2104 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2106         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
2107         correctly.
2108         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
2109         bracket expression.
2111         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2112         nrules value.
2113         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
2115 2001-10-24  H.J. Lu  <hjl@gnu.org>
2117         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
2118         Use __BEGIN_DECLS/__END_DECLS around prototypes.
2119         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
2121 2001-10-21  Jim Meyering  <meyering@lucent.com>
2123         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
2124         this code would end up calling gettext even in packages built
2125         with --disable-nls.
2126         * posix/getopt.c (_): Likewise.
2127         * posix/regex.c (_): Likewise.
2129 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2131         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
2132         lookup not ip6.int.
2133         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2134         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
2136 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
2138         * misc/sys/cdefs.h (__attribute_used__): Define.
2139         * elf/rtld.c (_dl_start): Add __attribute_used__.
2140         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
2142 2001-10-25  Andreas Schwab  <schwab@suse.de>
2144         * stdlib/a64l.c: Expect least significant digit first.
2145         * stdlib/l64a.c: Produce least significant digit first.
2146         * stdlib/Makefile (tests): Add test-a64l.
2147         * stdlib/test-a64l.c: New file.
2148         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
2150 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
2152         * po/sk.po: Update from translation team.
2154 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
2156         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
2158 2001-10-18  Andreas Schwab  <schwab@suse.de>
2160         * math/libm-test.inc (print_ulps): Print ulp values rounded to
2161         next whole number.
2162         (print_function_ulps): Likewise.
2163         (print_complex_function_ulps): Likewise.
2164         (print_max_error): Likewise.
2165         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
2167 2001-10-16  Andreas Schwab  <schwab@suse.de>
2169         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
2170         implementation.
2172         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
2173         BSD_SETJMP or BSD__SETJMP is defined, resp.
2174         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
2175         a tail call to __sigsetjmp that would require extending the
2176         caller's frame.
2177         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
2178         * sysdeps/m68k/bsd-setjmp.S: Deleted.
2179         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
2180         Reported by Jes Sorensen <jes@trained-monkey.org>.
2182 2001-10-16  Andreas Jaeger  <aj@suse.de>
2184         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
2185         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
2186         close PR libc/2589.
2188 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
2190         * po/ca.po: New file.  Contributed by the translation team.
2192 2001-10-15  Ralf Baechle  <ralf@gnu.org>
2194         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
2195         a varargs prototype.  Remove dependency from kernel header files.
2197         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
2198         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
2200 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2202         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
2203         to generate hexadecimal identifier.
2204         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
2206 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
2208         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
2210 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2212         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
2213         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
2214         Contributed by Stephen L Moshier <moshier@mediaone.net>.
2216         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
2217         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2218         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
2219         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
2220         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
2221         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
2223         * timezone/africa: Update from tzdata2001d.
2224         * timezone/asia: Likewise.
2225         * timezone/australasia: Likewise.
2226         * timezone/backward: Likewise.
2227         * timezone/europe: Likewise.
2228         * timezone/leapseconds: Likewise.
2229         * timezone/northamerica: Likewise.
2230         * timezone/southamerica: Likewise.
2231         * timezone/zone.tab: Likewise.
2233 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2235         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
2236         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
2238 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
2240         * elf/elf.h (PT_TLS): New definition.
2242 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
2244         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
2245         bits/errno.h
2247 2001-10-07  Roland McGrath  <roland@frob.com>
2249         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
2251 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
2253         * elf/elf.h: Add more ELFOSABI_* constants.
2255 2001-10-04  Ben Collins  <bcollins@debian.org>
2257         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
2258         decleration of __need_wchar_t.
2260 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
2262         * string/bits/string2.h (__strsep_g): Add prototype.
2263         (__strsep): Use it.
2264         * string/Versions (__strsep): Remove.
2265         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
2267 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
2269         * manua/llio.texi: Clarify file references added by mmap.
2270         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
2272 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
2274         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
2275         Add sc_loadrs and sc_rbs_bas to match current kernel.
2277 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2279         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2281         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
2283 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2285         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
2286         object has been bumped because of relocation dependency, avoid
2287         duplicates in l_scope.
2288         (show_scope): Fix typos.
2289         * elf/Makefile: Add rules to build and run reldep6.
2290         * elf/reldep6.c: New file.
2291         * elf/reldep6mod0.c: New file.
2292         * elf/reldep6mod1.c: New file.
2293         * elf/reldep6mod2.c: New file.
2294         * elf/reldep6mod3.c: New file.
2295         * elf/reldep6mod4.c: New file.
2297 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
2299         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
2300         sparc64_fixup_plt.
2301         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
2302         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
2303         for non-lazy binding. Fix .plt[32768+] handling.
2304         (elf_machine_plt_value): Don't add addend.
2305         (elf_machine_rela): Call sparc64_fixup_plt instead of
2306         elf_machine_fixup_plt.
2307         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
2308         dynamic linker at 0xfffff800XXXXXXXX.
2310         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2312 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
2314         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
2316 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
2318         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
2319         declare __cmsg_data field if its size would be bigger than 0.
2320         (CMSG_DATA): Adjust accordingly.
2321         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2322         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
2323         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
2324         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
2325         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2326         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2327         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2329 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
2331         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
2332         * iconvdata/testdata/IBM1160: New file.
2333         * iconvdata/testdata/IBM1160..UTF8: New file.
2334         * iconvdata/testdata/IBM1161: New file.
2335         * iconvdata/testdata/IBM1161..UTF8: New file.
2336         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2338 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2340         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
2341         UL_SETFSIZE computations better.
2343         * rt/Makefile: Remove use of filter for librt again.
2345         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
2346         UL_SETFSIZE computations better.
2348         * string/Versions: Export __strsep for GLIBC_2.2.5.
2349         * string/bits/string2.h: Define all __STRING_INLINE functions if
2350         _FORCE_INLINES is defined.
2351         Use int instead of char of parameter types.
2352         (__strsep): Don't use __strsep_g.  Don't define it.
2353         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
2354         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
2355         __strcpy_small.
2356         (__stpcpy_a_small): Renamed from __stpcpy_small.
2357         (__strcspn_c1): Don't define if _FORCE_INLINES.
2358         (__strspn_c1): Likewise.
2360 2001-09-22  Ben Collins  <bcollins@debian.org>
2362         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
2363         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
2364         * sysdeps/ia64/bits/sigaction.h: Likewise.
2365         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
2367 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
2369         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
2371 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
2373         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
2375 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2377         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
2379 2001-09-20  H.J. Lu  <hjl@gnu.org>
2381         * include/dlfcn.h (__RTLD_SPROF): New definiton.
2382         * elf/dl-open.c (dl_open_worker): Return immediately after loading
2383         for __RTLD_SPROF.
2384         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
2385         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
2387 2001-09-20  H.J. Lu  <hjl@gnu.org>
2389         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
2390         don't add 1.
2392 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2394         * nss/getent.c: Accept -s parameter to overwrite rules in
2395         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
2397         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
2398         with as many ".0" as necessary to form a complete address
2399         inet_network understands.
2401         * nss/getent.c: Various cleanups.  Use simpler and fewer function
2402         calls.
2404 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2406         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
2407         _JMPBUF_UNWINDS.
2408         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
2410 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2412         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
2413         IBM1161.
2414         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
2415         * iconvdata/ibm1160.c: New file.
2416         * iconvdata/ibm1160.h: New file.
2417         * iconvdata/ibm1161.c: New file.
2418         * iconvdata/ibm1161.h: New file.
2419         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2421 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
2423         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
2424         difference between base address and first PT_LOAD's virtual address,
2425         not the base address.
2427 2001-09-11  Tom Rix  <trix@redhat.com>
2429         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
2430         ifdef for __getopt_clean_environment.
2431         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
2433 2001-09-22  Andreas Jaeger  <aj@suse.de>
2435         * elf/reldep4.c (main): Add proper prototype to fix warning.
2437         * elf/reldep5.c (main): Remove unused variable.
2439         * math/math_private.h: Add prototypes.
2441 2001-09-21  Andreas Jaeger  <aj@suse.de>
2443         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
2444         * sysdeps/x86_64/Dist: New file.
2445         * sysdeps/x86_64/soft-fp/Dist: New file.
2447         * sysdeps/gnu/Dist: Remove eval.c.
2449 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
2451         * malloc/memusage.c (realloc): Don't count already allocated
2452         memory in the sums.
2453         (me): Always use dlsym() to find the real implementations.
2455         * malloc/memusage.sh: Make -n option actually do something.
2457 2001-09-20  Andreas Jaeger  <aj@suse.de>
2459         * elf/elf.h (R_390_NUM): Correct value.
2461         * Versions.def: Add missing versions 2.2.3 for libthread_db and
2462         libpthread.
2464         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2465         for x86-64, install x86-64 into */lib64.
2467         * shlib-versions: Add x86-64.
2469         * elf/elf.h: Add x86-64 relocations.
2471 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
2473         * po/fr.po: Update from translation team.
2475 2001-09-19  Andreas Jaeger  <aj@suse.de>
2477         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
2478         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
2479         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
2480         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
2481         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
2482         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
2483         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
2484         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
2485         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
2486         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2487         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
2488         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
2489         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
2490         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
2491         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
2492         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
2493         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
2494         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2495         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
2496         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
2497         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
2498         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
2499         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
2500         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
2501         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
2502         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
2503         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
2504         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
2505         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
2506         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
2507         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
2508         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
2509         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
2510         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
2511         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
2512         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
2513         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
2514         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
2515         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
2516         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
2517         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
2518         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
2519         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
2520         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
2521         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
2522         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
2523         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
2524         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
2525         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2526         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
2527         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
2528         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2529         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
2530         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
2531         * sysdeps/unix/x86_64/sysdep.S: New file.
2532         * sysdeps/unix/x86_64/sysdep.h: New file.
2533         * sysdeps/x86_64/Implies: New file.
2534         * sysdeps/x86_64/Makefile: New file.
2535         * sysdeps/x86_64/Versions: New file.
2536         * sysdeps/x86_64/__longjmp.S: New file.
2537         * sysdeps/x86_64/abort-instr.h: New file.
2538         * sysdeps/x86_64/atomicity.h: New file.
2539         * sysdeps/x86_64/bits/endian.h: New file.
2540         * sysdeps/x86_64/bits/setjmp.h: New file.
2541         * sysdeps/x86_64/bits/string.h: New file.
2542         * sysdeps/x86_64/bp-asm.h: New file.
2543         * sysdeps/x86_64/bsd-_setjmp.S: New file.
2544         * sysdeps/x86_64/bsd-setjmp.S: New file.
2545         * sysdeps/x86_64/dl-machine.h: New file.
2546         * sysdeps/x86_64/elf/initfini.c: New file.
2547         * sysdeps/x86_64/elf/start.S: New file.
2548         * sysdeps/x86_64/ffs.c: New file.
2549         * sysdeps/x86_64/ffsll.c: New file.
2550         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
2551         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
2552         * sysdeps/x86_64/fpu/e_acosl.c: New file.
2553         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
2554         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
2555         * sysdeps/x86_64/fpu/e_expl.c: New file.
2556         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
2557         * sysdeps/x86_64/fpu/e_log10l.S: New file.
2558         * sysdeps/x86_64/fpu/e_log2l.S: New file.
2559         * sysdeps/x86_64/fpu/e_logl.S: New file.
2560         * sysdeps/x86_64/fpu/e_powl.S: New file.
2561         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
2562         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
2563         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
2564         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
2565         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
2566         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
2567         * sysdeps/x86_64/fpu/fegetenv.c: New file.
2568         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
2569         * sysdeps/x86_64/fpu/fegetround.c: New file.
2570         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
2571         * sysdeps/x86_64/fpu/fesetenv.c: New file.
2572         * sysdeps/x86_64/fpu/fesetround.c: New file.
2573         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
2574         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
2575         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
2576         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
2577         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
2578         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
2579         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
2580         * sysdeps/x86_64/fpu/s_atanl.c: New file.
2581         * sysdeps/x86_64/fpu/s_cosl.S: New file.
2582         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
2583         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
2584         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2585         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2586         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2587         * sysdeps/x86_64/fpu/s_logbl.c: New file.
2588         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2589         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2590         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2591         * sysdeps/x86_64/fpu/s_rintl.c: New file.
2592         * sysdeps/x86_64/fpu/s_significandl.c: New file.
2593         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2594         * sysdeps/x86_64/fpu/s_sinl.S: New file.
2595         * sysdeps/x86_64/fpu/s_tanl.S: New file.
2596         * sysdeps/x86_64/gmp-mparam.h: New file.
2597         * sysdeps/x86_64/hp-timing.c: New file.
2598         * sysdeps/x86_64/hp-timing.h: New file.
2599         * sysdeps/x86_64/htonl.S: New file.
2600         * sysdeps/x86_64/memusage.h: New file.
2601         * sysdeps/x86_64/setjmp.S: New file.
2602         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
2603         * sysdeps/x86_64/stackinfo.h: New file.
2604         * sysdeps/x86_64/sysdep.h: New file.
2605         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
2607         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
2608         L Moshier.
2610 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2612         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
2613         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
2615 2001-09-18  Andreas Schwab  <schwab@suse.de>
2617         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
2618         list, now that l_scope is a pointer.
2620         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
2621         scope list.
2623 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2625         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
2626         (elf_machine_rela_relative): Add a missing declaration.
2628 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
2630         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
2631         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
2632         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
2633         ldd-rewrite scripts.
2635 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2637         * elf/ldd.bash.in: Update copyright message.
2639 2001-09-17  H.J. Lu  <hjl@gnu.org>
2641         * hurd/hurdmalloc.c (bcopy): Removed.
2642         (realloc): Replace bcopy with memcpy.
2643         * hurd/path-lookup.c (file_name_path_scan): Likewise.
2644         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
2645         * sunrpc/rpcinfo.c (pmapdump): Likewise.
2647         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
2648         (gethostbyaddr): Likewise.
2649         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
2651 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2653         * sysdeps/gnu/eval.c: Removed.
2655 2001-09-18  Andreas Jaeger  <aj@suse.de>
2657         * sysdeps/i386/fpu/s_logbl.S: Move to ...
2658         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
2660         * sysdeps/i386/fpu/s_rintl.S: Move to ...
2661         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
2663         * sysdeps/i386/fpu/s_significandl.S: Move to ...
2664         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
2666 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
2668         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2669         nrules value.
2671 2001-09-14  H.J. Lu  <hjl@gnu.org>
2673         * sysdeps/mips/fpu/libm-test-ulps: Updated.
2675 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
2677         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
2678         Patch by Florian La Roche <laroche@redhat.com>.
2680         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
2682         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
2683         ETHER_CRC_LEN.
2685 2001-09-14  Andreas Schwab  <schwab@suse.de>
2687         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
2688         Sumner <bls@sgi.com>.
2689         * posix/execlp.c: Likewise.
2691 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
2693         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
2694         is already found earlier in the search scope.
2696 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
2698         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
2699         filter.
2701 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
2703         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
2705 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
2707         * config.h.in: Enforce optimization to be used.
2708         * Makeconfig (preprocess-versions): Define ASSEMBLER.
2709         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
2710         * posix/Makefile (annexc-CFLAGS): Define to -O.
2711         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
2713 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
2715         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
2716         Patch by Stephan Kulow.
2718 2001-09-08  Ben Collins  <bcollins@debian.org>
2720         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
2721         usage of RESOLVE() (r_type, not reloc->r_type).
2723 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2725         * elf/dl-object.c: Avoid allocating extra memory block for name.
2726         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
2727         allocated separately.
2728         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2730 2001-09-08  H.J. Lu  <hjl@gnu.org>
2732         * po/zh_TW.po: Fix a typo.
2734 2001-09-07  Tom Rix  <trix@redhat.com>
2736         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
2738 2001-08-26  Tom Rix  <trix@redhat.com>
2740         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
2741         command line options.
2742         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
2743         * sysdeps/unix/sysv/aix/start.c: Removed.
2744         * sysdeps/unix/sysv/aix/start-libc.c: New file.
2745         * sysdeps/unix/sysv/aix/init-first.c: New file.
2746         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
2748 2001-09-08  Ben Collins  <bcollins@debian.org>
2750         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
2751         * sysdeps/generic/dl-machine.h: Likewise.
2752         * sysdeps/hppa/dl-fptr.c: Likewise.
2753         * sysdeps/ia64/dl-fptr.c: Likewise.
2754         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2755         * sysdeps/mips/dl-machine.h: Likewise.
2756         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2757         * sysdeps/powerpc/dl-machine.c: Likewise.
2759 2001-09-07  Ben Collins  <bcollins@debian.org>
2761         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
2763         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
2765 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2767         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
2768         dependencies if necessary.
2770         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
2771         loaded directly) determine length if l_initfini list by iterating
2772         over its elements.  Minor optimizations.
2773         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
2774         for dependency objects.
2775         If object was already loaded check whether any of the dependencies
2776         is already on the relocation dependency list.  If yes, remove the
2777         latter.  Minor optimizations.
2778         * elf/dl-lookup.c (add_dependency): Add check for self reference of
2779         maps here.  Search l_initfini list only if the object was loaded
2780         directly and not only as a dependency.
2781         (_dl_lookup_symbol): Add relocation dependency also if object
2782         is not in global scope.  Remove test for self-reference here.
2783         (_dl_lookup_versioned_symbol): Likewise.
2784         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
2785         element of first name record.
2786         * elf/loadtest.c: Add some more test to recognize early if an object
2787         wasn't unloaded.
2788         * elf/Makefile: Add rules to build and run reldep5.
2789         * elf/reldep5.c: New file.
2790         * elf/reldepmod5.c: New file.
2791         * elf/reldepmod6.c: New file.
2793         * elf/reldep2.c: Fix typo.
2795 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
2797         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
2798         elements.  Change l_scope to be a pointer only.
2799         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
2800         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
2801         here add searchlist of newly open file to the dependency's scope.
2802         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
2803         only searchlist from its scope.  Free own scope array if necessary.
2804         * elf/Makefile (tests): Add dblload and dblunload now.
2806 2001-09-06  Andreas Jaeger  <aj@suse.de>
2808         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
2809         Stephen L Moshier.
2811 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
2813         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
2814         they both fail.
2815         * elf/dblload.c: New file.
2816         * elf/dblloadmod1.c: New file.
2817         * elf/dblloadmod2.c: New file.
2818         * elf/dblloadmod3.c: New file.
2819         * elf/dblunload.c: New file.
2821 2001-09-04  Richard Henderson  <rth@redhat.com>
2823         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
2824         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
2826 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2828         Correct very misleading message for error in failed runtime relocation.
2829         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
2830         place of the error.
2831         (_dl_signal_cerror): Likewise.
2832         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2833         * elf/dl-close.c: Likewise.
2834         * elf/dl-deps.c: Likewise.
2835         * elf/dl-load.c: Likewise.
2836         * elf/dl-lookup.c: Likewise.
2837         * elf/dl-open.c: Likewise.
2838         * elf/dl-reloc.c: Likewise.
2839         * elf/dl-sym.c: Likewise.
2840         * elf/dl-version.c: Likewise.
2841         * sysdeps/generic/dl-sysdep.c: Likewise.
2843 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2845         * iconv/strtab.c (strtabinit): Initialize null Strent.
2846         (newstring): Move len == 0 handling...
2847         (strtabadd): ...here.
2848         If len == 1, return null Strent.
2849         When inserting a suffix of an existing string, check if
2850         it is not equal to some suffix already recorded.
2851         Copy left and right members over if adding longer string.
2853 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2855         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
2857         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
2858         (__syscall_gethostname): Add prototype.
2860 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2862         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
2864 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
2866         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
2868 2001-08-27  Roland McGrath  <roland@frob.com>
2870         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
2871         short, copy that much into NAME anyway before returning error.
2873 2001-09-01  Richard Henderson  <rth@redhat.com>
2875         * sysdeps/alpha/elf/Dist: Remove file.
2876         * sysdeps/alpha/elf/Makefile: Remove file.
2877         * sysdeps/alpha/elf/crtbegin.S: Remove file.
2878         * sysdeps/alpha/elf/crtend.S: Remove file.
2879         * sysdeps/alpha/elf/initfini.c: New file.
2881 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
2883         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
2884         * iconv/tst-iconv3.c: Likewise.
2886 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
2888         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
2890 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
2892         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
2893         export it.
2894         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
2895         * iconv/iconv_prog.c (insert_cache): New function.
2896         (print_known_names): If cache is used call insert_cache to use the
2897         information from the cache [PR libc/2509].
2899 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
2901         * time/strptime.c (strptime_internal): Recognize 'l' format and
2902         handle it like 'I' for symmetry with strftime.
2904 2001-08-31  Richard Henderson  <rth@redhat.com>
2906         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
2907         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
2908         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
2909         (print_statistics): Make scalar unsigned long long.
2910         * sysdeps/alpha/hp-timing.h: New file.
2912 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2914         * stdio-common/perror.c (perror): Save errno early, pass it
2915         down to perror_internal.
2916         (perror_internal): Add errnum argument.
2918 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2920         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
2921         Don't add old memory content for R_ALPHA_REFQUAD.
2923 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2925         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
2926         memory correctly.
2928         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
2929         instead of open, __close instead of close, __getpagesize instead
2930         of getpagesize.
2932         * string/argz-stringify.c (__argz_stringify): Use __strnlen
2933         instead of strnlen.
2934         * include/string.h (strndupa): Redefine here to use __strnlen
2935         instead of strnlen.
2936         * string/strndup.c (__strndup): Use __strnlen not strnlen.
2938         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
2939         connected).
2941 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2943         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
2944         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
2945         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2946         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
2947         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
2948         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
2949         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
2951 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2953         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
2955 2001-08-30  Andreas Jaeger  <aj@suse.de>
2957         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
2958         contributed Stephen L Moshier.
2960 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2962         * sunrpc/etc.rpc (sgi_fam): Add.
2964 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2966         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
2968 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2970         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
2971         first is from a previous call.
2972         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
2974 2001-08-29  Andreas Schwab  <schwab@suse.de>
2976         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
2978 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2980         * config.make.in (INSTALL_SCRIPT): Define.
2981         * Makeconfig (INSTALL_SCRIPT): Define.
2982         * Makerules (do-install-script): New macro to install scripts using
2983         INSTALL_SCRIPT.
2984         (install-bin-script): New rule to install scripts with
2985         do-install-script.
2986         (install-bin-script-nosubdir): New rule.
2987         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
2988         (distinfo-vars): Add $(install-bin-script).
2989         * Rules (others): Likewise.
2990         * Makefile (glibcbug): Install with install-bin-script.
2991         * debug/Makefile (xtrace): Likewise.
2992         (catchsegv): Likewise.
2993         * elf/Makefile (ldd): Likewise.
2994         * malloc/Makefile (mtrace): Likewise.
2995         * timezone/Makefile (tzselect): Likewise.
2997 2001-08-29  H.J. Lu  <hjl@gnu.org>
2999         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
3000         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
3001         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
3003 2001-08-29  Andreas Schwab  <schwab@suse.de>
3005         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
3007 2001-08-28  H.J. Lu  <hjl@gnu.org>
3009         * Makeconfig (combreloc-LDFLAGS): New variable.
3010         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
3011         * config.make.in (have-z-combreloc): New variable.
3012         * configure.in: Substitute libc_cv_z_combreloc.
3014 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3016         * po/sv.po: Update from translation team.
3017         * po/fr.po: Likewise.
3018         * po/da.po: Likewise.
3020 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3022         * Makerules: Fix a typo: MD% -> MD5.
3024 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
3026         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
3027         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
3029 2001-08-28  Andreas Jaeger  <aj@suse.de>
3031         * manual/libc-texinfo.sh: Add entry about free manuals.
3033         * manual/contrib.texi (Contributors): Fix cross reference.
3035         * manual/libc.texinfo (Copying): Include freemanuals.
3037         * manual/Makefile (appendices): Add freemanuals.
3039         * manual/freemanuals.texi: New file.
3040         Patch by Brian Youmans <3diff@gnu.org>.
3042         * manual/libm-err-tab.pl: Pretty print more platforms, print a
3043         smaller table.
3045         * manual/math.texi (Errors in Math Functions): Fix grammar, start
3046         table on separate page.
3047         Patch by Brian Youmans <3diff@gnu.org>.
3049 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3051         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
3052         the connection went down after we first used it try to connect
3053         again and resend the message before printing to the console.
3054         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
3056 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3058         * string/tst-strlen.c (main): Test strnlen (, -1) too.
3059         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
3060         bit set.
3062 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3064         * iconv/strtab.c (searchstring): Use correct length for comparison.
3065         (strtabadd): Account total size correct if new string has old string as
3066         substring.
3068 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3070         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
3072 2001-08-27  Andreas Jaeger  <aj@suse.de>
3074         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
3076         * math/libm-test.inc (j0_test): Add extra tests.
3077         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
3078         not x, in Hankel approximation.
3079         Patches by Stephen L Moshier.
3081 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3083         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
3084         link_map.
3086         * configure.in: Fix test for .rela.dyn section.
3088         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
3090 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3092         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
3093         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
3094         Pass type_class to _dl_lookup_*.
3095         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
3096         Pass around just type_class instead of noexec, noplt pair.
3097         (_dl_lookup_versioned_symbol): Likewise.
3098         (_dl_lookup_symbol_skip): Pass around just type_class instead of
3099         noexec, noplt pair.
3100         (_dl_lookup_versioned_symbol_skip): Likewise.
3101         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
3102         * elf/do-lookup.h (do_lookup): Likewise.
3103         * include/link.h (struct link_map): Replace noexec and noplt fields
3104         in l_lookup_cache with type_class field.
3105         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
3106         ELF_RTYPE_CLASS_COPY): Define.
3107         Adjust prototypes for _dl_lookup_symbol and
3108         _dl_lookup_versioned_symbol.
3109         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
3110         elf_machine_lookup_noexec_p): Remove.
3111         (elf_machine_type_class): Define.
3112         * sysdeps/arm/dl-machine.h: Likewise.
3113         * sysdeps/hppa/dl-machine.h: Likewise.
3114         * sysdeps/cris/dl-machine.h: Likewise.
3115         * sysdeps/i386/dl-machine.h: Likewise.
3116         * sysdeps/ia64/dl-machine.h: Likewise.
3117         * sysdeps/m68k/dl-machine.h: Likewise.
3118         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3119         * sysdeps/mips/dl-machine.h: Likewise.
3120         * sysdeps/powerpc/dl-machine.h: Likewise.
3121         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3122         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3123         * sysdeps/sh/dl-machine.h: Likewise.
3124         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3125         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3127 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3129         * manual/message.texi (Advanced gettext functions): Change
3130         description of plural forms for Slovak.
3131         Reported by Marcel Telka <marcel@telka.sk>.
3133         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
3134         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
3136 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3138         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
3139         typo.  Patch by Florian La Roche <laroche@redhat.com>.
3141 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3143         * include/link.h (struct link_map): Add l_lookup_cache element.
3144         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
3145         (RESOLVE_MAP): Likewise.
3146         (_dl_relocate_object): Remove cache initialization.
3147         * elf/dl-lookup.c: Rip out cache handling code.
3148         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
3149         declarations.
3151         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
3152         remove some __builtin_expect.
3153         (_dl_lookup_versioned_symbol): Likewise.
3155         * config.h.in: Add HAVE_Z_COMBRELOC.
3156         * configure.in: Add test for -z combreloc.
3158         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
3159         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
3160         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
3161         case to almost no code.
3163 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
3165         * po/tr.po: Update from translation team.
3167 2001-08-24  Andreas Jaeger  <aj@suse.de>
3169         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
3170         make clean works.
3172 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3174         * elf/rtld.c (print_statistics): Printf % after percent values.
3175         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
3177         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
3178         don't have to compute the hash value and initialize current_value.
3179         Move reference_name variable to where it is needed.
3180         (_dl_lookup_versioned_symbol): Likewise.
3182 2001-08-24  Roland McGrath  <roland@frob.com>
3184         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
3185         Just test that strerror returns non-null for a few errno codes.
3187 2001-08-23  Roland McGrath  <roland@frob.com>
3189         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
3190         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
3192         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
3194         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
3195         __mach_reply_port.
3197 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3199         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
3200         returns NULL.
3202         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
3203         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
3204         doesn't do it.
3205         * elf/rtld.c: Include <sys/param.h>.
3206         * elf/dl-reloc.c: Likewise.
3208 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3210         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
3211         empty to prevent junk from being generated.
3212         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
3214 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3216         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
3217         records.  Rename endrel to relative, initialize it to r, and use it
3218         in elf_machine_rel_relative calls.  Point r after relative relocs.
3220 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3222         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
3223         of R_386_NONE.
3225 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3227         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
3228         necessary.  Undefine newly defined macros at the end.
3229         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
3230         Rename from elf_machine_rel_relative.
3231         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
3232         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
3233         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
3234         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
3235         Likewise.
3236         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
3237         Likewise.
3238         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
3239         Fix argument types.
3240         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
3241         Fix argument types.
3242         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
3243         Likewise.  Fix argument types.
3244         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
3245         Likewise.  Fix argument types.
3246         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
3247         Fix argument types.
3248         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
3249         ElfW(Rel) in argument.
3250         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
3251         function.
3253 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
3255         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
3257 2001-08-24  Andreas Jaeger  <aj@suse.de>
3259         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
3260         Stephen L Moshier <moshier@mediaone.net>.
3262 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3264         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
3265         first if RELCOUNT is set.
3267         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
3268         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
3269         elf_machine_rel_relative.
3270         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
3271         Minor optimizations.
3272         * sysdeps/arm/dl-machine.h: Likewise.
3273         * sysdeps/cris/dl-machine.h: Likewise.
3274         * sysdeps/hppa/dl-machine.h: Likewise.
3275         * sysdeps/i386/dl-machine.h: Likewise.
3276         * sysdeps/ia64/dl-machine.h: Likewise.
3277         * sysdeps/m68k/dl-machine.h: Likewise.
3278         * sysdeps/mips/dl-machine.h: Likewise.
3279         * sysdeps/powerpc/dl-machine.h: Likewise.
3280         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3281         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3282         * sysdeps/sh/dl-machine.h: Likewise.
3283         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3284         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3286 2001-08-23  Roland McGrath  <roland@frob.com>
3288         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
3290         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
3291         sysdeps/mach version.  Implement counting ("recursive") mutexes
3292         on top of cthreads mutexes.
3293         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
3295         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
3296         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
3297         (__libc_cleanup_region_start, __libc_cleanup_region_end,
3298         __libc_clean_end): Define these to call the cleanup function after
3299         normal exit when they're supposed to.
3301         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
3302         Take new first arg DOIT, a boolean saying whether to really install
3303         any cleanup handler.
3304         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
3305         (__libc_cleanup_end): Likewise.
3306         * sysdeps/generic/bits/libc-lock.h: Same changes.
3307         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
3308         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
3309         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
3310         Likewise.
3311         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
3312         * sysdeps/generic/bits/stdio-lock.h
3313         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
3315 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3317         * elf/ldconfig.c (search_dir): Remove stale symlinks.
3319 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3321         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
3322         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
3323         lookups in cache.
3324         (_dl_lookup_versioned_symbol): Likewise.
3325         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
3326         relocation lookup.
3327         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
3328         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
3329         (lookup_cache, lookup_cache_versioned): Add declarations.
3331 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3333         * stdlib/tst-random.c (main): Swap parameters in fail call.
3334         Patch by Pete Bevin <pete@petebevin.com>.
3336 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3338         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
3340 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3342         * malloc/obstack.c: Indent preprocessor directives.
3343         Patch by Jim Meyering <meyering@ascend.com>.
3345         * po/ja.po: Update from translation team.
3347 2001-08-23  Roland McGrath  <roland@frob.com>
3349         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
3351         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
3352         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
3354 2001-08-22  Roland McGrath  <roland@frob.com>
3356         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
3357         __libc_lock_define_recursive.
3358         * elf/dl-open.c: Don't declare it here any more.
3359         * elf/dl-close.c: Likewise.
3360         * elf/dl-lookup.c: Likewise.
3361         * elf/dl-iteratephdr.c: Likewise.
3362         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
3363         __libc_lock_unlock_recursive.
3364         * elf/dl-close.c (_dl_close): Likewise
3365         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
3366         * elf/dl-open.c (_dl_open): Likewise
3368         * sysdeps/generic/bits/libc-lock.h
3369         (__libc_lock_define_recursive): New macro.
3370         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
3371         (_IO_lock_lock): Use __libc_lock_lock_recursive.
3372         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
3374         * conform/conformtest.pl (checknamespace): Sort the output list.
3376         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
3377         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
3378         definitions conditional on [__USE_XOPEN].
3380         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
3381         these unconditionally, not only use [__USE_BSD], so as to match
3382         the sysdeps/unix/sysv/linux files.
3384 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3386         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
3387         avoid warnings.
3389         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
3390         DL_LOOKUP_ADDRESS.
3392 2001-08-22  Roland McGrath  <roland@frob.com>
3394         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
3395         conditionalization of sa_handler/sa_sigaction member types to
3396         match the sysdeps/unix/sysv/linux file.
3398 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3400         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
3401         symbol sizes a bit better.
3403         * sysdeps/ia64/strncpy.S: Complete rewrite.
3404         Contributed by Jakub Jelinek <jakub@redhat.com>.
3406         * string/stratcliff.c (main): Add strncpy test.
3408 2001-08-22  Roland McGrath  <roland@frob.com>
3410         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
3411         and don't declare unsetenv or _environ directly.
3412         (unsetenv): Return int, not void.  Use __environ instead of _environ.
3414 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
3416         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
3417         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
3418         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
3419         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
3420         test for cmsg struct size.
3422 2001-04-23  Paul Eggert  <eggert@twinsun.com>
3424         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
3425         Rename __argc to ___argc in prototypes to avoid compatibility
3426         problems with systems that reserve the identifier "__argc".
3427         Similarly for __argv.
3429 2001-08-21  Roland McGrath  <roland@frob.com>
3431         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
3433         * mach/Makefile (tests): Removed.
3434         * mach/hello.c: File removed.
3436 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3438         * po/sv.po: Update from translation team.
3440         * stdio-common/vfscanf.c: Fix handling of %l[].
3441         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3443         * libio/Makefile (tests): Add tst-sscanf.
3444         * libio/tst-sscanf.c: New file.
3446         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
3447         * malloc/mtrace.c (tr_where): dli_sname always points to a
3448         non-empty string if != NULL.
3449         Reported by Tim Janik <timj@gtk.org>.
3451 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
3453         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
3454         buf.  Free resources on failure.
3455         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
3456         (makefd_xprt): Likewise.
3457         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
3458         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
3459         * sunrpc/auth_unix.c (authunix_create): Likewise.
3461 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
3463         * string/strnlen.c: Remove.
3464         * sysdeps/generic/strnlen.c: New file.
3465         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3467 2001-08-21  Roland McGrath  <roland@frob.com>
3469         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3470         as a macro, not an extern inline function.
3472         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
3473         * Versions.def (libc): Add GLIBC_2.2.5 set.
3474         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
3475         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
3477 2001-08-20  Roland McGrath  <roland@frob.com>
3479         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3480         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3482 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3484         * string/bits/string2.h: Remove strnlen optimization here.
3485         * sysdeps/i386/i486/bits/string.h: Add it here.
3487 2001-08-21  Wolfram Gloger  <wg@malloc.de>
3489         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3491 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3493         * po/gl.po: Update from translation team.
3495 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3497         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3498         * misc/err.c (convert_and_print): Likewise.
3500         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3501         function calls.
3503 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3505         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
3506         change of the gregset_t type.
3507         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3509 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3511         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3513 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3515         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3517         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
3519 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
3521         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3522         before calling the cthreads initialization code.
3524 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3526         * argp/argp-help.c: Fix two problems introduced in last change.
3528         * include/dirent.h: Include <dirstream.h> first.
3530 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
3532         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
3534         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
3535         * sunrpc/xdr_rec.c: Likewise.
3536         * sunrpc/xdr_mem.c: Likewise.
3537         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
3538         * sunrpc/rpc_cmsg.c: Likewise.
3539         * sunrpc/getrpcport.c (getrpcport): Likewise.
3540         * sunrpc/clnt_simp.c (callrpc): Likewise.
3541         * sunrpc/clnt_gen.c (clnt_create): Likewise.
3542         * string/envz.c: Likewise.
3544         * po/ko.po: Update from translation team.
3546         * argp/argp-help.c: Handle wide oriented stderr stream.
3548 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
3550         * sysdeps/generic/strtol.c: Little optimizations.  Add some
3551         __builtin_expect.
3553         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3555         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3556         * wcsmbs/wcwidth.c (wcwdith): Likewise.
3557         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3559         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3561         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3563         * time/time.h (struct timespec): Use __time_t for tv_sec element.
3565         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
3566         wchar_t for function declarations and defintions.
3568         * misc/sys/select.h: Define __need_time_t before including <time.h>.
3569         Define suseconds_t if it hasn't happened yet.
3571         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3573         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3575         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3576         <stddef.h>.
3578         * conform/data/stddef.h-data: Remove wint_t.
3580         * conform/conformtest.pl: Change namespace test to take #undef
3581         lines into account.
3583         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3585         * conform/data/sys/socket.h-data: Add sockatmark.
3587 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3589         * io/fts.c: Update from recent BSD source.
3591 2001-08-17  Roland McGrath  <roland@frob.com>
3593         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3594         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3595         Likewise.
3597 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3599         * locale/duplocale.c (__duplocale): Also initialize the special
3600         __ctype_* elements.
3602         * conform/data/netdb.h-data: Adjust gai_strerror return type.
3604 2001-08-17  Andreas Jaeger  <aj@suse.de>
3606         * misc/getpass.c: Include wchar.h for prototypes.
3607         * malloc/obstack.c: Likewise.
3609 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3611         * sunrpc/svc_simple.c (universal): Use __write instead of write.
3613         * wcsmbs/wcscoll.c: Also define __wcscoll.
3614         * include/wchar.h: Declare __wcscoll.
3616         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
3617         * libio/vwprintf.c: Likewise.
3618         * libio/wprintf.c: Likewise.
3620         * iconv/gconv_cache.c: Use __munmap instead of munmap.
3622 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
3624         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3625         instead of mbrtowc.
3626         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3627         wcslen, and __wcscoll instead of wcscoll.
3629         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
3631         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
3632         __getuid instead of getuid.
3634         * stdio-common/perror.c (perror): Use __close instead of close.
3635         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3636         * libio/freopen.c (freopen): Likewise.
3637         * libio/freopen64.c (freopen64): Likewise.
3639         * libio/tst-ungetwc2.c (main): Define str const.
3641         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
3642         * libio/fwprintf.c: Also define __fwprintf.
3643         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
3644         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
3645         * assert/assert-perr.c: Likewise.
3646         * assert/assert.c: Likewise.
3647         * gmon/gmon.c: Likewise.
3648         * inet/rcmd.c: Likewise.
3649         * malloc/obstack.c: Likewise.
3650         * misc/err.c: Likewise.
3651         * misc/error.c: Likewise.
3652         * misc/getpass.c: Likewise.
3653         * posix/getopt.c: Likewise.
3654         * resolv/res_hconf.c: Likewise.
3655         * stdio-common/perror.c: Likewise.
3656         * stdio-common/psignal.c: Likewise.
3657         * stdlib/fmtmsg.c: Likewise.
3658         * sunrpc/auth_unix.c: Likewise.
3659         * sunrpc/clnt_perr.c: Likewise.
3660         * sunrpc/clnt_tcp.c: Likewise.
3661         * sunrpc/clnt_udp.c: Likewise.
3662         * sunrpc/clnt_unix.c: Likewise.
3663         * sunrpc/svc_simple.c: Likewise.
3664         * sunrpc/svc_tcp.c: Likewise.
3665         * sunrpc/svc_udp.c: Likewise.
3666         * sunrpc/svc_unix.c: Likewise.
3667         * sunrpc/xdr.c: Likewise.
3668         * sunrpc/xdr_array.c: Likewise.
3669         * sunrpc/xdr_rec.c: Likewise.
3670         * sunrpc/xdr_ref.c: Likewise.
3671         * sysdeps/generic/wordexp.c: Likewise.
3673         * po/it.po: Update from translation team.
3675         * misc/err.c: Handle wide oriented stderr stream.
3677 2001-08-14  Tom Rix  <trix@redhat.com>
3679         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
3680         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
3682 2001-08-13  Tom Rix  <trix@redhat.com>
3684         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
3685         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
3686         and __intptr_t.
3688 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3690         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
3691         Store the access registers to the ucontext structure.
3692         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
3693         Likewise.
3695         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
3696         Load the access registers from the ucontext structure.
3697         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
3698         Likewise.
3700         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
3701         offsets to the new ucontext layout.
3702         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
3704         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
3705         of the ucontext structure.
3706         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3708 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
3710         * misc/error.c (error): Handle wide oriented stderr stream correctly.
3711         (error_at_line): Likewise.
3713         * stdio-common/perror.c (perror): Implement according to standard.
3714         The stream orientation must not be changed if the stream was not
3715         oriented before the call.
3716         * stdio-common/Makefile (tests): Add tst-perror.
3717         * stdio-common/tst-perror.c: New file.
3720 See ChangeLog.12 for earlier changes.