1 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
4 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
6 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
10 2002-02-04 Ulrich Drepper <drepper@redhat.com>
12 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
13 * include/link.h (struct link_map): Add various members for TLS
15 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
16 _rtld_tlsoffset, add _dl_initimage_list.
17 * sysdeps/i386/dl-lookupcfg.h: New file.
18 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
19 TLS relocation. When using TLS we now use RESOLVE_MAP.
20 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
23 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
26 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
27 thread-pointer as soon as possible.
28 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
29 elements in rtld_global.
30 * sysdeps/generic/tls.h: New file.
31 * elf/Makefile (distribute): Add tls.h.
32 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
33 relocations. Not complete yet.
35 * resolv/resolv.h: Allow user to define __need_res_state and only
36 define __res_start structure then.
37 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
39 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
40 dl_cpuclock_offset initialization to _dl_start_final.
41 (_dl_show_auxv): Avoid unnecessary sign extension.
42 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
44 2002-02-03 Ulrich Drepper <drepper@redhat.com>
46 * config.h.in: Add HAVE_TLS_SUPPORT.
47 * sysdeps/i386/elf/configure.in: New file.
49 2002-02-03 Andreas Schwab <schwab@suse.de>
51 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
52 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
54 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
56 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
57 alloca if the memory reqirements are too high.
59 2002-02-03 Ulrich Drepper <drepper@redhat.com>
61 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
62 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
63 the former is available anyway and speed isn't important here.
64 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
65 * elf/dl-version.c (match_symbol): Likewise.
66 (_dl_check_map_versions): Likewise.
67 * elf/rtld.c (process_envvars): Likewise.
68 (print_statistics): Likewise.
69 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
70 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
71 bases. Add assert to catch uses of unimplemented features.
72 (__strsep): Add assert to catch uses of unimplemented features.
73 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
74 and avoid inline optimization.
75 * elf/rtld.c (process_envvars): Likewise.
76 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
77 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
78 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
80 2002-02-02 Ulrich Drepper <drepper@redhat.com>
82 * stdio-common/_itoa.h: Minor simplifications of the code.
83 * stdio-common/_itoa.c: Likewise.
85 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
86 instead of _dl_printf for debugging info output.
88 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
89 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
91 2002-02-01 H.J. Lu <hjl@gnu.org>
93 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
94 (atomic_add): Likewise.
95 (compare_and_swap): Return 0 only when failed to compare. Use
98 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
101 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
103 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
105 2002-02-02 Ulrich Drepper <drepper@redhat.com>
107 * elf/dl-minimal.c (__strsep): New minimal implementation.
109 2002-02-02 Paul Eggert <eggert@twinsun.com>
111 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
112 (__mktime_internal): If no tm_isdst is requested, prefer solutions
113 with tm_isdst > 0 when the requested time falls within a
114 spring-forward gap [PR libc/2894].
116 2002-02-03 Andreas Schwab <schwab@suse.de>
118 * stdio-common/tst-rndseek.c: Increase timeout.
120 2002-02-02 Ulrich Drepper <drepper@redhat.com>
122 Change ld.so to not use functions which are exported. One cannot
123 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
125 * include/libc-symbols.h: Define INT and INTDEF.
126 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
127 _dl_signal_error_internal, _dl_map_object_internal,
128 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
129 _dl_lookup_versioned_symbol_internal,
130 _dl_relocate_object_internal, _dl_debug_state_internal,
131 _dl_start_profile_internal, and _dl_unload_cache_internal.
132 * include/dlfcn.h: Declare _dl_catch_error_internal.
133 * elf/rtld.c: Use INT for calls to any of the *_internal functions
134 above. Add INTDEF to function definitions.
135 * elf/dl-debug.c: Likewise.
136 * elf/dl-deps.c: Likewise.
137 * elf/dl-dst.h: Likewise.
138 * elf/dl-error.c: Likewise.
139 * elf/dl-fini.c: Likewise.
140 * elf/dl-init.c: Likewise.
141 * elf/dl-load.c: Likewise.
142 * elf/dl-lookup.c: Likewise.
143 * elf/dl-misc.c: Likewise.
144 * elf/dl-open.c: Likewise.
145 * elf/dl-profile.c: Likewise.
146 * elf/dl-reloc.c: Likewise.
147 * elf/dl-runtime.c: Likewise.
148 * elf/dl-version.c: Likewise.
149 * elf/do-lookup.h: Likewise.
150 * sysdeps/generic/dl-cache.c: Likewise.
151 * sysdeps/generic/dl-sysdep.c: Likewise.
152 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
154 * sysdeps/arm/dl-machine.h: Likewise.
155 * sysdeps/cris/dl-machine.h: Likewise.
156 * sysdeps/hppa/dl-machine.h: Likewise.
157 * sysdeps/i386/dl-machine.h: Likewise.
158 * sysdeps/ia64/dl-machine.h: Likewise.
159 * sysdeps/m68k/dl-machine.h: Likewise.
160 * sysdeps/mips/dl-machine.h: Likewise.
161 * sysdeps/mips/mips64/dl-machine.h: Likewise.
162 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
163 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
164 * sysdeps/sh/dl-machine.h: Likewise.
165 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
166 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
167 * sysdeps/x86_64/dl-machine.h: Likewise.
168 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
170 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
171 and _dl_debug_initialize.
173 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
175 * elf/rtld.c (dl_main): Avoid strrchr.
176 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
177 result of readlink. Search from the back for '/'.
179 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
182 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
184 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
185 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
187 (process_envvars): Don't use strcspn.
189 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
190 (_dl_dst_substitute): Likewise.
192 2002-02-01 Ulrich Drepper <drepper@redhat.com>
194 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
195 code which is never used when relocating ld.so itself.
197 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
198 starting ld.so itself. Move l_addr variable initialization closer
200 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
202 2002-02-01 Jakub Jelinek <jakub@redhat.com>
204 * Versions.def (libc): Add GLIBC_PRIVATE.
205 (libdb, libnss_db, libdb1): Remove.
206 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
207 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
208 (libpthread): Add GLIBC_PRIVATE.
209 (libresolv): Likewise, remove GLIBC_2.1.
210 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
211 GLIBC_2.2.3, GLIBC_2.3.
212 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
213 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
214 _dl_sym, _dl_vsym): Likewise.
215 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
216 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
217 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
218 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
219 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
220 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
221 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
222 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
224 (_dl_object_relocation_scope): Remove.
225 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
226 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
227 __gconv_cache): Move to GLIBC_PRIVATE.
228 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
229 __internal_setnetgrent): Likewise.
230 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
231 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
232 * locale/Versions (__collate_element_hash, __collate_element_strings,
233 __collate_symbol_classes, __collate_symbol_hash,
234 __collate_symbol_strings, _nl_current_LC_COLLATE,
235 _nl_current_LC_CTYPE): Likewise.
236 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
237 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
238 (libnss_nis, libnss_nisplus): Likewise.
239 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
240 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
241 (libnss_files): Move all symbols to GLIBC_PRIVATE.
242 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
243 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
244 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
245 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
246 __ns_get16, __ns_samename): Likewise.
247 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
248 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
250 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
251 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
252 __libc_connect): Likewise.
253 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
255 * stdlib/Versions (__libc_system): Likewise.
256 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
257 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
258 * sysdeps/ia64/fpu/Versions: Likewise.
259 * sysdeps/ia64/Versions: Likewise.
260 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
261 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
263 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
264 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
265 __libc_sigaction): Likewise.
266 * termios/Versions (__libc_tcdrain): Likewise.
268 * misc/sys/cdefs (__attribute_noinline__): Define.
269 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
270 __attribute_noinline__.
272 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
273 * elf/dl-xstat64.c: New file.
274 * elf/dl-fxstat64.c: New file.
275 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
276 don't export __fxstat64 at multiple versions.
277 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
278 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
280 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
282 * locale/program/ld-collate.c (collate_finish): Assign a wide
283 char collation sequence value to multi character collating
284 elements, and avoid over writing by non-character elements.
286 2002-02-01 Ulrich Drepper <drepper@redhat.com>
288 * elf/Makefile (distribute): Add dl-procinfo.c.
289 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
290 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
292 2002-02-01 Jakub Jelinek <jakub@redhat.com>
294 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
296 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
298 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
299 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
300 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
301 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
302 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
303 _dl_fpu_control_set): Remove unused externs.
304 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
305 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
306 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
307 related variables in _rtld_global struct.
308 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
309 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
312 2002-02-01 Ulrich Drepper <drepper@redhat.com>
314 * sysdeps/generic/dl-procinfo.c: New file.
316 2002-02-01 Andreas Schwab <schwab@suse.de>
318 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
320 2002-02-01 Ulrich Drepper <drepper@redhat.com>
322 * elf/rtld.c (_dl_start): Mark as internal_function.
323 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
325 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
326 General pretty printing.
328 2002-01-31 Ulrich Drepper <drepper@redhat.com>
330 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
331 * elf/dl-reloc.c: Pretty printing.
332 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
333 procinfo-related variables in rtld_global struct.
334 * elf/dl-support.c: Likewise.
335 * elf/rtld.c: Likewise.
336 * sysdeps/i386/i686/Makefile: Likewise.
337 * sysdeps/i386/i686/hp-timing.c: Likewise.
338 * sysdeps/i386/i686/hp-timing.h: Likewise.
339 * sysdeps/ia64/Makefile: Likewise.
340 * sysdeps/ia64/hp-timing.c: Likewise.
341 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
342 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
343 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
344 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
345 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
346 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
347 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
348 * sysdeps/x86_64/Makefile: Likewise.
350 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
351 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
352 _dl_debug_fd to rtld_global.
353 * elf/Versions: Likewise.
354 * elf/dl-close.c: Likewise.
355 * elf/dl-iteratephdr.c: Likewise.
356 * elf/dl-lookup.c: Likewise.
357 * elf/dl-misc.c: Likewise.
358 * elf/dl-open.c: Likewise.
359 * elf/dl-support.c: Likewise.
360 * elf/do-lookup.h: Likewise.
361 * elf/rtld.c: Likewise.
362 * sysdeps/generic/dl-cache.c: Likewise.
363 * sysdeps/generic/dl-sysdep.c: Likewise.
364 * sysdeps/ia64/Versions: Likewise.
365 * sysdeps/unix/clock_gettime.c: Likewise.
366 * sysdeps/unix/clock_settime.c: Likewise.
367 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
368 * sysdeps/sparc/Versions: Removed.
369 * sysdeps/i386/i686/Versions : Removed.
370 * sysdeps/x86_64/Versions: Removed.
371 * configure.in: Define HAVE_PROTECTED if .protected is available.
372 * config.h.in: Add entry for HAVE_PROTECTED.
374 2002-01-31 Jakub Jelinek <jakub@redhat.com.
376 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
377 code in struct _rtld_global. Export this struct, remove all
378 exports for the signal variables.
379 * sysdeps/arm/dl-machine: Likewise.
380 * sysdeps/generic/dl-origin: Likewise.
381 * sysdeps/generic/dl-sysdep: Likewise.
382 * sysdeps/generic/dl-cache: Likewise.
383 * sysdeps/hppa/dl-fptr: Likewise.
384 * sysdeps/hppa/dl-machine: Likewise.
385 * sysdeps/cris/dl-machine: Likewise.
386 * sysdeps/i386/dl-machine: Likewise.
387 * sysdeps/ia64/dl-machine: Likewise.
388 * sysdeps/m68k/dl-machine: Likewise.
389 * sysdeps/mach/hurd/dl-sysdep: Likewise.
390 * sysdeps/mips/mips64/dl-machine: Likewise.
391 * sysdeps/mips/dl-machine: Likewise.
392 * sysdeps/powerpc/elf/libc-start: Likewise.
393 * sysdeps/powerpc/dl-machine: Likewise.
394 * sysdeps/powerpc/dl-start: Likewise.
395 * sysdeps/sparc/sparc32/dl-machine: Likewise.
396 * sysdeps/sparc/sparc64/dl-machine: Likewise.
397 * sysdeps/sh/dl-machine: Likewise.
398 * sysdeps/s390/s390-32/dl-machine: Likewise.
399 * sysdeps/s390/s390-64/dl-machine: Likewise.
400 * sysdeps/unix/sysv/aix/libc-start: Likewise.
401 * sysdeps/unix/sysv/aix/start-libc: Likewise.
402 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
403 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
404 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
405 * sysdeps/x86_64/dl-machine: Likewise.
407 2002-01-31 Ulrich Drepper <drepper@redhat.com>
409 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
412 2002-01-31 Andreas Schwab <schwab@suse.de>
414 * sysdeps/posix/readv.c: Check for ssize_t overflow.
416 2002-01-31 Andreas Schwab <schwab@suse.de>
418 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
419 reference to _dl_pagesize.
421 2002-01-30 Ulrich Drepper <drepper@redhat.com>
423 * Versions.def [ld]: Add GLIBC_2.3.
424 * elf/dl-addr.c: Move global variables for SHARED code in struct
425 _rtld_global. Export this struct, remove all exports for the
427 * elf/dl-close.c: Likewise.
428 * elf/dl-conflict.c: Likewise.
429 * elf/dl-debug.c: Likewise.
430 * elf/dl-deps.c: Likewise.
431 * elf/dl-dst.h: Likewise.
432 * elf/dl-error.c: Likewise.
433 * elf/dl-fini.c: Likewise.
434 * elf/dl-init.c: Likewise.
435 * elf/dl-iteratephdr.c: Likewise.
436 * elf/dl-libc.c: Likewise.
437 * elf/dl-load.c: Likewise.
438 * elf/dl-lookup.c: Likewise.
439 * elf/dl-minimal.c: Likewise.
440 * elf/dl-object.c: Likewise.
441 * elf/dl-open.c: Likewise.
442 * elf/dl-profile.c: Likewise.
443 * elf/dl-profstub.c: Likewise.
444 * elf/dl-reloc.c: Likewise.
445 * elf/dl-runtime.c: Likewise.
446 * elf/dl-support.c: Likewise.
447 * elf/dl-sym.c: Likewise.
448 * elf/dl-version.c: Likewise.
449 * elf/do-lookup.h: Likewise.
450 * elf/do-rel.h: Likewise.
451 * elf/dynamic-link.h: Likewise.
452 * elf/rtld.c: Likewise.
453 * sysdeps/generic/dl-cache.c: Likewise.
454 * sysdeps/generic/dl-sysdep.c: Likewise.
455 * sysdeps/generic/ldsodefs.h: Likewise.
456 * sysdeps/generic/libc-start.c: Likewise.
457 * sysdeps/i386/dl-machine.h: Likewise.
458 * sysdeps/ia64/dl-fptr.c: Likewise.
459 * sysdeps/ia64/dl-machine.h: Likewise.
460 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
461 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
462 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
463 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
464 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
465 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
466 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
467 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
469 2002-01-29 Ulrich Drepper <drepper@redhat.com>
471 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
473 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
475 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
477 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
479 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
481 2002-01-29 Ben Collins <bcollins@debian.org>
483 * string/bits/string2.h (__mempcpy): Protect size arg for
484 addition when using __builtin_memcpy.
486 2002-01-29 Ulrich Drepper <drepper@redhat.com>
488 * stdlib/Makefile (tests): Add tst-qsort.
489 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
491 * manual/signal.texi (Process Signal Mask): Document that
492 pthread_sigmask, not sigprocmask, must be used in MT programs.
493 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
495 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
497 * misc/Makefile (tests): Add tst-hsearch.
498 * misc/tst-hsearch.c: New file.
500 2002-01-18 Wolfram Gloger <wg@malloc.de>
502 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
503 * malloc/malloc.h: Likewise.
504 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
505 * malloc/arena.c: New file.
506 * malloc/hooks.c: New file.
507 * malloc/tst-mallocstate.c: New file.
508 * malloc/Makefile: Add new testcase tst-mallocstate.
509 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
511 2002-01-28 Ulrich Drepper <drepper@redhat.com>
513 * stdlib/msort.c: Remove last patch. The optimization violates the
514 same rule which qsort.c had problems with.
516 2002-01-27 Paul Eggert <eggert@twinsun.com>
518 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
519 to a pivot element that lies outside the array to be sorted, as
520 ISO C99 requires that the comparison function be called only with
521 addresses of array elements [PR libc/2880].
523 2002-01-28 Ulrich Drepper <drepper@redhat.com>
525 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
526 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
528 * timezone/asia: Update from tzdata2002b.
529 * timezone/australasia: Likewise.
530 * timezone/backward: Likewise.
531 * timezone/europe: Likewise.
532 * timezone/leapseconds: Likewise.
533 * timezone/iso3166.tab: Likewise.
534 * timezone/zone.tab: Likewise.
536 2002-01-23 Richard Henderson <rth@redhat.com>
538 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
540 2002-01-28 Ulrich Drepper <drepper@redhat.com>
542 * string/strxfrm.c: Allocate one more byte for rulearr and clear
543 this element [PR libc/2855].
545 * string/strcoll.c: Handle zero-length arguments specially
548 2002-01-23 Jakub Jelinek <jakub@redhat.com>
550 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
551 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
552 short lengths and constant src.
553 (strcpy): Don't optimize for gcc 3.0+.
554 (__stpcpy): For gcc 3.0+, don't use
555 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
556 for short string literal src.
558 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
560 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
563 2001-01-22 Paul Eggert <eggert@twinsun.com>
565 * manual/llio.texi (Linked Channels, Cleaning Streams):
566 Make it clearer that a just-opened input stream might need cleaning.
568 2002-01-21 H.J. Lu <hjl@gnu.org>
570 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
571 Don't use label at end of compound statement.
573 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
575 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
576 Remove test for negative integer arg; sin_pi does it correctly.
578 2002-01-20 Ulrich Drepper <drepper@redhat.com>
580 * nscd/Makefile (distribute): Filter out xmalloc.c.
582 2002-01-19 Ulrich Drepper <drepper@redhat.com>
584 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
585 Set offset if read end wasn't the buffer end.
586 (_IO_file_seekoff_mmap): New function.
587 (_IO_file_xsgetn_mmap): New function.
588 (_IO_file_jumps_mmap): Use the two new functions.
589 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
591 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
592 _IO_file_underflow_mmap.
593 * libio/iofopen.c: Don't position file descriptor at end of file.
594 * libio/tst-widetext.c: Improve error messages.
595 * stdio-common/tst-rndseek.c: Likewise.
597 2002-01-18 Ulrich Drepper <drepper@redhat.com>
599 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
600 end of enum for !_GNU_SOURCE.
601 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
602 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
603 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
604 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
605 values unless _GNU_SOURCE.
607 * iconvdata/tcvn5712-1.c: Minor cleanups.
609 2002-01-18 Andreas Schwab <schwab@suse.de>
611 * sysdeps/unix/sysv/linux/configure.in
612 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
614 2002-01-16 Roger Sayle <roger@eyesopen.com>
616 * stdlib/msort.c (msort_with_tmp): Replace implementation with
617 more efficient "Towers of Hanoi" mergesort.
618 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
619 for generic, sizeof(int) and sizeof(long) variants respectively.
621 2002-01-17 Ulrich Drepper <drepper@redhat.com>
623 * manual/syslog.texi (openlog): Describe possible problems with
625 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
627 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
628 * nscd/connections.c (begin_drop_privileges): New function.
629 (finish_drop_privileges): New function.
630 (nscd_init): Call the new functions which also install all groups
632 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
633 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
635 2002-01-17 H.J. Lu <hjl@gnu.org>
637 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
640 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
642 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
643 instructions for pointer operations.
644 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
646 2002-01-17 Andreas Jaeger <aj@suse.de>
648 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
649 __uint128_t build-in.
651 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
652 PowerPC, sync with 2.2 branch.
654 2002-01-16 Ulrich Drepper <drepper@redhat.com>
656 * posix/getconf.c: Update copyright year.
657 * nss/getent.c: Likewise.
658 * nscd/nscd_nischeck.c: Likewise.
659 * iconv/iconvconfig.c: Likewise.
660 * iconv/iconv_prog.c: Likewise.
661 * elf/ldconfig.c: Likewise.
662 * catgets/gencat.c: Likewise.
663 * csu/version.c: Likewise.
664 * elf/ldd.bash.in: Likewise.
665 * elf/sprof.c (print_version): Likewise.
666 * locale/programs/locale.c: Likewise.
667 * locale/programs/localedef.c: Likewise.
668 * nscd/nscd.c (print_version): Likewise.
669 * debug/xtrace.sh: Likewise.
670 * malloc/memusage.sh: Likewise.
671 * malloc/mtrace.pl: Likewise.
673 2002-01-16 Andreas Schwab <schwab@suse.de>
675 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
676 reliably remove "-ia64" from rtld name.
678 2002-01-16 Ulrich Drepper <drepper@redhat.com>
680 * iconvdata/gb18030.c: Bug fixes and support for more characters.
681 Patch by Yu Shao <yshao@redhat.com>.
683 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
685 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
686 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
687 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
689 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
691 * sysdeps/s390/fpu/libm-test-ulps: Update.
693 2002-01-11 Ulrich Drepper <drepper@redhat.com>
695 * elf/elf.h: Update x86 relocations.
697 2002-01-10 Ulrich Drepper <drepper@redhat.com>
699 * locale/programs/charmap.c (new_width): Check whether byte
700 sequences for both ends of range have the same length.
702 2002-01-09 Jakub Jelinek <jakub@redhat.com>
704 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
706 2002-01-09 Jakub Jelinek <jakub@redhat.com>
708 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
710 (__full_ieee754_sqrt): Add __attribute_used__.
712 2002-01-10 Ulrich Drepper <drepper@redhat.com>
714 * sysdeps/generic/group_member.c (__group_member): Also check
715 groups[0] [PR libc/2781].
717 2002-01-08 Ulrich Drepper <drepper@redhat.com>
719 * Makefile (distribute): Add scripts/cpp.
720 * elf/Makefile (distribute): Add reldep6mod[01234].c,
721 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
722 unwind-dw2-fde.h, and dwarf2.h.
723 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
724 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
725 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
726 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
728 2002-01-07 Roland McGrath <roland@frob.com>
730 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
731 volatile on type of ARGC so the compiler doesn't get clever.
733 2002-01-07 Andreas Jaeger <aj@suse.de>
735 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
736 * sysdeps/i386/bits/byteswap.h: Likewise.
737 * sysdeps/ia64/bits/byteswap.h: Likewise.
738 * sysdeps/m68k/bits/byteswap.h: Likewise.
739 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
740 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
742 2002-01-02 Bruno Haible <bruno@clisp.org>
744 * intl/plural.y: Fix %expect count.
746 2002-01-03 Jakub Jelinek <jakub@redhat.com>
748 * elf/Makefile (routines, shared-only-routines): Add
749 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
750 * elf/elf.h (PT_GNU_EH_FRAME): Define.
751 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
752 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
753 Optimize if .eh_frame section contains no FDEs.
754 (__register_frame, __deregister_frame_info_bases,
755 __deregister_frame): Likewise.
756 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
757 DW_CFA_restore handling.
759 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
761 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
763 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
764 for x < 0.25 and restore original range reduction method.
765 (__ieee754_lgammal_r): Make sure signgam is set before returning.
767 2002-01-07 Ulrich Drepper <drepper@redhat.com>
769 * libio/fileops.c (_IO_file_underflow_mmap): New function.
770 (_IO_file_close_mmap): New function.
771 (_IO_file_jumps_mmap): New variable.
772 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
773 trying to convert rest of byte buffer.
774 (_IO_wfile_underflow_mmap): New function.
775 (_IO_wfile_jumps_mmap): New variable.
776 * libio/iofopen.c (__fopen_maybe_mmap): New function.
777 (__fopen_internal): New function. Split out from _IO_new_fopen.
778 (_IO_new_fopen): Call __fopen_internal.
779 * libio/iofopen64.c: Just call __fopen_internal.
780 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
782 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
783 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
786 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
787 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
789 * stdio-common/Makefile (tests): Add tst-rndseek.
790 * stdio-common/tst-rndseek.c: New file.
792 2002-01-05 Roland McGrath <roland@frob.com>
794 * config.h.in (HAVE_MIG_RETCODE): New #undef.
795 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
796 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
797 * sysdeps/mach/hurd/configure: Regenerated.
799 2002-01-03 Ulrich Drepper <drepper@redhat.com>
801 * elf/elf.h: Add more TLS definitions.
803 2002-01-02 Ulrich Drepper <drepper@redhat.com>
805 * include/features.h (__GLIBC_MINOR__): Bump to 3.
807 2002-01-02 Roland McGrath <roland@frob.com>
809 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
810 __sigisemptyset. Don't use MASK uninitialized.
812 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
813 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
814 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
815 __sigdelset, __sigaddset, __sigorset.
817 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
818 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
820 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
823 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
824 for old CMU and new OSF Mach interface flavors.
825 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
826 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
828 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
830 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
831 Pass extra arguments to task_create for OSF variant.
832 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
834 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
835 conditional on [HAVE_AUX_VECTOR].
837 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
838 mach_msg_timeout_t as type of final argument.
840 * hurd/privports.c (__get_privileged_ports):
841 Change host_priv_t to mach_port_t in argument type.
842 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
845 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
846 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
847 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
848 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
849 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
850 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
852 2002-01-01 Roland McGrath <roland@frob.com>
854 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
856 2002-01-01 Ulrich Drepper <drepper@redhat.com>
858 * include/stdlib.h: Define inlines for the _l variants of the strto*
861 2002-01-01 Roland McGrath <roland@frob.com>
863 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
865 * mach/Machrules (MIG): Set CPP as well as CC.
867 2001-12-31 Ulrich Drepper <drepper@redhat.com>
869 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
870 locale to parse /proc/loadavg [PR libc/2760].
872 2001-12-31 Jakub Jelinek <jakub@redhat.com>
874 * elf/dl-conflict.c: Include sys/param.h.
875 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
876 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
878 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
879 literals to avoid warnings.
881 2001-12-31 Andreas Jaeger <aj@suse.de>
883 * configure.in: Don't check for gsed since we do not use it anywhere.
885 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
887 * io/fts.c: Update from BSD to fix memory leaks.
889 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
891 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
892 * elf/chroot_canon.c: Likewise.
893 * elf/dl-object.c: Likewise.
894 * iconv/iconv_charmap.c: Likewise.
895 * iconv/iconv_prog.c: Likewise.
896 * libio/iogetdelim.c: Likewise.
897 * locale/lc-time.c: Likewise.
898 * stdlib/canonicalize.c: Likewise.
899 * sunrpc/svc.c: Likewise.
900 * sysdeps/generic/glob.c: Likewise.
902 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
904 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
905 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
906 remove high order bit from the program counter.
907 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
909 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
911 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
912 unnecessary code and add missing reloc types.
913 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
914 case for reloc type R_390_NONE.
916 2001-12-28 Andreas Jaeger <aj@suse.de>
918 * io/bug-ftw3.c: Include string.h for prototypes.
920 * crypt/md5test.c (main): Remove unused variable.
922 * dlfcn/modstatic.c: Add prototype to avoid warning.
924 2001-12-26 Roland McGrath <roland@frob.com>
926 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
927 check only (SS->pending & MASK) for the signal to return.
928 From Jeroen Dekkers <jeroen@dekkers.cx>.
930 2001-12-22 Roland McGrath <roland@frob.com>
932 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
933 Use preprocessor #if conditionals instead of `if' to avoid
934 warnings about divide by zero in dead code.
936 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
937 _hurd_port_init, and __hurd_self_sigstate.
939 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
941 2001-12-21 Andreas Jaeger <aj@suse.de>
943 * elf/dblloadmod1.c: Add prototype to avoid warning.
944 * elf/dblloadmod2.c: Likewise.
945 * elf/dblloadmod3.c: Likewise.
946 * elf/reldepmod5.c: Likewise.
947 * elf/reldepmod6.c: Likewise.
949 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
950 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
951 used on all architectures.
953 * sunrpc/svc_tcp.c: Add noreturn attribute for
954 svctcp_rendezvous_abort.
955 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
957 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
960 2001-12-19 Jakub Jelinek <jakub@redhat.com>
962 * manual/llio.texi (aio_fsync): Fix a typo.
963 Patch by Tammy Fox <tfox@redhat.com>.
965 2001-12-18 Jakub Jelinek <jakub@redhat.com>
967 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
968 stack bias from child stack pointer before passing it to clone syscall.
970 2001-12-18 Ulrich Drepper <drepper@redhat.com>
972 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
974 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
975 Reported by Thorsten Kukuk <kukuk@suse.de>.
977 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
980 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
982 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
984 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
985 conforming: return EBADF if file descriptor is invalid and EINVAL
986 if file descriptor is no valid tty.
987 * login/tst-grantpt.c: New file.
988 * login/Makefile (tests): Add tst-grantpt.
990 2001-12-17 Ulrich Drepper <drepper@redhat.com>
992 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
993 different than implemented in last patch.
994 * io/bug-ftw3.c: Adjust test for changed handling of
995 inaccessibility of toplevel dir.
997 2001-12-16 Roland McGrath <roland@frob.com>
999 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
1000 * grp/initgroups.c (internal_getgrouplist): Likewise.
1002 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
1003 `default:' to silence new GCC warning.
1004 Rewrite cast of lvalue to silence new GCC warning.
1006 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
1008 * sysdeps/mach/hurd/spawni.c: New file, by me with a
1009 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
1011 2001-12-14 Ulrich Drepper <drepper@redhat.com>
1013 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
1014 Patch by Stephen R. van den Berg.
1016 * crypt/md5.h: Define md5_uintptr.
1018 2001-12-13 Ulrich Drepper <drepper@redhat.com>
1020 * libio/tst_swprintf.c (main): Add test for string argument with
1022 * stdio-common/Makefile (tests): Add tst-sprintf.
1023 * stdio-common/tst-sprintf.c: New file.
1025 2001-12-13 Andreas Schwab <schwab@suse.de>
1027 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
1028 zero precision with wide character string format.
1030 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
1032 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
1033 but have a user supplied buffer, return the empty buffer, not NULL.
1035 2001-12-13 Ulrich Drepper <drepper@redhat.com>
1037 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
1038 Patch by Eric Sharkey <sharkey@netrics.com>.
1040 * crypt/md5test.c (main): Add test for multiple calls to
1041 __md5_process_bytes to itererate over input string.
1043 2001-12-12 Ulrich Drepper <drepper@redhat.com>
1045 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
1046 from __nis_findfastest. Take timeout value from parameter.
1047 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
1048 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
1049 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
1051 2001-12-12 Andreas Jaeger <aj@suse.de>
1053 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
1054 combreloc test so that it works in this case.
1056 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
1058 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
1060 * sysdeps/sh/Makefile: New file.
1061 * sysdeps/sh/_mcount.S: New file.
1062 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
1063 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
1065 2001-12-11 Ulrich Drepper <drepper@redhat.com>
1067 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
1068 limitation [PR libc/2564].
1070 2001-12-11 Jakub Jelinek <jakub@redhat.com>
1072 * elf/Makefile (dl-routines): Add conflict.
1073 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
1074 (ld.so): Add _begin local symbol.
1075 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
1077 * elf/dl-deps.c (_dl_build_local_scope): New.
1078 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
1080 * elf/do-rel.h (VALIDX): Define.
1081 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
1082 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
1084 * elf/dl-conflict.c: New file.
1085 * elf/dl-lookup.c (_dl_debug_bindings): New.
1086 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
1088 (_dl_lookup_symbol_skip): Likewise.
1089 (_dl_lookup_versioned_symbol): Likewise.
1090 (_dl_lookup_versioned_symbol_skip): Likewise.
1091 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
1092 define to ElfW(Rel).
1093 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
1094 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
1096 Don't adjust address dynamic tags if l_addr is 0.
1097 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
1098 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
1099 (VALIDX, ADDRIDX): Define.
1100 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
1101 (dl_main): Print library list for LD_TRACE_PRELINKING.
1102 If prelinking information can be used, skip relocating libraries and
1103 call _dl_resolve_conflicts instead.
1104 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
1105 * elf/dl-load.c (_dl_map_object): Don't create fake libs
1106 if LD_TRACE_PRELINKING.
1107 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
1109 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
1110 (DL_DEBUG_PRELINK): Define.
1111 (_dl_resolve_conflicts): Add prototype.
1113 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
1114 .plt for prelinked libraries where prelinking info cannot be used.
1115 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
1116 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
1117 * sysdeps/arm/bits/link.h: New file.
1118 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
1120 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1121 (ELF_MACHINE_PLT_REL): Define.
1122 (elf_machine_rela, elf_machine_rela_relative): New.
1123 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
1124 of adjusting it if prelinked and prelinking cannot be used.
1125 * sysdeps/i386/bits/link.h: New file.
1126 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
1128 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1129 (ELF_MACHINE_PLT_REL): Define.
1130 (elf_machine_rela, elf_machine_rela_relative): New.
1131 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
1132 of adjusting it if prelinked and prelinking cannot be used.
1133 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
1134 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
1135 to find out map for R_PPC_JMP_SLOT relocs.
1136 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
1137 (OPCODE_BA): Define.
1138 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1139 libraries where prelinking info cannot be used.
1140 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
1141 (elf_machine_fixup_plt): Call sparc_fixup_plt.
1142 (elf_machine_rela): Set value to 0 if relocating conflicts.
1143 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
1144 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
1145 (sparc64_fixup_plt): Fix a typo.
1146 (elf_machine_rela): Set value to 0 if relocating conflicts.
1147 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
1148 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1149 libraries where prelinking info cannot be used.
1150 * sysdeps/sh/bits/link.h: New file.
1151 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
1153 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
1154 of adjusting it if prelinked and prelinking cannot be used.
1155 * sysdeps/s390/s390-32/bits/link.h: New file.
1156 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
1157 Save original content of .got[1].
1158 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1159 of adjusting it if prelinked and prelinking cannot be used.
1160 * sysdeps/s390/s390-64/bits/link.h: New file.
1161 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
1162 Save original content of .got[1].
1163 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1164 of adjusting it if prelinked and prelinking cannot be used.
1165 * sysdeps/x86_64/bits/link.h: New file.
1166 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1167 Save original content of .got[1].
1168 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
1169 of adjusting it if prelinked and prelinking cannot be used.
1171 2001-12-11 Ulrich Drepper <drepper@redhat.com>
1173 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
1174 where appropriate instead of numbers. Little optimizations.
1176 2001-12-10 Roland McGrath <roland@frob.com>
1178 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
1181 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
1182 set to GLIBC_2.2.5, not GLIBC_2.2.4.
1184 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
1185 Fix conditionals so this is set by default for stdio and not for libio.
1186 * sysdeps/mach/hurd/configure: Regenerated.
1188 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
1190 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
1192 2001-12-10 Ulrich Drepper <drepper@redhat.com>
1194 * io/Makefile (tests): Add bug-ftw3.
1195 * io/bug-ftw3.c: New file.
1197 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
1198 matches and GLOB_NOCHECK is set.
1199 * posix/globtest.sh: Correct expected result for NOCHECK test.
1201 * po/ca.po: Update from translation team.
1203 2001-12-09 Ulrich Drepper <drepper@redhat.com>
1205 Implement transliteration of characters in strings of the locale
1207 * locale/programs/linereader.c: Adjust for additional parameter to
1209 (get_string): If character <Uxxxx> is not found try to transliterate
1211 * locale/programs/ld-ctype.c: Adjust for additional parameter to
1212 lr_token. Add const to charmap parameter of all functions.
1213 (find_translit, find_translit2): New functions.
1214 * locale/programs/charmap.c: Adjust for additional parameter to
1216 * locale/programs/repertoire.c: Likewise.
1217 * locale/programs/linereader.h: Likewise.
1218 * locale/programs/ld-address.c: Likewise. Add const to charmap
1219 parameter of all functions.
1220 * locale/programs/ld-collate.c: Likewise.
1221 * locale/programs/ld-identification.c: Likewise.
1222 * locale/programs/ld-measurement.c: Likewise.
1223 * locale/programs/ld-messages.c: Likewise.
1224 * locale/programs/ld-monetary.c: Likewise.
1225 * locale/programs/ld-name.c: Likewise.
1226 * locale/programs/ld-numeric.c: Likewise.
1227 * locale/programs/ld-paper.c: Likewise.
1228 * locale/programs/ld-paper.c: Likewise.
1229 * locale/programs/ld-telephone.c: Likewise.
1230 * locale/programs/ld-time.c: Likewise.
1231 * locale/programs/locfile.c: Likewise.
1232 * locale/programs/localedef.c: Likewise.
1233 * locale/programs/localedef.h: Likewise.
1234 * locale/programs/locfile.h: Likewise. Add declaration for
1236 * locale/programs/simple-hash.c: Add const to first parameter of
1237 find_entry, iterate_table, and lookup.
1238 * locale/programs/simple-hash.h: Likewise.
1239 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
1241 * include/locale.h: Define __LC_LAST.
1242 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
1244 2001-12-07 Geoff Keating <geoffk@redhat.com>
1246 * sysdeps/powerpc/Dist: Update for recent FP changes.
1247 * sysdeps/powerpc/fpu/Dist: Likewise.
1249 2001-12-07 Andreas Schwab <schwab@suse.de>
1251 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
1253 2001-12-06 Geoff Keating <geoffk@redhat.com>
1255 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
1256 save/restore functions here.
1257 (libm-support): Don't define these functions here.
1258 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
1260 * sysdeps/powerpc/fe_nomask.c: Move to...
1261 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
1262 * sysdeps/powerpc/fprrest.S: Move to...
1263 * sysdeps/powerpc/fpu/fprrest.S: ... here.
1264 * sysdeps/powerpc/fprsave.S: Move to...
1265 * sysdeps/powerpc/fpu/fprsave.S: ... here.
1267 2001-12-06 Ulrich Drepper <drepper@redhat.com>
1269 * sysdeps/unix/sysv/linux/opensock.c: New file.
1271 2001-12-06 Geoff Keating <geoffk@redhat.com>
1273 * config.make.in (with-fp): Define from configure.
1274 * configure.in: Substitute with_fp.
1275 * configure: Regenerate.
1276 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
1277 specified, and don't change FPU environment.
1279 2001-12-06 Ulrich Drepper <drepper@redhat.com>
1281 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
1282 * assert/assert.c: Check result of __asprintf call and don't use
1283 string if it failed.
1284 * assert/assert-perr.c: Likewise.
1285 * inet/rcmd.c: Likewise.
1286 * locale/programs/localedef.c (main): Check result of
1287 construct_output_path and exit if it failed.
1288 (construct_output_path): Check result of asprintf and mkdir calls and
1289 fail if they failed.
1290 * posix/getopt.c: Check result of __asprintf calls and fail if
1292 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
1294 2001-12-05 Ulrich Drepper <drepper@redhat.com>
1296 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
1298 * sysdeps/generic/strncase.c: Likewise.
1299 * string/tester.c: Add tests for strcasecmp and strncasecmp.
1301 2001-12-05 Geoff Keating <geoffk@redhat.com>
1303 * scripts/cpp: Test the exit status from 'type', not 'awk'.
1305 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
1306 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
1307 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
1308 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
1309 * sysdeps/powerpc/fclrexcpt.c: Move to...
1310 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
1311 * sysdeps/powerpc/fpu_control.h: Move to...
1312 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
1314 2001-12-05 Ulrich Drepper <drepper@redhat.com>
1316 * iconvdata/ibm1129.h: Remove duplicate mappings.
1317 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
1318 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
1319 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1321 * timezone/zic.c: Fix handling of turnaround times.
1322 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
1324 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
1326 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
1329 2001-12-05 Ulrich Drepper <drepper@redhat.com>
1331 * posix/regex.c: For use outside glibc defined bounded pointer
1332 macros here. Patch by Jim Meyering <jim@meyering.net>.
1334 * iconvdata/Makefile (modules): Add TCVN5712-1.
1335 * iconvdata/TESTS: Add TCVN5712-1.
1336 * iconvdata/gconv-modules: Likewise.
1337 * iconvdata/tcvn5712-1.c: New file.
1338 * iconvdata/testdata/TCVN-5712: New file.
1339 * iconvdata/testdata/TCVN-5712..UTF8: New file.
1341 2001-12-04 Ulrich Drepper <drepper@redhat.com>
1343 * iconvdata/cp1258.c: Optimize conversion from UCS4.
1345 2001-12-02 Roland McGrath <roland@frob.com>
1347 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1349 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1350 Reported by Jeff Bailey <jbailey@nisa.net>.
1352 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1353 Reported by Jeff Bailey <jbailey@nisa.net>.
1355 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
1356 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
1357 Reported by Jeff Bailey <jbailey@nisa.net>.
1359 2001-12-01 Roland McGrath <roland@frob.com>
1361 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
1362 missing backslash in test arguments.
1363 * sysdeps/mach/hurd/configure: Regenerated.
1365 2001-11-26 Roland McGrath <roland@frob.com>
1367 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1368 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1370 2001-11-30 Ulrich Drepper <drepper@redhat.com>
1372 * iconvdata/Makefile (modules): Add ARMSCII-8.
1373 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1374 * iconvdata/armscii-8.c: New file.
1376 2001-11-29 Jakub Jelinek <jakub@redhat.com>
1378 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
1379 don't match, fix {{a,b},c} globbing, clean up.
1380 Patch by Flavio Veloso <flaviovs@magnux.com>.
1381 * posix/globtest.sh: Add new tests.
1383 2001-11-29 Andreas Jaeger <aj@suse.de>
1385 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1386 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1388 * sysdeps/generic/abort.c: Include libioP.h for
1389 _IO_flush_all_lockp prototype.
1391 2001-11-29 Ulrich Drepper <drepper@redhat.com>
1393 * posix/regex.h: Define __restrict_arr correctly.
1395 2001-11-28 Ulrich Drepper <drepper@redhat.com>
1397 * iconvdata/ibm1163.c: New file.
1398 * iconvdata/ibm1163.h: New file.
1399 * iconvdata/ibm1164.c: New file.
1400 * iconvdata/ibm1164.h: New file.
1401 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
1402 * iconvdata/Makefile: Likewise.
1403 * iconvdata/testdata/IBM1163: New file.
1404 * iconvdata/testdata/IBM1163..UTF8: New file.
1405 * iconvdata/testdata/IBM1164: New file.
1406 * iconvdata/testdata/IBM1164..UTF8: New file.
1407 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1409 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
1410 * iconvdata/ibm1124.h: Likewise.
1411 * iconvdata/ibm1132.h: Likewise.
1412 * iconvdata/ibm1133.h: Likewise.
1413 * iconvdata/ibm1160.h: Likewise.
1414 * iconvdata/ibm1161.h: Likewise.
1415 * iconvdata/ibm1162.h: Likewise.
1416 * iconvdata/ibm856.h: Likewise.
1417 * iconvdata/ibm922.h: Likewise.
1418 * iconvdata/ibm930.h: Likewise.
1419 * iconvdata/ibm932.h: Likewise.
1420 * iconvdata/ibm933.h: Likewise.
1421 * iconvdata/ibm935.h: Likewise.
1422 * iconvdata/ibm937.h: Likewise.
1423 * iconvdata/ibm939.h: Likewise.
1424 * iconvdata/ibm943.h: Likewise.
1425 * iconvdata/ibm930.c: Pretty printing.
1426 * iconvdata/ibm937.c: Avoid access accross array boundary.
1428 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
1429 the current locale's codeset.
1430 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
1432 * iconv/iconv_prog.c: Pass empty strings as default value for to-
1433 and from-charset. Don't determine locale's charset here.
1435 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
1436 as the old _IO_flush_all but lock only if parameter is nonzero.
1437 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
1438 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
1439 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
1440 if libio is used [PR libc/2575].
1442 2001-11-28 Jakub Jelinek <jakub@redhat.com>
1444 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1445 __signbitl): Only define for ISO C99.
1447 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
1449 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
1450 herrnop to NETDB_INTERNAL if we run out of buffer space.
1452 2001-11-28 Ulrich Drepper <drepper@redhat.com>
1454 * nss/nss_files/files-XXX.c (internal_getent): Correct input
1455 overflow test for platforms with signed char.
1456 Reported by Andrew Haley <aph@cambridge.redhat.com>.
1458 2001-11-28 Bruno Haible <bruno@clisp.org>
1460 * locale/programs/simple-hash.c (lookup_2): Remove function.
1461 (insert_entry_2): Call lookup instead of lookup_2.
1463 2001-03-04 Bruno Haible <bruno@clisp.org>
1465 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1467 2001-10-31 Bruno Haible <bruno@clisp.org>
1469 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1471 2001-03-21 Bruno Haible <bruno@clisp.org>
1473 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
1474 chokes on empty macro arguments.
1475 * intl/plural.y: Add #pragma for alloca on AIX 3.
1477 2001-11-27 Ulrich Drepper <drepper@redhat.com>
1479 * intl/dcigettext.c (guess_category_value): Only implement for
1480 glibc. Otherwise rely on function _nl_locale_name which isn't
1481 present in the glibc sources.
1483 2001-09-24 Bruno Haible <bruno@clisp.org>
1485 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1486 transliteration when building on a glibc system but outside glibc.
1488 2001-09-22 Bruno Haible <bruno@clisp.org>
1490 * intl/plural-eval.c: New file, extracted from dcigettext.c.
1491 * intl/dcigettext.c (plural_eval): Remove function, moved to
1493 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1494 Include plural-eval.c.
1496 2001-09-22 Bruno Haible <bruno@clisp.org>
1498 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1499 don't start with a digit; nplurals must be positive.
1501 2001-09-02 Bruno Haible <bruno@clisp.org>
1503 * intl/plural-exp.h: New file, extracted from gettextP.h.
1504 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1505 * intl/gettextP.h (struct expression, struct parse_args,
1506 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
1507 * intl/loadmsgcat.c: Include plural-exp.h.
1508 (PLURAL_PARSE): Move macro to plural-exp.h.
1509 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
1511 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
1512 EXTRACT_PLURAL_EXPRESSION.
1513 (_nl_unload_domain): Update.
1514 * intl/dcigettext.c: Include plural-exp.h.
1515 * intl/plural.y: Include plural-exp.h, not gettextP.h.
1516 (FREE_EXPRESSION): Move macro to plural-exp.h.
1517 * intl/Makefile (routines): Add plural-exp.
1518 (distribute): Add plural-exp.h.
1520 2001-07-28 Bruno Haible <bruno@clisp.org>
1522 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
1523 isdigit, tolower argument to 'unsigned char'.
1524 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
1526 * intl/localealias.c (read_alias_file): Cast isspace argument to
1529 2001-10-20 Bruno Haible <bruno@clisp.org>
1531 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
1533 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
1534 with the variable 'index' in plural_lookup.
1535 * intl/l10nflist.c (strchr): Likewise.
1536 * intl/localealias.c (strchr): Likewise.
1538 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
1539 * intl/bindtextdom.c: Likewise.
1540 * intl/dcigettext.c: Likewise.
1541 * intl/dgettext.c: Likewise.
1542 * intl/dngettext.c: Likewise.
1543 * intl/explodename.c: Likewise.
1544 * intl/finddomain.c: Likewise.
1545 * intl/gettext.c: Likewise.
1546 * intl/l10nflist.c: Likewise.
1547 * intl/loadmsgcat.c: Likewise.
1548 * intl/localealias.c: Likewise.
1549 * intl/ngettext.c: Likewise.
1550 * intl/textdomain.c: Likewise.
1551 * intl/gettext.h: Assume <limits.h> exists.
1553 2001-11-27 Ulrich Drepper <drepper@redhat.com>
1555 * stdio-common/Makefile (tests): Add scanf11.
1556 * stdio-common/scanf11.c: New file.
1558 2001-11-26 Ulrich Drepper <drepper@redhat.com>
1560 * version.h (RELEASE): Define as development.
1561 (VERSION): Set to 2.2.90.
1563 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
1565 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
1566 * nis/nss_nis/nis-grp.c: Likewise.
1567 * nis/nss_nisplus/nisplus-grp.c: Likewise.
1569 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
1570 * nis/nss_nis/nis-pwd.c: Likewise.
1571 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1573 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
1574 * nis/nss_nisplus/nisplus-parser.c: Likewise.
1575 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1577 * nscd/grpcache.c: Use strtoul instead of atol.
1578 * nscd/pwdcache.c: Likewise.
1579 * nss/getent.c: Likewise.
1581 2001-11-27 Paul Eggert <eggert@twinsun.com>
1583 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1584 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1586 2001-11-19 Bruno Haible <bruno@clisp.org>
1588 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
1590 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
1591 improves the quality of the hash function, especially for short
1594 2001-11-26 Ulrich Drepper <drepper@redhat.com>
1596 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
1597 are found call conv_error and not input_error [PR libc/2669].
1599 * math/bits/mathcalls.h: Mark ceil and floor as const.
1600 Reported by David Mosberger.
1602 2001-11-21 Jim Meyering <meyering@lucent.com>
1604 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
1605 Define to be __-prefixed.
1606 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
1608 2001-11-26 Andreas Jaeger <aj@suse.de>
1610 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
1613 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
1615 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
1618 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
1619 unused variables. Fix threshold for returning 1.0.
1621 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
1624 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
1625 remove unused variables.
1627 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
1629 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
1630 include local math header files.
1632 2001-11-22 Andreas Jaeger <aj@suse.de>
1634 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
1637 2001-11-21 Andreas Jaeger <aj@suse.de>
1639 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
1641 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
1644 2001-11-15 Andreas Jaeger <aj@suse.de>
1646 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
1647 compilers that support it.
1649 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
1650 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1651 * stdlib/stdlib.h: Likewise.
1653 2001-11-17 Ulrich Drepper <drepper@redhat.com>
1655 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
1656 statement with gotos.
1657 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
1659 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
1661 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
1663 2001-11-15 Ulrich Drepper <drepper@redhat.com>
1665 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
1667 2001-10-02 Jakub Jelinek <jakub@redhat.com>
1668 H.J. Lu <hjl@gnu.org>
1670 * Versions.def (libc): Add GCC_3.0.
1671 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
1672 if gcc supports this flag.
1673 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
1674 (gcc3): Allow glibc to be compiled with gcc 3.x.
1675 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
1676 * config.make.in (static-libgcc, unwind-find-fde): Add.
1677 * Makerules (build-shlib-helper, build-module-helper): Use it.
1678 * scripts/versions.awk: Make sure GLIBC_ versions come first.
1679 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
1681 (_fini): Call __deregister_frame_info_bases if
1682 __register_frame_info_bases was used to register.
1683 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
1685 (__register_frame_info_bases, __register_frame_info_table_bases,
1686 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
1687 * elf/Makefile (routines): Add unwind-dw2-fde.
1688 (shared-only-routines): Add unwind-dw2-fde.
1689 * sysdeps/alpha/gccframe.h: New file.
1690 * sysdeps/arm/gccframe.h: New file.
1691 * sysdeps/generic/framestate.c: New file.
1692 * sysdeps/generic/dwarf2.h: New file.
1693 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
1694 * sysdeps/generic/unwind-dw2-fde.c: New file.
1695 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
1696 * sysdeps/generic/unwind-dw2-fde.h: New file.
1697 * sysdeps/generic/unwind-dw2.c: New file.
1698 * sysdeps/generic/unwind-pe.h: New file.
1699 * sysdeps/generic/unwind.h: New file.
1700 * sysdeps/hppa/gccframe.h: New file.
1701 * sysdeps/i386/gccframe.h: New file.
1702 * sysdeps/m68k/gccframe.h: New file.
1703 * sysdeps/mips/gccframe.h: New file.
1704 * sysdeps/powerpc/gccframe.h: New file.
1705 * sysdeps/s390/gccframe.h: New file.
1706 * sysdeps/sh/gccframe.h: New file.
1707 * sysdeps/sparc/gccframe.h: New file.
1708 * sysdeps/vax/gccframe.h: New file.
1709 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1710 Set on all architectures except ia64.
1711 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
1713 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
1714 __deregister_frame_info): Move to elf/Versions.
1715 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
1716 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1717 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1718 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
1719 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1720 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1721 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1722 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1723 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1724 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
1725 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
1726 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
1727 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1728 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1729 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
1730 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
1731 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1732 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
1734 2001-11-15 Jeff Law <law@redhat.com>
1736 * posix/regex.c (uintptr_t): Do not provide a definition if the
1737 system provided one.
1739 2001-11-13 Roland McGrath <roland@frob.com>
1741 * stdio-common/tmpfile.c: Moved to ...
1742 * sysdeps/generic/tmpfile.c: ... here.
1743 * sysdeps/mach/hurd/tmpfile.c: New file.
1745 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
1746 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
1747 (fopenport): Define as weak alias.
1749 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
1750 * libio/libioP.h: ... to here.
1752 2001-11-12 Ulrich Drepper <drepper@redhat.com>
1754 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
1755 program header twice. Construct list with the needed information.
1757 2001-11-10 Ulrich Drepper <drepper@redhat.com>
1759 * po/ca.po: Update from translation team.
1761 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
1762 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
1763 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
1764 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1766 2001-11-10 Andreas Jaeger <aj@suse.de>
1768 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
1769 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1770 Contributed by Stephen L Moshier <moshier@mediaone.net>.
1772 2001-11-09 Ulrich Drepper <drepper@redhat.com>
1774 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
1776 * elf/dl-load.c (is_dst): New function.
1777 (_dl_dst_count): Use is_dst to check for DST variable.
1778 (_dl_dst_substitute): Likewise.
1780 2001-11-09 Roland McGrath <roland@frob.com>
1782 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
1783 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
1784 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
1785 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
1786 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
1787 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
1788 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
1789 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
1790 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
1791 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
1792 * sysdeps/mach/hurd/powerpc/Dist: New file.
1794 * hurd/privports.c (__get_privileged_ports):
1795 Only contact the proc server if necessary for this call.
1796 Suggested by Neal H Walfield <neal@cs.uml.edu>.
1797 Check error return for mach_port_mod_refs.
1799 2001-11-09 Andreas Schwab <schwab@suse.de>
1801 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
1803 2001-11-09 Ulrich Drepper <drepper@redhat.com>
1805 * elf/dl-load.c (lose): Remove some unnecessary code. The new
1806 object is always the last in the list.
1807 (_dl_map_object_from_fd): Delete code to remove from object list
1808 when DF_1_NOOPEN is seen. This is done in lose.
1810 2001-11-08 Ulrich Drepper <drepper@redhat.com>
1812 * elf/dl-object.c (_dl_new_object): Various small optimizations.
1814 2001-11-07 Ulrich Drepper <drepper@redhat.com>
1816 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
1817 HWCAP_CHECK macro code.
1819 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
1820 Now returns MAP_FAILED on error.
1821 * elf/rtld.c: Adjust caller.
1822 * sysdeps/generic/dl-cache.c: Likewise.
1823 * sysdeps/generic/ldsodefs.h: Adjust description.
1825 * elf/dl-version.c (match_symbol): Optimize error handling for size.
1826 (_dl_check_map_versions): Likewise.
1828 2001-11-06 Ulrich Drepper <drepper@redhat.com>
1830 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
1831 _dl_signal_error directly, always use lose. Set fd to -1 after
1833 (lose): Don't call close if fd == -1.
1835 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
1837 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
1838 Also fix typo @code {mbsinit} to @code{mbsinit}.
1840 2001-11-06 Ulrich Drepper <drepper@redhat.com>
1842 * elf/dl-profile.c: Replace state variable with simple flag named
1843 running. Remove commented-out code.
1845 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
1846 (_dl_init_paths): Likewise.
1847 (_dl_map_object_from_fd): Likewise.
1848 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1850 2001-11-06 Roland McGrath <roland@frob.com>
1852 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
1853 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
1855 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
1856 sysdeps/powerpc/elf/sysdep.h.
1857 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
1859 2001-11-05 Ulrich Drepper <drepper@redhat.com>
1861 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
1863 (process_envvars): Some more optimizations.
1864 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
1866 * elf/elf.h: Add dynamic tag definitions for prelinking.
1868 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
1869 Rewrite code to remove environment varables for SUID binaries.
1870 Small optimization in LD_PROFILE handling.
1871 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
1873 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1875 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
1877 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
1878 strings. Change type of second parameter.
1879 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
1882 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
1884 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
1886 * manual/string.texi: Fix typos.
1887 * manual/examples/argp-ex2.c: Likewise.
1889 2001-11-05 Roland McGrath <roland@frob.com>
1891 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
1892 the more-specific unix/sysv/linux/powerpc file and breaks everything.
1893 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
1894 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
1895 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
1896 here, put under [__ELF__].
1898 2001-11-05 Ulrich Drepper <drepper@redhat.com>
1900 * manual/charset.texi: Extensive editing work.
1901 * manual/nss.texi: Likewise.
1902 Changes by Dennis Grace <dgrace@us.ibm.com>.
1904 2001-11-04 Roland McGrath <roland@frob.com>
1906 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
1907 parameter to dir_mkfile.
1909 2001-11-02 Jakub Jelinek <jakub@redhat.com>
1911 * string/bits/string2.h (__strndup): If n is smaller than len, set
1913 * string/tester.c (test_strndup): New function.
1916 2001-11-01 Ulrich Drepper <drepper@redhat.com>
1918 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
1920 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
1921 * scripts/cpp: New file.
1923 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
1924 for rtld_search_dirs content. Minor optimizations.
1926 2001-10-31 Ulrich Drepper <drepper@redhat.com>
1928 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
1929 avoiding unnecessary duplication.
1931 2001-10-31 Jakub Jelinek <jakub@redhat.com>
1933 * elf/dl-load.c (_dl_map_object): If library was found using
1934 LD_LIBRARY_PATH, don't try RUNPATH list.
1936 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
1938 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
1939 Correct second argument of register_dump call.
1940 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
1943 2001-10-31 Ulrich Drepper <drepper@redhat.com>
1945 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
1947 * iconvdata/TESTS: Likewise.
1948 * iconvdata/gconv-modules: Likewise.
1949 * iconvdata/ibm1132.c: New file.
1950 * iconvdata/ibm1132.h: New file.
1951 * iconvdata/ibm1133.c: New file.
1952 * iconvdata/ibm1133.h: New file.
1953 * iconvdata/ibm1162.c: New file.
1954 * iconvdata/ibm1162.h: New file.
1955 * iconvdata/testdata/IBM1132: New file.
1956 * iconvdata/testdata/IBM1132..UTF8: New file.
1957 * iconvdata/testdata/IBM1133: New file.
1958 * iconvdata/testdata/IBM1133..UTF8: New file.
1959 * iconvdata/testdata/IBM1162: New file.
1960 * iconvdata/testdata/IBM1162..UTF8: New file.
1961 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
1963 * string/string.h: Fix typo in comment.
1964 * wcsmbs/wchar.h: Likewise.
1966 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
1968 * manual/getopt.texi (getopt_long, getopt_long_only): Include
1969 const in type of longopts parameter.
1971 2001-10-29 Andreas Jaeger <aj@suse.de>
1973 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
1975 2001-10-29 Kevin Ryde <user42@zip.com.au>
1977 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
1978 output, clarify `#' behaviour on 0.
1979 (Floating-Point Conversions): Clarify that %g only uses %e when
1980 the exponent would be greater than 1.
1982 2001-10-28 Roland McGrath <roland@frob.com>
1984 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
1985 * sysdeps/mach/powerpc/machine-sp.h: New file.
1986 * sysdeps/mach/powerpc/sysdep.h: New file.
1987 * sysdeps/mach/powerpc/thread_state.h: New file.
1989 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
1990 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
1991 expect to need the same thing on every platform.
1993 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
1994 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
1996 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
1997 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
1998 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
1999 Move all these assembly-related definitions to ...
2000 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
2002 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
2003 by Peter Bruin <pjbruin@dds.nl>.
2005 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
2006 packing results for a `poll' call.
2008 2001-10-26 Ulrich Drepper <drepper@redhat.com>
2010 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
2012 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
2015 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2017 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
2019 2001-10-24 H.J. Lu <hjl@gnu.org>
2021 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
2022 Use __BEGIN_DECLS/__END_DECLS around prototypes.
2023 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
2025 2001-10-21 Jim Meyering <meyering@lucent.com>
2027 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2028 this code would end up calling gettext even in packages built
2030 * posix/getopt.c (_): Likewise.
2031 * posix/regex.c (_): Likewise.
2033 2001-10-26 Ulrich Drepper <drepper@redhat.com>
2035 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
2037 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2038 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
2040 2001-10-19 Jakub Jelinek <jakub@redhat.com>
2042 * misc/sys/cdefs.h (__attribute_used__): Define.
2043 * elf/rtld.c (_dl_start): Add __attribute_used__.
2044 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
2046 2001-10-25 Andreas Schwab <schwab@suse.de>
2048 * stdlib/a64l.c: Expect least significant digit first.
2049 * stdlib/l64a.c: Produce least significant digit first.
2050 * stdlib/Makefile (tests): Add test-a64l.
2051 * stdlib/test-a64l.c: New file.
2052 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
2054 2001-10-21 Ulrich Drepper <drepper@redhat.com>
2056 * po/sk.po: Update from translation team.
2058 2001-10-18 Ulrich Drepper <drepper@redhat.com>
2060 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
2062 2001-10-18 Andreas Schwab <schwab@suse.de>
2064 * math/libm-test.inc (print_ulps): Print ulp values rounded to
2066 (print_function_ulps): Likewise.
2067 (print_complex_function_ulps): Likewise.
2068 (print_max_error): Likewise.
2069 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
2071 2001-10-16 Andreas Schwab <schwab@suse.de>
2073 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
2076 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
2077 BSD_SETJMP or BSD__SETJMP is defined, resp.
2078 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
2079 a tail call to __sigsetjmp that would require extending the
2081 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
2082 * sysdeps/m68k/bsd-setjmp.S: Deleted.
2083 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
2084 Reported by Jes Sorensen <jes@trained-monkey.org>.
2086 2001-10-16 Andreas Jaeger <aj@suse.de>
2088 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
2089 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
2092 2001-10-15 Ulrich Drepper <drepper@redhat.com>
2094 * po/ca.po: New file. Contributed by the translation team.
2096 2001-10-15 Ralf Baechle <ralf@gnu.org>
2098 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
2099 a varargs prototype. Remove dependency from kernel header files.
2101 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
2102 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
2104 2001-10-14 Ulrich Drepper <drepper@redhat.com>
2106 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
2107 to generate hexadecimal identifier.
2108 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
2110 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
2112 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
2114 2001-10-14 Ulrich Drepper <drepper@redhat.com>
2116 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
2117 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
2118 Contributed by Stephen L Moshier <moshier@mediaone.net>.
2120 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
2121 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2122 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
2123 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
2124 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
2125 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
2127 * timezone/africa: Update from tzdata2001d.
2128 * timezone/asia: Likewise.
2129 * timezone/australasia: Likewise.
2130 * timezone/backward: Likewise.
2131 * timezone/europe: Likewise.
2132 * timezone/leapseconds: Likewise.
2133 * timezone/northamerica: Likewise.
2134 * timezone/southamerica: Likewise.
2135 * timezone/zone.tab: Likewise.
2137 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2139 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
2140 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
2142 2001-10-12 Ulrich Drepper <drepper@redhat.com>
2144 * elf/elf.h (PT_TLS): New definition.
2146 2001-10-10 Jeff Bailey <jbailey@nisa.net>
2148 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
2151 2001-10-07 Roland McGrath <roland@frob.com>
2153 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
2155 2001-10-10 Ulrich Drepper <drepper@redhat.com>
2157 * elf/elf.h: Add more ELFOSABI_* constants.
2159 2001-10-04 Ben Collins <bcollins@debian.org>
2161 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
2162 decleration of __need_wchar_t.
2164 2001-10-03 Jakub Jelinek <jakub@redhat.com>
2166 * string/bits/string2.h (__strsep_g): Add prototype.
2168 * string/Versions (__strsep): Remove.
2169 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
2171 2001-10-07 Ulrich Drepper <drepper@redhat.com>
2173 * manua/llio.texi: Clarify file references added by mmap.
2174 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
2176 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
2178 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
2179 Add sc_loadrs and sc_rbs_bas to match current kernel.
2181 2001-09-27 Jakub Jelinek <jakub@redhat.com>
2183 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2185 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
2187 2001-09-27 Jakub Jelinek <jakub@redhat.com>
2189 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
2190 object has been bumped because of relocation dependency, avoid
2191 duplicates in l_scope.
2192 (show_scope): Fix typos.
2193 * elf/Makefile: Add rules to build and run reldep6.
2194 * elf/reldep6.c: New file.
2195 * elf/reldep6mod0.c: New file.
2196 * elf/reldep6mod1.c: New file.
2197 * elf/reldep6mod2.c: New file.
2198 * elf/reldep6mod3.c: New file.
2199 * elf/reldep6mod4.c: New file.
2201 2001-09-26 Jakub Jelinek <jakub@redhat.com>
2203 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
2205 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
2206 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
2207 for non-lazy binding. Fix .plt[32768+] handling.
2208 (elf_machine_plt_value): Don't add addend.
2209 (elf_machine_rela): Call sparc64_fixup_plt instead of
2210 elf_machine_fixup_plt.
2211 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
2212 dynamic linker at 0xfffff800XXXXXXXX.
2214 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2216 2001-09-28 Ulrich Drepper <drepper@redhat.com>
2218 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
2220 2001-09-25 Jakub Jelinek <jakub@redhat.com>
2222 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
2223 declare __cmsg_data field if its size would be bigger than 0.
2224 (CMSG_DATA): Adjust accordingly.
2225 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2226 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
2227 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
2228 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
2229 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2230 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2231 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2233 2001-09-25 Ulrich Drepper <drepper@redhat.com>
2235 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
2236 * iconvdata/testdata/IBM1160: New file.
2237 * iconvdata/testdata/IBM1160..UTF8: New file.
2238 * iconvdata/testdata/IBM1161: New file.
2239 * iconvdata/testdata/IBM1161..UTF8: New file.
2240 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2242 2001-09-24 Ulrich Drepper <drepper@redhat.com>
2244 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
2245 UL_SETFSIZE computations better.
2247 * rt/Makefile: Remove use of filter for librt again.
2249 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
2250 UL_SETFSIZE computations better.
2252 * string/Versions: Export __strsep for GLIBC_2.2.5.
2253 * string/bits/string2.h: Define all __STRING_INLINE functions if
2254 _FORCE_INLINES is defined.
2255 Use int instead of char of parameter types.
2256 (__strsep): Don't use __strsep_g. Don't define it.
2257 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
2258 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
2260 (__stpcpy_a_small): Renamed from __stpcpy_small.
2261 (__strcspn_c1): Don't define if _FORCE_INLINES.
2262 (__strspn_c1): Likewise.
2264 2001-09-22 Ben Collins <bcollins@debian.org>
2266 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
2267 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
2268 * sysdeps/ia64/bits/sigaction.h: Likewise.
2269 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
2271 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
2273 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
2275 2001-09-24 Jakub Jelinek <jakub@redhat.com>
2277 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
2279 2001-09-24 Ulrich Drepper <drepper@redhat.com>
2281 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
2283 2001-09-20 H.J. Lu <hjl@gnu.org>
2285 * include/dlfcn.h (__RTLD_SPROF): New definiton.
2286 * elf/dl-open.c (dl_open_worker): Return immediately after loading
2288 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
2289 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
2291 2001-09-20 H.J. Lu <hjl@gnu.org>
2293 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
2296 2001-09-22 Ulrich Drepper <drepper@redhat.com>
2298 * nss/getent.c: Accept -s parameter to overwrite rules in
2299 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
2301 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
2302 with as many ".0" as necessary to form a complete address
2303 inet_network understands.
2305 * nss/getent.c: Various cleanups. Use simpler and fewer function
2308 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2310 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
2312 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
2314 2001-09-22 Ulrich Drepper <drepper@redhat.com>
2316 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
2318 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
2319 * iconvdata/ibm1160.c: New file.
2320 * iconvdata/ibm1160.h: New file.
2321 * iconvdata/ibm1161.c: New file.
2322 * iconvdata/ibm1161.h: New file.
2323 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2325 2001-09-19 Jakub Jelinek <jakub@redhat.com>
2327 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
2328 difference between base address and first PT_LOAD's virtual address,
2329 not the base address.
2331 2001-09-11 Tom Rix <trix@redhat.com>
2333 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
2334 ifdef for __getopt_clean_environment.
2335 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
2337 2001-09-22 Andreas Jaeger <aj@suse.de>
2339 * elf/reldep4.c (main): Add proper prototype to fix warning.
2341 * elf/reldep5.c (main): Remove unused variable.
2343 * math/math_private.h: Add prototypes.
2345 2001-09-21 Andreas Jaeger <aj@suse.de>
2347 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
2348 * sysdeps/x86_64/Dist: New file.
2349 * sysdeps/x86_64/soft-fp/Dist: New file.
2351 * sysdeps/gnu/Dist: Remove eval.c.
2353 2001-09-20 Ulrich Drepper <drepper@redhat.com>
2355 * malloc/memusage.c (realloc): Don't count already allocated
2357 (me): Always use dlsym() to find the real implementations.
2359 * malloc/memusage.sh: Make -n option actually do something.
2361 2001-09-20 Andreas Jaeger <aj@suse.de>
2363 * elf/elf.h (R_390_NUM): Correct value.
2365 * Versions.def: Add missing versions 2.2.3 for libthread_db and
2368 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2369 for x86-64, install x86-64 into */lib64.
2371 * shlib-versions: Add x86-64.
2373 * elf/elf.h: Add x86-64 relocations.
2375 2001-09-19 Ulrich Drepper <drepper@redhat.com>
2377 * po/fr.po: Update from translation team.
2379 2001-09-19 Andreas Jaeger <aj@suse.de>
2381 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
2382 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
2383 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
2384 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
2385 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
2386 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
2387 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
2388 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
2389 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
2390 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2391 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
2392 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
2393 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
2394 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
2395 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
2396 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
2397 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
2398 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2399 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
2400 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
2401 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
2402 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
2403 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
2404 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
2405 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
2406 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
2407 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
2408 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
2409 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
2410 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
2411 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
2412 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
2413 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
2414 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
2415 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
2416 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
2417 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
2418 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
2419 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
2420 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
2421 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
2422 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
2423 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
2424 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
2425 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
2426 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
2427 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
2428 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
2429 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2430 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
2431 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
2432 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2433 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
2434 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
2435 * sysdeps/unix/x86_64/sysdep.S: New file.
2436 * sysdeps/unix/x86_64/sysdep.h: New file.
2437 * sysdeps/x86_64/Implies: New file.
2438 * sysdeps/x86_64/Makefile: New file.
2439 * sysdeps/x86_64/Versions: New file.
2440 * sysdeps/x86_64/__longjmp.S: New file.
2441 * sysdeps/x86_64/abort-instr.h: New file.
2442 * sysdeps/x86_64/atomicity.h: New file.
2443 * sysdeps/x86_64/bits/endian.h: New file.
2444 * sysdeps/x86_64/bits/setjmp.h: New file.
2445 * sysdeps/x86_64/bits/string.h: New file.
2446 * sysdeps/x86_64/bp-asm.h: New file.
2447 * sysdeps/x86_64/bsd-_setjmp.S: New file.
2448 * sysdeps/x86_64/bsd-setjmp.S: New file.
2449 * sysdeps/x86_64/dl-machine.h: New file.
2450 * sysdeps/x86_64/elf/initfini.c: New file.
2451 * sysdeps/x86_64/elf/start.S: New file.
2452 * sysdeps/x86_64/ffs.c: New file.
2453 * sysdeps/x86_64/ffsll.c: New file.
2454 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
2455 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
2456 * sysdeps/x86_64/fpu/e_acosl.c: New file.
2457 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
2458 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
2459 * sysdeps/x86_64/fpu/e_expl.c: New file.
2460 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
2461 * sysdeps/x86_64/fpu/e_log10l.S: New file.
2462 * sysdeps/x86_64/fpu/e_log2l.S: New file.
2463 * sysdeps/x86_64/fpu/e_logl.S: New file.
2464 * sysdeps/x86_64/fpu/e_powl.S: New file.
2465 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
2466 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
2467 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
2468 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
2469 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
2470 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
2471 * sysdeps/x86_64/fpu/fegetenv.c: New file.
2472 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
2473 * sysdeps/x86_64/fpu/fegetround.c: New file.
2474 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
2475 * sysdeps/x86_64/fpu/fesetenv.c: New file.
2476 * sysdeps/x86_64/fpu/fesetround.c: New file.
2477 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
2478 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
2479 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
2480 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
2481 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
2482 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
2483 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
2484 * sysdeps/x86_64/fpu/s_atanl.c: New file.
2485 * sysdeps/x86_64/fpu/s_cosl.S: New file.
2486 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
2487 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
2488 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2489 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2490 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2491 * sysdeps/x86_64/fpu/s_logbl.c: New file.
2492 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2493 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2494 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2495 * sysdeps/x86_64/fpu/s_rintl.c: New file.
2496 * sysdeps/x86_64/fpu/s_significandl.c: New file.
2497 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2498 * sysdeps/x86_64/fpu/s_sinl.S: New file.
2499 * sysdeps/x86_64/fpu/s_tanl.S: New file.
2500 * sysdeps/x86_64/gmp-mparam.h: New file.
2501 * sysdeps/x86_64/hp-timing.c: New file.
2502 * sysdeps/x86_64/hp-timing.h: New file.
2503 * sysdeps/x86_64/htonl.S: New file.
2504 * sysdeps/x86_64/memusage.h: New file.
2505 * sysdeps/x86_64/setjmp.S: New file.
2506 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
2507 * sysdeps/x86_64/stackinfo.h: New file.
2508 * sysdeps/x86_64/sysdep.h: New file.
2509 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
2511 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
2514 2001-09-18 Ulrich Drepper <drepper@redhat.com>
2516 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
2517 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
2519 2001-09-18 Andreas Schwab <schwab@suse.de>
2521 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
2522 list, now that l_scope is a pointer.
2524 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
2527 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
2529 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
2530 (elf_machine_rela_relative): Add a missing declaration.
2532 2001-09-18 Jakub Jelinek <jakub@redhat.com>
2534 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
2535 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
2536 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
2537 ldd-rewrite scripts.
2539 2001-09-18 Ulrich Drepper <drepper@redhat.com>
2541 * elf/ldd.bash.in: Update copyright message.
2543 2001-09-17 H.J. Lu <hjl@gnu.org>
2545 * hurd/hurdmalloc.c (bcopy): Removed.
2546 (realloc): Replace bcopy with memcpy.
2547 * hurd/path-lookup.c (file_name_path_scan): Likewise.
2548 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
2549 * sunrpc/rpcinfo.c (pmapdump): Likewise.
2551 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
2552 (gethostbyaddr): Likewise.
2553 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
2555 2001-09-18 Ulrich Drepper <drepper@redhat.com>
2557 * sysdeps/gnu/eval.c: Removed.
2559 2001-09-18 Andreas Jaeger <aj@suse.de>
2561 * sysdeps/i386/fpu/s_logbl.S: Move to ...
2562 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
2564 * sysdeps/i386/fpu/s_rintl.S: Move to ...
2565 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
2567 * sysdeps/i386/fpu/s_significandl.S: Move to ...
2568 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
2570 2001-09-16 Ulrich Drepper <drepper@redhat.com>
2572 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2575 2001-09-14 H.J. Lu <hjl@gnu.org>
2577 * sysdeps/mips/fpu/libm-test-ulps: Updated.
2579 2001-09-14 Ulrich Drepper <drepper@redhat.com>
2581 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
2582 Patch by Florian La Roche <laroche@redhat.com>.
2584 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
2586 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
2589 2001-09-14 Andreas Schwab <schwab@suse.de>
2591 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
2592 Sumner <bls@sgi.com>.
2593 * posix/execlp.c: Likewise.
2595 2001-09-13 Jakub Jelinek <jakub@redhat.com>
2597 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
2598 is already found earlier in the search scope.
2600 2001-09-12 Jakub Jelinek <jakub@redhat.com>
2602 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
2605 2001-09-13 Ulrich Drepper <drepper@redhat.com>
2607 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
2609 2001-09-12 Ulrich Drepper <drepper@redhat.com>
2611 * config.h.in: Enforce optimization to be used.
2612 * Makeconfig (preprocess-versions): Define ASSEMBLER.
2613 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
2614 * posix/Makefile (annexc-CFLAGS): Define to -O.
2615 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
2617 2001-09-11 Ulrich Drepper <drepper@redhat.com>
2619 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
2620 Patch by Stephan Kulow.
2622 2001-09-08 Ben Collins <bcollins@debian.org>
2624 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
2625 usage of RESOLVE() (r_type, not reloc->r_type).
2627 2001-09-08 Ulrich Drepper <drepper@redhat.com>
2629 * elf/dl-object.c: Avoid allocating extra memory block for name.
2630 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
2631 allocated separately.
2632 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2634 2001-09-08 H.J. Lu <hjl@gnu.org>
2636 * po/zh_TW.po: Fix a typo.
2638 2001-09-07 Tom Rix <trix@redhat.com>
2640 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
2642 2001-08-26 Tom Rix <trix@redhat.com>
2644 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
2645 command line options.
2646 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
2647 * sysdeps/unix/sysv/aix/start.c: Removed.
2648 * sysdeps/unix/sysv/aix/start-libc.c: New file.
2649 * sysdeps/unix/sysv/aix/init-first.c: New file.
2650 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
2652 2001-09-08 Ben Collins <bcollins@debian.org>
2654 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
2655 * sysdeps/generic/dl-machine.h: Likewise.
2656 * sysdeps/hppa/dl-fptr.c: Likewise.
2657 * sysdeps/ia64/dl-fptr.c: Likewise.
2658 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2659 * sysdeps/mips/dl-machine.h: Likewise.
2660 * sysdeps/mips/mips64/dl-machine.h: Likewise.
2661 * sysdeps/powerpc/dl-machine.c: Likewise.
2663 2001-09-07 Ben Collins <bcollins@debian.org>
2665 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
2667 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
2669 2001-09-08 Ulrich Drepper <drepper@redhat.com>
2671 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
2672 dependencies if necessary.
2674 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
2675 loaded directly) determine length if l_initfini list by iterating
2676 over its elements. Minor optimizations.
2677 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
2678 for dependency objects.
2679 If object was already loaded check whether any of the dependencies
2680 is already on the relocation dependency list. If yes, remove the
2681 latter. Minor optimizations.
2682 * elf/dl-lookup.c (add_dependency): Add check for self reference of
2683 maps here. Search l_initfini list only if the object was loaded
2684 directly and not only as a dependency.
2685 (_dl_lookup_symbol): Add relocation dependency also if object
2686 is not in global scope. Remove test for self-reference here.
2687 (_dl_lookup_versioned_symbol): Likewise.
2688 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
2689 element of first name record.
2690 * elf/loadtest.c: Add some more test to recognize early if an object
2692 * elf/Makefile: Add rules to build and run reldep5.
2693 * elf/reldep5.c: New file.
2694 * elf/reldepmod5.c: New file.
2695 * elf/reldepmod6.c: New file.
2697 * elf/reldep2.c: Fix typo.
2699 2001-09-07 Ulrich Drepper <drepper@redhat.com>
2701 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
2702 elements. Change l_scope to be a pointer only.
2703 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
2704 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
2705 here add searchlist of newly open file to the dependency's scope.
2706 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
2707 only searchlist from its scope. Free own scope array if necessary.
2708 * elf/Makefile (tests): Add dblload and dblunload now.
2710 2001-09-06 Andreas Jaeger <aj@suse.de>
2712 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
2715 2001-09-05 Ulrich Drepper <drepper@redhat.com>
2717 * elf/Makefile: Add rules to build new tests. Don't run them yet since
2719 * elf/dblload.c: New file.
2720 * elf/dblloadmod1.c: New file.
2721 * elf/dblloadmod2.c: New file.
2722 * elf/dblloadmod3.c: New file.
2723 * elf/dblunload.c: New file.
2725 2001-09-04 Richard Henderson <rth@redhat.com>
2727 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
2728 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
2730 2001-09-04 Ulrich Drepper <drepper@redhat.com>
2732 Correct very misleading message for error in failed runtime relocation.
2733 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
2735 (_dl_signal_cerror): Likewise.
2736 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2737 * elf/dl-close.c: Likewise.
2738 * elf/dl-deps.c: Likewise.
2739 * elf/dl-load.c: Likewise.
2740 * elf/dl-lookup.c: Likewise.
2741 * elf/dl-open.c: Likewise.
2742 * elf/dl-reloc.c: Likewise.
2743 * elf/dl-sym.c: Likewise.
2744 * elf/dl-version.c: Likewise.
2745 * sysdeps/generic/dl-sysdep.c: Likewise.
2747 2001-09-04 Jakub Jelinek <jakub@redhat.com>
2749 * iconv/strtab.c (strtabinit): Initialize null Strent.
2750 (newstring): Move len == 0 handling...
2751 (strtabadd): ...here.
2752 If len == 1, return null Strent.
2753 When inserting a suffix of an existing string, check if
2754 it is not equal to some suffix already recorded.
2755 Copy left and right members over if adding longer string.
2757 2001-09-04 Jakub Jelinek <jakub@redhat.com>
2759 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
2761 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
2762 (__syscall_gethostname): Add prototype.
2764 2001-09-04 Ulrich Drepper <drepper@redhat.com>
2766 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
2768 2001-09-02 Ulrich Drepper <drepper@redhat.com>
2770 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
2772 2001-08-27 Roland McGrath <roland@frob.com>
2774 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
2775 short, copy that much into NAME anyway before returning error.
2777 2001-09-01 Richard Henderson <rth@redhat.com>
2779 * sysdeps/alpha/elf/Dist: Remove file.
2780 * sysdeps/alpha/elf/Makefile: Remove file.
2781 * sysdeps/alpha/elf/crtbegin.S: Remove file.
2782 * sysdeps/alpha/elf/crtend.S: Remove file.
2783 * sysdeps/alpha/elf/initfini.c: New file.
2785 2001-09-01 Mark Kettenis <kettenis@gnu.org>
2787 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
2788 * iconv/tst-iconv3.c: Likewise.
2790 2001-09-01 Jakub Jelinek <jakub@redhat.com>
2792 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
2794 2001-09-01 Ulrich Drepper <drepper@redhat.com>
2796 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
2798 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
2799 * iconv/iconv_prog.c (insert_cache): New function.
2800 (print_known_names): If cache is used call insert_cache to use the
2801 information from the cache [PR libc/2509].
2803 2001-08-31 Ulrich Drepper <drepper@redhat.com>
2805 * time/strptime.c (strptime_internal): Recognize 'l' format and
2806 handle it like 'I' for symmetry with strftime.
2808 2001-08-31 Richard Henderson <rth@redhat.com>
2810 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
2811 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
2812 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
2813 (print_statistics): Make scalar unsigned long long.
2814 * sysdeps/alpha/hp-timing.h: New file.
2816 2001-08-31 Jakub Jelinek <jakub@redhat.com>
2818 * stdio-common/perror.c (perror): Save errno early, pass it
2819 down to perror_internal.
2820 (perror_internal): Add errnum argument.
2822 2001-08-31 Jakub Jelinek <jakub@redhat.com>
2824 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
2825 Don't add old memory content for R_ALPHA_REFQUAD.
2827 2001-08-30 Ulrich Drepper <drepper@redhat.com>
2829 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
2832 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
2833 instead of open, __close instead of close, __getpagesize instead
2836 * string/argz-stringify.c (__argz_stringify): Use __strnlen
2838 * include/string.h (strndupa): Redefine here to use __strnlen
2840 * string/strndup.c (__strndup): Use __strnlen not strnlen.
2842 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
2845 2001-08-30 Jakub Jelinek <jakub@redhat.com>
2847 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
2848 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
2849 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2850 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
2851 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
2852 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
2853 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
2855 2001-08-30 Ulrich Drepper <drepper@redhat.com>
2857 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
2859 2001-08-30 Andreas Jaeger <aj@suse.de>
2861 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
2862 contributed Stephen L Moshier.
2864 2001-08-30 Jakub Jelinek <jakub@redhat.com>
2866 * sunrpc/etc.rpc (sgi_fam): Add.
2868 2001-08-30 Ulrich Drepper <drepper@redhat.com>
2870 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
2872 2001-08-29 Ulrich Drepper <drepper@redhat.com>
2874 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
2875 first is from a previous call.
2876 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
2878 2001-08-29 Andreas Schwab <schwab@suse.de>
2880 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
2882 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2884 * config.make.in (INSTALL_SCRIPT): Define.
2885 * Makeconfig (INSTALL_SCRIPT): Define.
2886 * Makerules (do-install-script): New macro to install scripts using
2888 (install-bin-script): New rule to install scripts with
2890 (install-bin-script-nosubdir): New rule.
2891 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
2892 (distinfo-vars): Add $(install-bin-script).
2893 * Rules (others): Likewise.
2894 * Makefile (glibcbug): Install with install-bin-script.
2895 * debug/Makefile (xtrace): Likewise.
2896 (catchsegv): Likewise.
2897 * elf/Makefile (ldd): Likewise.
2898 * malloc/Makefile (mtrace): Likewise.
2899 * timezone/Makefile (tzselect): Likewise.
2901 2001-08-29 H.J. Lu <hjl@gnu.org>
2903 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
2904 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
2905 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
2907 2001-08-29 Andreas Schwab <schwab@suse.de>
2909 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
2911 2001-08-28 H.J. Lu <hjl@gnu.org>
2913 * Makeconfig (combreloc-LDFLAGS): New variable.
2914 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
2915 * config.make.in (have-z-combreloc): New variable.
2916 * configure.in: Substitute libc_cv_z_combreloc.
2918 2001-08-29 Ulrich Drepper <drepper@redhat.com>
2920 * po/sv.po: Update from translation team.
2921 * po/fr.po: Likewise.
2922 * po/da.po: Likewise.
2924 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2926 * Makerules: Fix a typo: MD% -> MD5.
2928 2001-08-28 Ulrich Drepper <drepper@redhat.com>
2930 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
2931 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
2933 2001-08-28 Andreas Jaeger <aj@suse.de>
2935 * manual/libc-texinfo.sh: Add entry about free manuals.
2937 * manual/contrib.texi (Contributors): Fix cross reference.
2939 * manual/libc.texinfo (Copying): Include freemanuals.
2941 * manual/Makefile (appendices): Add freemanuals.
2943 * manual/freemanuals.texi: New file.
2944 Patch by Brian Youmans <3diff@gnu.org>.
2946 * manual/libm-err-tab.pl: Pretty print more platforms, print a
2949 * manual/math.texi (Errors in Math Functions): Fix grammar, start
2950 table on separate page.
2951 Patch by Brian Youmans <3diff@gnu.org>.
2953 2001-08-27 Ulrich Drepper <drepper@redhat.com>
2955 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
2956 the connection went down after we first used it try to connect
2957 again and resend the message before printing to the console.
2958 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
2960 2001-08-27 Jakub Jelinek <jakub@redhat.com>
2962 * string/tst-strlen.c (main): Test strnlen (, -1) too.
2963 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
2966 2001-08-27 Ulrich Drepper <drepper@redhat.com>
2968 * iconv/strtab.c (searchstring): Use correct length for comparison.
2969 (strtabadd): Account total size correct if new string has old string as
2972 2001-08-27 Jakub Jelinek <jakub@redhat.com>
2974 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
2976 2001-08-27 Andreas Jaeger <aj@suse.de>
2978 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
2980 * math/libm-test.inc (j0_test): Add extra tests.
2981 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
2982 not x, in Hankel approximation.
2983 Patches by Stephen L Moshier.
2985 2001-08-26 Ulrich Drepper <drepper@redhat.com>
2987 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
2990 * configure.in: Fix test for .rela.dyn section.
2992 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
2994 2001-08-26 Jakub Jelinek <jakub@redhat.com>
2996 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
2997 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
2998 Pass type_class to _dl_lookup_*.
2999 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
3000 Pass around just type_class instead of noexec, noplt pair.
3001 (_dl_lookup_versioned_symbol): Likewise.
3002 (_dl_lookup_symbol_skip): Pass around just type_class instead of
3004 (_dl_lookup_versioned_symbol_skip): Likewise.
3005 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
3006 * elf/do-lookup.h (do_lookup): Likewise.
3007 * include/link.h (struct link_map): Replace noexec and noplt fields
3008 in l_lookup_cache with type_class field.
3009 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
3010 ELF_RTYPE_CLASS_COPY): Define.
3011 Adjust prototypes for _dl_lookup_symbol and
3012 _dl_lookup_versioned_symbol.
3013 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
3014 elf_machine_lookup_noexec_p): Remove.
3015 (elf_machine_type_class): Define.
3016 * sysdeps/arm/dl-machine.h: Likewise.
3017 * sysdeps/hppa/dl-machine.h: Likewise.
3018 * sysdeps/cris/dl-machine.h: Likewise.
3019 * sysdeps/i386/dl-machine.h: Likewise.
3020 * sysdeps/ia64/dl-machine.h: Likewise.
3021 * sysdeps/m68k/dl-machine.h: Likewise.
3022 * sysdeps/mips/mips64/dl-machine.h: Likewise.
3023 * sysdeps/mips/dl-machine.h: Likewise.
3024 * sysdeps/powerpc/dl-machine.h: Likewise.
3025 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3026 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3027 * sysdeps/sh/dl-machine.h: Likewise.
3028 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3029 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3031 2001-08-26 Ulrich Drepper <drepper@redhat.com>
3033 * manual/message.texi (Advanced gettext functions): Change
3034 description of plural forms for Slovak.
3035 Reported by Marcel Telka <marcel@telka.sk>.
3037 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
3038 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
3040 2001-08-26 Jakub Jelinek <jakub@redhat.com>
3042 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
3043 typo. Patch by Florian La Roche <laroche@redhat.com>.
3045 2001-08-26 Ulrich Drepper <drepper@redhat.com>
3047 * include/link.h (struct link_map): Add l_lookup_cache element.
3048 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
3049 (RESOLVE_MAP): Likewise.
3050 (_dl_relocate_object): Remove cache initialization.
3051 * elf/dl-lookup.c: Rip out cache handling code.
3052 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
3055 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
3056 remove some __builtin_expect.
3057 (_dl_lookup_versioned_symbol): Likewise.
3059 * config.h.in: Add HAVE_Z_COMBRELOC.
3060 * configure.in: Add test for -z combreloc.
3062 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
3063 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
3064 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
3065 case to almost no code.
3067 2001-08-25 Ulrich Drepper <drepper@redhat.com>
3069 * po/tr.po: Update from translation team.
3071 2001-08-24 Andreas Jaeger <aj@suse.de>
3073 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
3076 2001-08-24 Ulrich Drepper <drepper@redhat.com>
3078 * elf/rtld.c (print_statistics): Printf % after percent values.
3079 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
3081 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
3082 don't have to compute the hash value and initialize current_value.
3083 Move reference_name variable to where it is needed.
3084 (_dl_lookup_versioned_symbol): Likewise.
3086 2001-08-24 Roland McGrath <roland@frob.com>
3088 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
3089 Just test that strerror returns non-null for a few errno codes.
3091 2001-08-23 Roland McGrath <roland@frob.com>
3093 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
3094 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
3096 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
3098 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
3101 2001-08-24 Ulrich Drepper <drepper@redhat.com>
3103 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
3106 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
3107 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
3109 * elf/rtld.c: Include <sys/param.h>.
3110 * elf/dl-reloc.c: Likewise.
3112 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3114 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
3115 empty to prevent junk from being generated.
3116 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
3118 2001-08-24 Jakub Jelinek <jakub@redhat.com>
3120 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
3121 records. Rename endrel to relative, initialize it to r, and use it
3122 in elf_machine_rel_relative calls. Point r after relative relocs.
3124 2001-08-24 Ulrich Drepper <drepper@redhat.com>
3126 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
3129 2001-08-24 Jakub Jelinek <jakub@redhat.com>
3131 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
3132 necessary. Undefine newly defined macros at the end.
3133 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
3134 Rename from elf_machine_rel_relative.
3135 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
3136 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
3137 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
3138 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
3140 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
3142 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
3144 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
3146 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
3147 Likewise. Fix argument types.
3148 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
3149 Likewise. Fix argument types.
3150 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
3152 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
3153 ElfW(Rel) in argument.
3154 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
3157 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
3159 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
3161 2001-08-24 Andreas Jaeger <aj@suse.de>
3163 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
3164 Stephen L Moshier <moshier@mediaone.net>.
3166 2001-08-24 Ulrich Drepper <drepper@redhat.com>
3168 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
3169 first if RELCOUNT is set.
3171 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
3172 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
3173 elf_machine_rel_relative.
3174 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
3175 Minor optimizations.
3176 * sysdeps/arm/dl-machine.h: Likewise.
3177 * sysdeps/cris/dl-machine.h: Likewise.
3178 * sysdeps/hppa/dl-machine.h: Likewise.
3179 * sysdeps/i386/dl-machine.h: Likewise.
3180 * sysdeps/ia64/dl-machine.h: Likewise.
3181 * sysdeps/m68k/dl-machine.h: Likewise.
3182 * sysdeps/mips/dl-machine.h: Likewise.
3183 * sysdeps/powerpc/dl-machine.h: Likewise.
3184 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3185 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3186 * sysdeps/sh/dl-machine.h: Likewise.
3187 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3188 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3190 2001-08-23 Roland McGrath <roland@frob.com>
3192 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
3194 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
3195 sysdeps/mach version. Implement counting ("recursive") mutexes
3196 on top of cthreads mutexes.
3197 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
3199 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
3200 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
3201 (__libc_cleanup_region_start, __libc_cleanup_region_end,
3202 __libc_clean_end): Define these to call the cleanup function after
3203 normal exit when they're supposed to.
3205 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
3206 Take new first arg DOIT, a boolean saying whether to really install
3207 any cleanup handler.
3208 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
3209 (__libc_cleanup_end): Likewise.
3210 * sysdeps/generic/bits/libc-lock.h: Same changes.
3211 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
3212 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
3213 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
3215 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
3216 * sysdeps/generic/bits/stdio-lock.h
3217 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
3219 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3221 * elf/ldconfig.c (search_dir): Remove stale symlinks.
3223 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3225 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
3226 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
3228 (_dl_lookup_versioned_symbol): Likewise.
3229 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
3231 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
3232 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
3233 (lookup_cache, lookup_cache_versioned): Add declarations.
3235 2001-08-23 Ulrich Drepper <drepper@redhat.com>
3237 * stdlib/tst-random.c (main): Swap parameters in fail call.
3238 Patch by Pete Bevin <pete@petebevin.com>.
3240 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3242 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
3244 2001-08-23 Ulrich Drepper <drepper@redhat.com>
3246 * malloc/obstack.c: Indent preprocessor directives.
3247 Patch by Jim Meyering <meyering@ascend.com>.
3249 * po/ja.po: Update from translation team.
3251 2001-08-23 Roland McGrath <roland@frob.com>
3253 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
3255 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
3256 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
3258 2001-08-22 Roland McGrath <roland@frob.com>
3260 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
3261 __libc_lock_define_recursive.
3262 * elf/dl-open.c: Don't declare it here any more.
3263 * elf/dl-close.c: Likewise.
3264 * elf/dl-lookup.c: Likewise.
3265 * elf/dl-iteratephdr.c: Likewise.
3266 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
3267 __libc_lock_unlock_recursive.
3268 * elf/dl-close.c (_dl_close): Likewise
3269 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
3270 * elf/dl-open.c (_dl_open): Likewise
3272 * sysdeps/generic/bits/libc-lock.h
3273 (__libc_lock_define_recursive): New macro.
3274 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
3275 (_IO_lock_lock): Use __libc_lock_lock_recursive.
3276 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
3278 * conform/conformtest.pl (checknamespace): Sort the output list.
3280 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
3281 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
3282 definitions conditional on [__USE_XOPEN].
3284 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
3285 these unconditionally, not only use [__USE_BSD], so as to match
3286 the sysdeps/unix/sysv/linux files.
3288 2001-08-22 Ulrich Drepper <drepper@redhat.com>
3290 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
3293 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
3296 2001-08-22 Roland McGrath <roland@frob.com>
3298 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
3299 conditionalization of sa_handler/sa_sigaction member types to
3300 match the sysdeps/unix/sysv/linux file.
3302 2001-08-22 Ulrich Drepper <drepper@redhat.com>
3304 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
3305 symbol sizes a bit better.
3307 * sysdeps/ia64/strncpy.S: Complete rewrite.
3308 Contributed by Jakub Jelinek <jakub@redhat.com>.
3310 * string/stratcliff.c (main): Add strncpy test.
3312 2001-08-22 Roland McGrath <roland@frob.com>
3314 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
3315 and don't declare unsetenv or _environ directly.
3316 (unsetenv): Return int, not void. Use __environ instead of _environ.
3318 2001-08-01 Mark Kettenis <kettenis@gnu.org>
3320 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
3321 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
3322 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
3323 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
3324 test for cmsg struct size.
3326 2001-04-23 Paul Eggert <eggert@twinsun.com>
3328 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
3329 Rename __argc to ___argc in prototypes to avoid compatibility
3330 problems with systems that reserve the identifier "__argc".
3331 Similarly for __argv.
3333 2001-08-21 Roland McGrath <roland@frob.com>
3335 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
3337 * mach/Makefile (tests): Removed.
3338 * mach/hello.c: File removed.
3340 2001-08-22 Ulrich Drepper <drepper@redhat.com>
3342 * po/sv.po: Update from translation team.
3344 * stdio-common/vfscanf.c: Fix handling of %l[].
3345 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3347 * libio/Makefile (tests): Add tst-sscanf.
3348 * libio/tst-sscanf.c: New file.
3350 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
3351 * malloc/mtrace.c (tr_where): dli_sname always points to a
3352 non-empty string if != NULL.
3353 Reported by Tim Janik <timj@gtk.org>.
3355 2001-08-22 Jakub Jelinek <jakub@redhat.com>
3357 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
3358 buf. Free resources on failure.
3359 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
3360 (makefd_xprt): Likewise.
3361 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
3362 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
3363 * sunrpc/auth_unix.c (authunix_create): Likewise.
3365 2001-08-21 Jakub Jelinek <jakub@redhat.com>
3367 * string/strnlen.c: Remove.
3368 * sysdeps/generic/strnlen.c: New file.
3369 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3371 2001-08-21 Roland McGrath <roland@frob.com>
3373 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3374 as a macro, not an extern inline function.
3376 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
3377 * Versions.def (libc): Add GLIBC_2.2.5 set.
3378 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
3379 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
3381 2001-08-20 Roland McGrath <roland@frob.com>
3383 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3384 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3386 2001-08-21 Ulrich Drepper <drepper@redhat.com>
3388 * string/bits/string2.h: Remove strnlen optimization here.
3389 * sysdeps/i386/i486/bits/string.h: Add it here.
3391 2001-08-21 Wolfram Gloger <wg@malloc.de>
3393 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3395 2001-08-21 Ulrich Drepper <drepper@redhat.com>
3397 * po/gl.po: Update from translation team.
3399 2001-08-20 Ulrich Drepper <drepper@redhat.com>
3401 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3402 * misc/err.c (convert_and_print): Likewise.
3404 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3407 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
3409 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
3410 change of the gregset_t type.
3411 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3413 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
3415 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3417 2001-08-20 Ulrich Drepper <drepper@redhat.com>
3419 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3421 * string/strnlen.c: Fix the implementation. We cannot use memchr.
3423 2001-08-18 Mark Kettenis <kettenis@gnu.org>
3425 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3426 before calling the cthreads initialization code.
3428 2001-08-20 Ulrich Drepper <drepper@redhat.com>
3430 * argp/argp-help.c: Fix two problems introduced in last change.
3432 * include/dirent.h: Include <dirstream.h> first.
3434 2001-08-19 Ulrich Drepper <drepper@redhat.com>
3436 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
3438 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
3439 * sunrpc/xdr_rec.c: Likewise.
3440 * sunrpc/xdr_mem.c: Likewise.
3441 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
3442 * sunrpc/rpc_cmsg.c: Likewise.
3443 * sunrpc/getrpcport.c (getrpcport): Likewise.
3444 * sunrpc/clnt_simp.c (callrpc): Likewise.
3445 * sunrpc/clnt_gen.c (clnt_create): Likewise.
3446 * string/envz.c: Likewise.
3448 * po/ko.po: Update from translation team.
3450 * argp/argp-help.c: Handle wide oriented stderr stream.
3452 2001-08-18 Ulrich Drepper <drepper@redhat.com>
3454 * sysdeps/generic/strtol.c: Little optimizations. Add some
3457 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3459 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3460 * wcsmbs/wcwidth.c (wcwdith): Likewise.
3461 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3463 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3465 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3467 * time/time.h (struct timespec): Use __time_t for tv_sec element.
3469 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
3470 wchar_t for function declarations and defintions.
3472 * misc/sys/select.h: Define __need_time_t before including <time.h>.
3473 Define suseconds_t if it hasn't happened yet.
3475 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3477 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3479 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3482 * conform/data/stddef.h-data: Remove wint_t.
3484 * conform/conformtest.pl: Change namespace test to take #undef
3487 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3489 * conform/data/sys/socket.h-data: Add sockatmark.
3491 2001-08-17 Ulrich Drepper <drepper@redhat.com>
3493 * io/fts.c: Update from recent BSD source.
3495 2001-08-17 Roland McGrath <roland@frob.com>
3497 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3498 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3501 2001-08-17 Ulrich Drepper <drepper@redhat.com>
3503 * locale/duplocale.c (__duplocale): Also initialize the special
3506 * conform/data/netdb.h-data: Adjust gai_strerror return type.
3508 2001-08-17 Andreas Jaeger <aj@suse.de>
3510 * misc/getpass.c: Include wchar.h for prototypes.
3511 * malloc/obstack.c: Likewise.
3513 2001-08-17 Ulrich Drepper <drepper@redhat.com>
3515 * sunrpc/svc_simple.c (universal): Use __write instead of write.
3517 * wcsmbs/wcscoll.c: Also define __wcscoll.
3518 * include/wchar.h: Declare __wcscoll.
3520 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
3521 * libio/vwprintf.c: Likewise.
3522 * libio/wprintf.c: Likewise.
3524 * iconv/gconv_cache.c: Use __munmap instead of munmap.
3526 2001-08-16 Ulrich Drepper <drepper@redhat.com>
3528 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3530 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3531 wcslen, and __wcscoll instead of wcscoll.
3533 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
3535 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
3536 __getuid instead of getuid.
3538 * stdio-common/perror.c (perror): Use __close instead of close.
3539 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3540 * libio/freopen.c (freopen): Likewise.
3541 * libio/freopen64.c (freopen64): Likewise.
3543 * libio/tst-ungetwc2.c (main): Define str const.
3545 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
3546 * libio/fwprintf.c: Also define __fwprintf.
3547 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
3548 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
3549 * assert/assert-perr.c: Likewise.
3550 * assert/assert.c: Likewise.
3551 * gmon/gmon.c: Likewise.
3552 * inet/rcmd.c: Likewise.
3553 * malloc/obstack.c: Likewise.
3554 * misc/err.c: Likewise.
3555 * misc/error.c: Likewise.
3556 * misc/getpass.c: Likewise.
3557 * posix/getopt.c: Likewise.
3558 * resolv/res_hconf.c: Likewise.
3559 * stdio-common/perror.c: Likewise.
3560 * stdio-common/psignal.c: Likewise.
3561 * stdlib/fmtmsg.c: Likewise.
3562 * sunrpc/auth_unix.c: Likewise.
3563 * sunrpc/clnt_perr.c: Likewise.
3564 * sunrpc/clnt_tcp.c: Likewise.
3565 * sunrpc/clnt_udp.c: Likewise.
3566 * sunrpc/clnt_unix.c: Likewise.
3567 * sunrpc/svc_simple.c: Likewise.
3568 * sunrpc/svc_tcp.c: Likewise.
3569 * sunrpc/svc_udp.c: Likewise.
3570 * sunrpc/svc_unix.c: Likewise.
3571 * sunrpc/xdr.c: Likewise.
3572 * sunrpc/xdr_array.c: Likewise.
3573 * sunrpc/xdr_rec.c: Likewise.
3574 * sunrpc/xdr_ref.c: Likewise.
3575 * sysdeps/generic/wordexp.c: Likewise.
3577 * po/it.po: Update from translation team.
3579 * misc/err.c: Handle wide oriented stderr stream.
3581 2001-08-14 Tom Rix <trix@redhat.com>
3583 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
3584 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
3586 2001-08-13 Tom Rix <trix@redhat.com>
3588 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
3589 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
3592 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
3594 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
3595 Store the access registers to the ucontext structure.
3596 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
3599 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
3600 Load the access registers from the ucontext structure.
3601 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
3604 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
3605 offsets to the new ucontext layout.
3606 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
3608 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
3609 of the ucontext structure.
3610 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3612 2001-08-15 Ulrich Drepper <drepper@redhat.com>
3614 * misc/error.c (error): Handle wide oriented stderr stream correctly.
3615 (error_at_line): Likewise.
3617 * stdio-common/perror.c (perror): Implement according to standard.
3618 The stream orientation must not be changed if the stream was not
3619 oriented before the call.
3620 * stdio-common/Makefile (tests): Add tst-perror.
3621 * stdio-common/tst-perror.c: New file.
3624 See ChangeLog.12 for earlier changes.