1 2002-02-05 H.J. Lu <hjl@gnu.org>
3 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch
5 (atomic_add): Likewise.
6 (compare_and_swap): Likewise.
7 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
10 2002-02-07 Ulrich Drepper <drepper@redhat.com>
12 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
13 alignment of the TCB and store total size and alignment of static
14 TLS block in _dl_tls_static_size and _dl_tls_static_align.
15 tls_index is a typedef.
16 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
18 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
19 * elf/dl-support.c: Define _dl_tls_static_size and
22 2002-02-06 Ulrich Drepper <drepper@redhat.com>
24 * configure.in: Add --without-tls option.
25 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
26 --without-tls is given.
28 * sysdeps/generic/dl-tls.c: Include <tls.h>.
30 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
32 2002-02-06 Roland McGrath <roland@frob.com>
34 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
35 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
37 * scripts/versions.awk: Improve error message for missing version.
38 Each version inherits from the last one only if they have the same
39 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
40 but not GLIBC_x and FOO_y.
42 * scripts/firstversions.awk: Handle libraries that don't have each
43 particular version named in the third column of shlib-versions.
45 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
47 2002-02-06 Ulrich Drepper <drepper@redhat.com>
49 * Versions.def [ld]: Add GLIBC_2.3.
50 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
51 * elf/Makefile (dl-routines): Add dl-tls.
52 (distribute): Add dl-tls.h.
53 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
54 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
55 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
56 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
57 along with the other info in the link map. Change queueing of init
58 images for double linked list. Use _dl_next_tls_modid to compute
60 * elf/rtld.c (_dl_start_final): Store alignment requirement
61 along with the other info in rtld map and executable map.
62 (dl_main): Add ld.so to the init image list if necessary. Compute
63 final module ID with _dl_next_tls_modid.
64 * include/link.h (struct link_map): Add l_tls_previmage and
66 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
67 * sysdeps/i386/elf/Versions: New file.
68 * sysdeps/generic/dl-tls.c: New file.
69 * sysdeps/generic/dl-tls.h: New file.
70 * sysdeps/i386/dl-tls.h: New file.
72 2002-02-06 Roland McGrath <roland@frob.com>
74 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
75 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
77 2002-01-05 Roland McGrath <roland@frob.com>
79 * sysdeps/mach/configure.in: New file.
80 * sysdeps/mach/configure: New generated file.
82 * mach/Makefile (user-interfaces): Remove default_pager_helper.
83 It has never been used by anything.
85 2002-02-06 H.J. Lu <hjl@gnu.org>
87 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
90 2002-02-06 Ulrich Drepper <drepper@redhat.com>
92 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
93 attribute((packed)) to counter stupid people misusing gcc options.
94 (struct stat64): Likewise.
96 2002-02-05 Ulrich Drepper <drepper@redhat.com>
98 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
99 the variables which are used as booleans.
101 2002-02-06 Andreas Jaeger <aj@suse.de>
103 * include/libc-symbols.h (INTUSE): Renamed from INT.
104 * elf/dl-deps.c: Change users.
105 * sysdeps/generic/dl-sysdep.c: Likewise.
106 * sysdeps/generic/dl-cache.c: Likewise.
107 * elf/dl-reloc.c: Likewise.
108 * elf/rtld.c: Likewise.
109 * elf/dl-version.c: Likewise.
110 * elf/dl-load.c: Likewise.
111 * elf/dl-dst.h: Likewise.
112 * elf/dl-init.c: Likewise.
113 * elf/dl-error.c: Likewise.
114 * elf/dl-fini.c: Likewise.
115 * elf/dl-runtime.c: Likewise.
116 * elf/do-lookup.h: Likewise.
118 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
120 * stdio-common/_itowa.h: Likewise.
122 2002-02-05 Ulrich Drepper <drepper@redhat.com>
124 * elf/dl-minimal.c: Define _itoa_lower_digits.
126 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
129 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
130 loading modules with the DF_STATIC_TLS flag set.
131 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
133 * include/link.h (struct link_map): Add l_flags field.
134 * elf/elf.h (DF_STATIC_TLS): New definition.
136 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
137 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
139 * elf/rtld.c (process_dl_debug): Correct printing help message.
140 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
143 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
144 definition and pass &errno in use of this variable.
145 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
147 2002-02-04 Andreas Schwab <schwab@suse.de>
149 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
150 * locale/programs/charmap-dir.c: Wrap calls that output messages
151 with WITH_CUR_LOCALE. Include "localedef.h" first.
152 * locale/programs/charmap.c: Likewise.
153 * locale/programs/ld-address.c: Likewise.
154 * locale/programs/ld-collate.c: Likewise.
155 * locale/programs/ld-ctype.c: Likewise.
156 * locale/programs/ld-identification.c: Likewise.
157 * locale/programs/ld-measurement.c: Likewise.
158 * locale/programs/ld-messages.c: Likewise.
159 * locale/programs/ld-monetary.c: Likewise.
160 * locale/programs/ld-name.c: Likewise.
161 * locale/programs/ld-numeric.c: Likewise.
162 * locale/programs/ld-paper.c: Likewise.
163 * locale/programs/ld-telephone.c: Likewise.
164 * locale/programs/ld-time.c: Likewise.
165 * locale/programs/linereader.c: Likewise.
166 * locale/programs/linereader.h: Likewise.
167 * locale/programs/localedef.c: Likewise.
168 * locale/programs/locfile.c: Likewise.
169 * locale/programs/repertoire.c: Likewise.
171 2002-02-05 Ulrich Drepper <drepper@redhat.com>
173 * elf/rtld.c (_dl_start_final): Determine load address to locate
174 ehdr with GL(dl_rtld_map).l_map_start.
176 * po/ca.po: Update from translation team.
178 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
179 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
181 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
183 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
185 2002-02-04 Ulrich Drepper <drepper@redhat.com>
187 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
188 * include/link.h (struct link_map): Add various members for TLS
190 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
191 _rtld_tlsoffset, add _dl_initimage_list.
192 * sysdeps/i386/dl-lookupcfg.h: New file.
193 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
194 TLS relocation. When using TLS we now use RESOLVE_MAP.
195 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
198 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
201 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
202 thread-pointer as soon as possible.
203 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
204 elements in rtld_global.
205 * sysdeps/generic/tls.h: New file.
206 * elf/Makefile (distribute): Add tls.h.
207 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
208 relocations. Not complete yet.
210 * resolv/resolv.h: Allow user to define __need_res_state and only
211 define __res_start structure then.
212 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
214 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
215 dl_cpuclock_offset initialization to _dl_start_final.
216 (_dl_show_auxv): Avoid unnecessary sign extension.
217 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
219 2002-02-03 Ulrich Drepper <drepper@redhat.com>
221 * config.h.in: Add HAVE_TLS_SUPPORT.
222 * sysdeps/i386/elf/configure.in: New file.
224 2002-02-03 Andreas Schwab <schwab@suse.de>
226 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
227 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
229 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
231 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
232 alloca if the memory reqirements are too high.
234 2002-02-03 Ulrich Drepper <drepper@redhat.com>
236 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
237 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
238 the former is available anyway and speed isn't important here.
239 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
240 * elf/dl-version.c (match_symbol): Likewise.
241 (_dl_check_map_versions): Likewise.
242 * elf/rtld.c (process_envvars): Likewise.
243 (print_statistics): Likewise.
244 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
245 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
246 bases. Add assert to catch uses of unimplemented features.
247 (__strsep): Add assert to catch uses of unimplemented features.
248 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
249 and avoid inline optimization.
250 * elf/rtld.c (process_envvars): Likewise.
251 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
252 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
253 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
255 2002-02-02 Ulrich Drepper <drepper@redhat.com>
257 * stdio-common/_itoa.h: Minor simplifications of the code.
258 * stdio-common/_itoa.c: Likewise.
260 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
261 instead of _dl_printf for debugging info output.
263 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
264 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
266 2002-02-01 H.J. Lu <hjl@gnu.org>
268 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
269 (atomic_add): Likewise.
270 (compare_and_swap): Return 0 only when failed to compare. Use
273 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
276 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
278 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
280 2002-02-02 Ulrich Drepper <drepper@redhat.com>
282 * elf/dl-minimal.c (__strsep): New minimal implementation.
284 2002-02-02 Paul Eggert <eggert@twinsun.com>
286 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
287 (__mktime_internal): If no tm_isdst is requested, prefer solutions
288 with tm_isdst > 0 when the requested time falls within a
289 spring-forward gap [PR libc/2894].
291 2002-02-03 Andreas Schwab <schwab@suse.de>
293 * stdio-common/tst-rndseek.c: Increase timeout.
295 2002-02-02 Ulrich Drepper <drepper@redhat.com>
297 Change ld.so to not use functions which are exported. One cannot
298 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
300 * include/libc-symbols.h: Define INT and INTDEF.
301 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
302 _dl_signal_error_internal, _dl_map_object_internal,
303 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
304 _dl_lookup_versioned_symbol_internal,
305 _dl_relocate_object_internal, _dl_debug_state_internal,
306 _dl_start_profile_internal, and _dl_unload_cache_internal.
307 * include/dlfcn.h: Declare _dl_catch_error_internal.
308 * elf/rtld.c: Use INT for calls to any of the *_internal functions
309 above. Add INTDEF to function definitions.
310 * elf/dl-debug.c: Likewise.
311 * elf/dl-deps.c: Likewise.
312 * elf/dl-dst.h: Likewise.
313 * elf/dl-error.c: Likewise.
314 * elf/dl-fini.c: Likewise.
315 * elf/dl-init.c: Likewise.
316 * elf/dl-load.c: Likewise.
317 * elf/dl-lookup.c: Likewise.
318 * elf/dl-misc.c: Likewise.
319 * elf/dl-open.c: Likewise.
320 * elf/dl-profile.c: Likewise.
321 * elf/dl-reloc.c: Likewise.
322 * elf/dl-runtime.c: Likewise.
323 * elf/dl-version.c: Likewise.
324 * elf/do-lookup.h: Likewise.
325 * sysdeps/generic/dl-cache.c: Likewise.
326 * sysdeps/generic/dl-sysdep.c: Likewise.
327 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
329 * sysdeps/arm/dl-machine.h: Likewise.
330 * sysdeps/cris/dl-machine.h: Likewise.
331 * sysdeps/hppa/dl-machine.h: Likewise.
332 * sysdeps/i386/dl-machine.h: Likewise.
333 * sysdeps/ia64/dl-machine.h: Likewise.
334 * sysdeps/m68k/dl-machine.h: Likewise.
335 * sysdeps/mips/dl-machine.h: Likewise.
336 * sysdeps/mips/mips64/dl-machine.h: Likewise.
337 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
338 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
339 * sysdeps/sh/dl-machine.h: Likewise.
340 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
341 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
342 * sysdeps/x86_64/dl-machine.h: Likewise.
343 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
345 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
346 and _dl_debug_initialize.
348 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
350 * elf/rtld.c (dl_main): Avoid strrchr.
351 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
352 result of readlink. Search from the back for '/'.
354 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
357 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
359 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
360 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
362 (process_envvars): Don't use strcspn.
364 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
365 (_dl_dst_substitute): Likewise.
367 2002-02-01 Ulrich Drepper <drepper@redhat.com>
369 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
370 code which is never used when relocating ld.so itself.
372 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
373 starting ld.so itself. Move l_addr variable initialization closer
375 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
377 2002-02-01 Jakub Jelinek <jakub@redhat.com>
379 * Versions.def (libc): Add GLIBC_PRIVATE.
380 (libdb, libnss_db, libdb1): Remove.
381 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
382 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
383 (libpthread): Add GLIBC_PRIVATE.
384 (libresolv): Likewise, remove GLIBC_2.1.
385 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
386 GLIBC_2.2.3, GLIBC_2.3.
387 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
388 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
389 _dl_sym, _dl_vsym): Likewise.
390 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
391 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
392 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
393 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
394 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
395 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
396 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
397 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
399 (_dl_object_relocation_scope): Remove.
400 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
401 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
402 __gconv_cache): Move to GLIBC_PRIVATE.
403 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
404 __internal_setnetgrent): Likewise.
405 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
406 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
407 * locale/Versions (__collate_element_hash, __collate_element_strings,
408 __collate_symbol_classes, __collate_symbol_hash,
409 __collate_symbol_strings, _nl_current_LC_COLLATE,
410 _nl_current_LC_CTYPE): Likewise.
411 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
412 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
413 (libnss_nis, libnss_nisplus): Likewise.
414 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
415 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
416 (libnss_files): Move all symbols to GLIBC_PRIVATE.
417 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
418 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
419 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
420 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
421 __ns_get16, __ns_samename): Likewise.
422 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
423 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
425 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
426 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
427 __libc_connect): Likewise.
428 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
430 * stdlib/Versions (__libc_system): Likewise.
431 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
432 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
433 * sysdeps/ia64/fpu/Versions: Likewise.
434 * sysdeps/ia64/Versions: Likewise.
435 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
436 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
438 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
439 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
440 __libc_sigaction): Likewise.
441 * termios/Versions (__libc_tcdrain): Likewise.
443 * misc/sys/cdefs (__attribute_noinline__): Define.
444 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
445 __attribute_noinline__.
447 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
448 * elf/dl-xstat64.c: New file.
449 * elf/dl-fxstat64.c: New file.
450 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
451 don't export __fxstat64 at multiple versions.
452 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
453 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
455 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
457 * locale/program/ld-collate.c (collate_finish): Assign a wide
458 char collation sequence value to multi character collating
459 elements, and avoid over writing by non-character elements.
461 2002-02-01 Ulrich Drepper <drepper@redhat.com>
463 * elf/Makefile (distribute): Add dl-procinfo.c.
464 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
465 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
467 2002-02-01 Jakub Jelinek <jakub@redhat.com>
469 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
471 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
473 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
474 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
475 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
476 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
477 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
478 _dl_fpu_control_set): Remove unused externs.
479 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
480 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
481 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
482 related variables in _rtld_global struct.
483 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
484 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
487 2002-02-01 Ulrich Drepper <drepper@redhat.com>
489 * sysdeps/generic/dl-procinfo.c: New file.
491 2002-02-01 Andreas Schwab <schwab@suse.de>
493 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
495 2002-02-01 Ulrich Drepper <drepper@redhat.com>
497 * elf/rtld.c (_dl_start): Mark as internal_function.
498 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
500 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
501 General pretty printing.
503 2002-01-31 Ulrich Drepper <drepper@redhat.com>
505 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
506 * elf/dl-reloc.c: Pretty printing.
507 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
508 procinfo-related variables in rtld_global struct.
509 * elf/dl-support.c: Likewise.
510 * elf/rtld.c: Likewise.
511 * sysdeps/i386/i686/Makefile: Likewise.
512 * sysdeps/i386/i686/hp-timing.c: Likewise.
513 * sysdeps/i386/i686/hp-timing.h: Likewise.
514 * sysdeps/ia64/Makefile: Likewise.
515 * sysdeps/ia64/hp-timing.c: Likewise.
516 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
517 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
518 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
519 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
520 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
521 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
522 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
523 * sysdeps/x86_64/Makefile: Likewise.
525 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
526 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
527 _dl_debug_fd to rtld_global.
528 * elf/Versions: Likewise.
529 * elf/dl-close.c: Likewise.
530 * elf/dl-iteratephdr.c: Likewise.
531 * elf/dl-lookup.c: Likewise.
532 * elf/dl-misc.c: Likewise.
533 * elf/dl-open.c: Likewise.
534 * elf/dl-support.c: Likewise.
535 * elf/do-lookup.h: Likewise.
536 * elf/rtld.c: Likewise.
537 * sysdeps/generic/dl-cache.c: Likewise.
538 * sysdeps/generic/dl-sysdep.c: Likewise.
539 * sysdeps/ia64/Versions: Likewise.
540 * sysdeps/unix/clock_gettime.c: Likewise.
541 * sysdeps/unix/clock_settime.c: Likewise.
542 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
543 * sysdeps/sparc/Versions: Removed.
544 * sysdeps/i386/i686/Versions : Removed.
545 * sysdeps/x86_64/Versions: Removed.
546 * configure.in: Define HAVE_PROTECTED if .protected is available.
547 * config.h.in: Add entry for HAVE_PROTECTED.
549 2002-01-31 Jakub Jelinek <jakub@redhat.com.
551 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
552 code in struct _rtld_global. Export this struct, remove all
553 exports for the signal variables.
554 * sysdeps/arm/dl-machine: Likewise.
555 * sysdeps/generic/dl-origin: Likewise.
556 * sysdeps/generic/dl-sysdep: Likewise.
557 * sysdeps/generic/dl-cache: Likewise.
558 * sysdeps/hppa/dl-fptr: Likewise.
559 * sysdeps/hppa/dl-machine: Likewise.
560 * sysdeps/cris/dl-machine: Likewise.
561 * sysdeps/i386/dl-machine: Likewise.
562 * sysdeps/ia64/dl-machine: Likewise.
563 * sysdeps/m68k/dl-machine: Likewise.
564 * sysdeps/mach/hurd/dl-sysdep: Likewise.
565 * sysdeps/mips/mips64/dl-machine: Likewise.
566 * sysdeps/mips/dl-machine: Likewise.
567 * sysdeps/powerpc/elf/libc-start: Likewise.
568 * sysdeps/powerpc/dl-machine: Likewise.
569 * sysdeps/powerpc/dl-start: Likewise.
570 * sysdeps/sparc/sparc32/dl-machine: Likewise.
571 * sysdeps/sparc/sparc64/dl-machine: Likewise.
572 * sysdeps/sh/dl-machine: Likewise.
573 * sysdeps/s390/s390-32/dl-machine: Likewise.
574 * sysdeps/s390/s390-64/dl-machine: Likewise.
575 * sysdeps/unix/sysv/aix/libc-start: Likewise.
576 * sysdeps/unix/sysv/aix/start-libc: Likewise.
577 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
578 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
579 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
580 * sysdeps/x86_64/dl-machine: Likewise.
582 2002-01-31 Ulrich Drepper <drepper@redhat.com>
584 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
587 2002-01-31 Andreas Schwab <schwab@suse.de>
589 * sysdeps/posix/readv.c: Check for ssize_t overflow.
591 2002-01-31 Andreas Schwab <schwab@suse.de>
593 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
594 reference to _dl_pagesize.
596 2002-01-30 Ulrich Drepper <drepper@redhat.com>
598 * Versions.def [ld]: Add GLIBC_2.3.
599 * elf/dl-addr.c: Move global variables for SHARED code in struct
600 _rtld_global. Export this struct, remove all exports for the
602 * elf/dl-close.c: Likewise.
603 * elf/dl-conflict.c: Likewise.
604 * elf/dl-debug.c: Likewise.
605 * elf/dl-deps.c: Likewise.
606 * elf/dl-dst.h: Likewise.
607 * elf/dl-error.c: Likewise.
608 * elf/dl-fini.c: Likewise.
609 * elf/dl-init.c: Likewise.
610 * elf/dl-iteratephdr.c: Likewise.
611 * elf/dl-libc.c: Likewise.
612 * elf/dl-load.c: Likewise.
613 * elf/dl-lookup.c: Likewise.
614 * elf/dl-minimal.c: Likewise.
615 * elf/dl-object.c: Likewise.
616 * elf/dl-open.c: Likewise.
617 * elf/dl-profile.c: Likewise.
618 * elf/dl-profstub.c: Likewise.
619 * elf/dl-reloc.c: Likewise.
620 * elf/dl-runtime.c: Likewise.
621 * elf/dl-support.c: Likewise.
622 * elf/dl-sym.c: Likewise.
623 * elf/dl-version.c: Likewise.
624 * elf/do-lookup.h: Likewise.
625 * elf/do-rel.h: Likewise.
626 * elf/dynamic-link.h: Likewise.
627 * elf/rtld.c: Likewise.
628 * sysdeps/generic/dl-cache.c: Likewise.
629 * sysdeps/generic/dl-sysdep.c: Likewise.
630 * sysdeps/generic/ldsodefs.h: Likewise.
631 * sysdeps/generic/libc-start.c: Likewise.
632 * sysdeps/i386/dl-machine.h: Likewise.
633 * sysdeps/ia64/dl-fptr.c: Likewise.
634 * sysdeps/ia64/dl-machine.h: Likewise.
635 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
636 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
637 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
638 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
639 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
640 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
641 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
642 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
644 2002-01-29 Ulrich Drepper <drepper@redhat.com>
646 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
648 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
650 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
652 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
654 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
656 2002-01-29 Ben Collins <bcollins@debian.org>
658 * string/bits/string2.h (__mempcpy): Protect size arg for
659 addition when using __builtin_memcpy.
661 2002-01-29 Ulrich Drepper <drepper@redhat.com>
663 * stdlib/Makefile (tests): Add tst-qsort.
664 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
666 * manual/signal.texi (Process Signal Mask): Document that
667 pthread_sigmask, not sigprocmask, must be used in MT programs.
668 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
670 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
672 * misc/Makefile (tests): Add tst-hsearch.
673 * misc/tst-hsearch.c: New file.
675 2002-01-18 Wolfram Gloger <wg@malloc.de>
677 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
678 * malloc/malloc.h: Likewise.
679 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
680 * malloc/arena.c: New file.
681 * malloc/hooks.c: New file.
682 * malloc/tst-mallocstate.c: New file.
683 * malloc/Makefile: Add new testcase tst-mallocstate.
684 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
686 2002-01-28 Ulrich Drepper <drepper@redhat.com>
688 * stdlib/msort.c: Remove last patch. The optimization violates the
689 same rule which qsort.c had problems with.
691 2002-01-27 Paul Eggert <eggert@twinsun.com>
693 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
694 to a pivot element that lies outside the array to be sorted, as
695 ISO C99 requires that the comparison function be called only with
696 addresses of array elements [PR libc/2880].
698 2002-01-28 Ulrich Drepper <drepper@redhat.com>
700 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
701 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
703 * timezone/asia: Update from tzdata2002b.
704 * timezone/australasia: Likewise.
705 * timezone/backward: Likewise.
706 * timezone/europe: Likewise.
707 * timezone/leapseconds: Likewise.
708 * timezone/iso3166.tab: Likewise.
709 * timezone/zone.tab: Likewise.
711 2002-01-23 Richard Henderson <rth@redhat.com>
713 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
715 2002-01-28 Ulrich Drepper <drepper@redhat.com>
717 * string/strxfrm.c: Allocate one more byte for rulearr and clear
718 this element [PR libc/2855].
720 * string/strcoll.c: Handle zero-length arguments specially
723 2002-01-23 Jakub Jelinek <jakub@redhat.com>
725 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
726 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
727 short lengths and constant src.
728 (strcpy): Don't optimize for gcc 3.0+.
729 (__stpcpy): For gcc 3.0+, don't use
730 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
731 for short string literal src.
733 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
735 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
738 2001-01-22 Paul Eggert <eggert@twinsun.com>
740 * manual/llio.texi (Linked Channels, Cleaning Streams):
741 Make it clearer that a just-opened input stream might need cleaning.
743 2002-01-21 H.J. Lu <hjl@gnu.org>
745 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
746 Don't use label at end of compound statement.
748 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
750 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
751 Remove test for negative integer arg; sin_pi does it correctly.
753 2002-01-20 Ulrich Drepper <drepper@redhat.com>
755 * nscd/Makefile (distribute): Filter out xmalloc.c.
757 2002-01-19 Ulrich Drepper <drepper@redhat.com>
759 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
760 Set offset if read end wasn't the buffer end.
761 (_IO_file_seekoff_mmap): New function.
762 (_IO_file_xsgetn_mmap): New function.
763 (_IO_file_jumps_mmap): Use the two new functions.
764 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
766 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
767 _IO_file_underflow_mmap.
768 * libio/iofopen.c: Don't position file descriptor at end of file.
769 * libio/tst-widetext.c: Improve error messages.
770 * stdio-common/tst-rndseek.c: Likewise.
772 2002-01-18 Ulrich Drepper <drepper@redhat.com>
774 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
775 end of enum for !_GNU_SOURCE.
776 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
777 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
778 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
779 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
780 values unless _GNU_SOURCE.
782 * iconvdata/tcvn5712-1.c: Minor cleanups.
784 2002-01-18 Andreas Schwab <schwab@suse.de>
786 * sysdeps/unix/sysv/linux/configure.in
787 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
789 2002-01-16 Roger Sayle <roger@eyesopen.com>
791 * stdlib/msort.c (msort_with_tmp): Replace implementation with
792 more efficient "Towers of Hanoi" mergesort.
793 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
794 for generic, sizeof(int) and sizeof(long) variants respectively.
796 2002-01-17 Ulrich Drepper <drepper@redhat.com>
798 * manual/syslog.texi (openlog): Describe possible problems with
800 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
802 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
803 * nscd/connections.c (begin_drop_privileges): New function.
804 (finish_drop_privileges): New function.
805 (nscd_init): Call the new functions which also install all groups
807 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
808 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
810 2002-01-17 H.J. Lu <hjl@gnu.org>
812 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
815 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
817 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
818 instructions for pointer operations.
819 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
821 2002-01-17 Andreas Jaeger <aj@suse.de>
823 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
824 __uint128_t build-in.
826 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
827 PowerPC, sync with 2.2 branch.
829 2002-01-16 Ulrich Drepper <drepper@redhat.com>
831 * posix/getconf.c: Update copyright year.
832 * nss/getent.c: Likewise.
833 * nscd/nscd_nischeck.c: Likewise.
834 * iconv/iconvconfig.c: Likewise.
835 * iconv/iconv_prog.c: Likewise.
836 * elf/ldconfig.c: Likewise.
837 * catgets/gencat.c: Likewise.
838 * csu/version.c: Likewise.
839 * elf/ldd.bash.in: Likewise.
840 * elf/sprof.c (print_version): Likewise.
841 * locale/programs/locale.c: Likewise.
842 * locale/programs/localedef.c: Likewise.
843 * nscd/nscd.c (print_version): Likewise.
844 * debug/xtrace.sh: Likewise.
845 * malloc/memusage.sh: Likewise.
846 * malloc/mtrace.pl: Likewise.
848 2002-01-16 Andreas Schwab <schwab@suse.de>
850 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
851 reliably remove "-ia64" from rtld name.
853 2002-01-16 Ulrich Drepper <drepper@redhat.com>
855 * iconvdata/gb18030.c: Bug fixes and support for more characters.
856 Patch by Yu Shao <yshao@redhat.com>.
858 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
860 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
861 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
862 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
864 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
866 * sysdeps/s390/fpu/libm-test-ulps: Update.
868 2002-01-11 Ulrich Drepper <drepper@redhat.com>
870 * elf/elf.h: Update x86 relocations.
872 2002-01-10 Ulrich Drepper <drepper@redhat.com>
874 * locale/programs/charmap.c (new_width): Check whether byte
875 sequences for both ends of range have the same length.
877 2002-01-09 Jakub Jelinek <jakub@redhat.com>
879 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
881 2002-01-09 Jakub Jelinek <jakub@redhat.com>
883 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
885 (__full_ieee754_sqrt): Add __attribute_used__.
887 2002-01-10 Ulrich Drepper <drepper@redhat.com>
889 * sysdeps/generic/group_member.c (__group_member): Also check
890 groups[0] [PR libc/2781].
892 2002-01-08 Ulrich Drepper <drepper@redhat.com>
894 * Makefile (distribute): Add scripts/cpp.
895 * elf/Makefile (distribute): Add reldep6mod[01234].c,
896 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
897 unwind-dw2-fde.h, and dwarf2.h.
898 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
899 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
900 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
901 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
903 2002-01-07 Roland McGrath <roland@frob.com>
905 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
906 volatile on type of ARGC so the compiler doesn't get clever.
908 2002-01-07 Andreas Jaeger <aj@suse.de>
910 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
911 * sysdeps/i386/bits/byteswap.h: Likewise.
912 * sysdeps/ia64/bits/byteswap.h: Likewise.
913 * sysdeps/m68k/bits/byteswap.h: Likewise.
914 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
915 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
917 2002-01-02 Bruno Haible <bruno@clisp.org>
919 * intl/plural.y: Fix %expect count.
921 2002-01-03 Jakub Jelinek <jakub@redhat.com>
923 * elf/Makefile (routines, shared-only-routines): Add
924 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
925 * elf/elf.h (PT_GNU_EH_FRAME): Define.
926 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
927 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
928 Optimize if .eh_frame section contains no FDEs.
929 (__register_frame, __deregister_frame_info_bases,
930 __deregister_frame): Likewise.
931 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
932 DW_CFA_restore handling.
934 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
936 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
938 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
939 for x < 0.25 and restore original range reduction method.
940 (__ieee754_lgammal_r): Make sure signgam is set before returning.
942 2002-01-07 Ulrich Drepper <drepper@redhat.com>
944 * libio/fileops.c (_IO_file_underflow_mmap): New function.
945 (_IO_file_close_mmap): New function.
946 (_IO_file_jumps_mmap): New variable.
947 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
948 trying to convert rest of byte buffer.
949 (_IO_wfile_underflow_mmap): New function.
950 (_IO_wfile_jumps_mmap): New variable.
951 * libio/iofopen.c (__fopen_maybe_mmap): New function.
952 (__fopen_internal): New function. Split out from _IO_new_fopen.
953 (_IO_new_fopen): Call __fopen_internal.
954 * libio/iofopen64.c: Just call __fopen_internal.
955 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
957 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
958 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
961 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
962 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
964 * stdio-common/Makefile (tests): Add tst-rndseek.
965 * stdio-common/tst-rndseek.c: New file.
967 2002-01-05 Roland McGrath <roland@frob.com>
969 * config.h.in (HAVE_MIG_RETCODE): New #undef.
970 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
971 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
972 * sysdeps/mach/hurd/configure: Regenerated.
974 2002-01-03 Ulrich Drepper <drepper@redhat.com>
976 * elf/elf.h: Add more TLS definitions.
978 2002-01-02 Ulrich Drepper <drepper@redhat.com>
980 * include/features.h (__GLIBC_MINOR__): Bump to 3.
982 2002-01-02 Roland McGrath <roland@frob.com>
984 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
985 __sigisemptyset. Don't use MASK uninitialized.
987 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
988 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
989 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
990 __sigdelset, __sigaddset, __sigorset.
992 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
993 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
995 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
998 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
999 for old CMU and new OSF Mach interface flavors.
1000 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
1001 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1003 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
1005 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
1006 Pass extra arguments to task_create for OSF variant.
1007 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1009 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
1010 conditional on [HAVE_AUX_VECTOR].
1012 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
1013 mach_msg_timeout_t as type of final argument.
1015 * hurd/privports.c (__get_privileged_ports):
1016 Change host_priv_t to mach_port_t in argument type.
1017 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
1020 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
1021 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
1022 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
1023 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
1024 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
1025 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1027 2002-01-01 Roland McGrath <roland@frob.com>
1029 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
1031 2002-01-01 Ulrich Drepper <drepper@redhat.com>
1033 * include/stdlib.h: Define inlines for the _l variants of the strto*
1036 2002-01-01 Roland McGrath <roland@frob.com>
1038 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
1040 * mach/Machrules (MIG): Set CPP as well as CC.
1042 2001-12-31 Ulrich Drepper <drepper@redhat.com>
1044 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
1045 locale to parse /proc/loadavg [PR libc/2760].
1047 2001-12-31 Jakub Jelinek <jakub@redhat.com>
1049 * elf/dl-conflict.c: Include sys/param.h.
1050 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
1051 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
1053 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
1054 literals to avoid warnings.
1056 2001-12-31 Andreas Jaeger <aj@suse.de>
1058 * configure.in: Don't check for gsed since we do not use it anywhere.
1060 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
1062 * io/fts.c: Update from BSD to fix memory leaks.
1064 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
1066 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
1067 * elf/chroot_canon.c: Likewise.
1068 * elf/dl-object.c: Likewise.
1069 * iconv/iconv_charmap.c: Likewise.
1070 * iconv/iconv_prog.c: Likewise.
1071 * libio/iogetdelim.c: Likewise.
1072 * locale/lc-time.c: Likewise.
1073 * stdlib/canonicalize.c: Likewise.
1074 * sunrpc/svc.c: Likewise.
1075 * sysdeps/generic/glob.c: Likewise.
1077 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1079 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
1080 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
1081 remove high order bit from the program counter.
1082 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
1084 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1086 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1087 unnecessary code and add missing reloc types.
1088 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
1089 case for reloc type R_390_NONE.
1091 2001-12-28 Andreas Jaeger <aj@suse.de>
1093 * io/bug-ftw3.c: Include string.h for prototypes.
1095 * crypt/md5test.c (main): Remove unused variable.
1097 * dlfcn/modstatic.c: Add prototype to avoid warning.
1099 2001-12-26 Roland McGrath <roland@frob.com>
1101 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
1102 check only (SS->pending & MASK) for the signal to return.
1103 From Jeroen Dekkers <jeroen@dekkers.cx>.
1105 2001-12-22 Roland McGrath <roland@frob.com>
1107 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
1108 Use preprocessor #if conditionals instead of `if' to avoid
1109 warnings about divide by zero in dead code.
1111 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
1112 _hurd_port_init, and __hurd_self_sigstate.
1114 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
1116 2001-12-21 Andreas Jaeger <aj@suse.de>
1118 * elf/dblloadmod1.c: Add prototype to avoid warning.
1119 * elf/dblloadmod2.c: Likewise.
1120 * elf/dblloadmod3.c: Likewise.
1121 * elf/reldepmod5.c: Likewise.
1122 * elf/reldepmod6.c: Likewise.
1124 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
1125 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
1126 used on all architectures.
1128 * sunrpc/svc_tcp.c: Add noreturn attribute for
1129 svctcp_rendezvous_abort.
1130 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
1132 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
1135 2001-12-19 Jakub Jelinek <jakub@redhat.com>
1137 * manual/llio.texi (aio_fsync): Fix a typo.
1138 Patch by Tammy Fox <tfox@redhat.com>.
1140 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1142 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
1143 stack bias from child stack pointer before passing it to clone syscall.
1145 2001-12-18 Ulrich Drepper <drepper@redhat.com>
1147 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
1149 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
1150 Reported by Thorsten Kukuk <kukuk@suse.de>.
1152 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
1155 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
1157 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
1159 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
1160 conforming: return EBADF if file descriptor is invalid and EINVAL
1161 if file descriptor is no valid tty.
1162 * login/tst-grantpt.c: New file.
1163 * login/Makefile (tests): Add tst-grantpt.
1165 2001-12-17 Ulrich Drepper <drepper@redhat.com>
1167 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
1168 different than implemented in last patch.
1169 * io/bug-ftw3.c: Adjust test for changed handling of
1170 inaccessibility of toplevel dir.
1172 2001-12-16 Roland McGrath <roland@frob.com>
1174 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
1175 * grp/initgroups.c (internal_getgrouplist): Likewise.
1177 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
1178 `default:' to silence new GCC warning.
1179 Rewrite cast of lvalue to silence new GCC warning.
1181 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
1183 * sysdeps/mach/hurd/spawni.c: New file, by me with a
1184 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
1186 2001-12-14 Ulrich Drepper <drepper@redhat.com>
1188 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
1189 Patch by Stephen R. van den Berg.
1191 * crypt/md5.h: Define md5_uintptr.
1193 2001-12-13 Ulrich Drepper <drepper@redhat.com>
1195 * libio/tst_swprintf.c (main): Add test for string argument with
1197 * stdio-common/Makefile (tests): Add tst-sprintf.
1198 * stdio-common/tst-sprintf.c: New file.
1200 2001-12-13 Andreas Schwab <schwab@suse.de>
1202 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
1203 zero precision with wide character string format.
1205 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
1207 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
1208 but have a user supplied buffer, return the empty buffer, not NULL.
1210 2001-12-13 Ulrich Drepper <drepper@redhat.com>
1212 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
1213 Patch by Eric Sharkey <sharkey@netrics.com>.
1215 * crypt/md5test.c (main): Add test for multiple calls to
1216 __md5_process_bytes to itererate over input string.
1218 2001-12-12 Ulrich Drepper <drepper@redhat.com>
1220 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
1221 from __nis_findfastest. Take timeout value from parameter.
1222 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
1223 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
1224 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
1226 2001-12-12 Andreas Jaeger <aj@suse.de>
1228 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
1229 combreloc test so that it works in this case.
1231 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
1233 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
1235 * sysdeps/sh/Makefile: New file.
1236 * sysdeps/sh/_mcount.S: New file.
1237 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
1238 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
1240 2001-12-11 Ulrich Drepper <drepper@redhat.com>
1242 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
1243 limitation [PR libc/2564].
1245 2001-12-11 Jakub Jelinek <jakub@redhat.com>
1247 * elf/Makefile (dl-routines): Add conflict.
1248 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
1249 (ld.so): Add _begin local symbol.
1250 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
1252 * elf/dl-deps.c (_dl_build_local_scope): New.
1253 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
1255 * elf/do-rel.h (VALIDX): Define.
1256 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
1257 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
1259 * elf/dl-conflict.c: New file.
1260 * elf/dl-lookup.c (_dl_debug_bindings): New.
1261 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
1263 (_dl_lookup_symbol_skip): Likewise.
1264 (_dl_lookup_versioned_symbol): Likewise.
1265 (_dl_lookup_versioned_symbol_skip): Likewise.
1266 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
1267 define to ElfW(Rel).
1268 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
1269 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
1271 Don't adjust address dynamic tags if l_addr is 0.
1272 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
1273 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
1274 (VALIDX, ADDRIDX): Define.
1275 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
1276 (dl_main): Print library list for LD_TRACE_PRELINKING.
1277 If prelinking information can be used, skip relocating libraries and
1278 call _dl_resolve_conflicts instead.
1279 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
1280 * elf/dl-load.c (_dl_map_object): Don't create fake libs
1281 if LD_TRACE_PRELINKING.
1282 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
1284 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
1285 (DL_DEBUG_PRELINK): Define.
1286 (_dl_resolve_conflicts): Add prototype.
1288 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
1289 .plt for prelinked libraries where prelinking info cannot be used.
1290 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
1291 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
1292 * sysdeps/arm/bits/link.h: New file.
1293 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
1295 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1296 (ELF_MACHINE_PLT_REL): Define.
1297 (elf_machine_rela, elf_machine_rela_relative): New.
1298 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
1299 of adjusting it if prelinked and prelinking cannot be used.
1300 * sysdeps/i386/bits/link.h: New file.
1301 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
1303 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1304 (ELF_MACHINE_PLT_REL): Define.
1305 (elf_machine_rela, elf_machine_rela_relative): New.
1306 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
1307 of adjusting it if prelinked and prelinking cannot be used.
1308 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
1309 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
1310 to find out map for R_PPC_JMP_SLOT relocs.
1311 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
1312 (OPCODE_BA): Define.
1313 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1314 libraries where prelinking info cannot be used.
1315 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
1316 (elf_machine_fixup_plt): Call sparc_fixup_plt.
1317 (elf_machine_rela): Set value to 0 if relocating conflicts.
1318 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
1319 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
1320 (sparc64_fixup_plt): Fix a typo.
1321 (elf_machine_rela): Set value to 0 if relocating conflicts.
1322 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
1323 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1324 libraries where prelinking info cannot be used.
1325 * sysdeps/sh/bits/link.h: New file.
1326 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
1328 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
1329 of adjusting it if prelinked and prelinking cannot be used.
1330 * sysdeps/s390/s390-32/bits/link.h: New file.
1331 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
1332 Save original content of .got[1].
1333 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1334 of adjusting it if prelinked and prelinking cannot be used.
1335 * sysdeps/s390/s390-64/bits/link.h: New file.
1336 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
1337 Save original content of .got[1].
1338 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1339 of adjusting it if prelinked and prelinking cannot be used.
1340 * sysdeps/x86_64/bits/link.h: New file.
1341 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1342 Save original content of .got[1].
1343 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
1344 of adjusting it if prelinked and prelinking cannot be used.
1346 2001-12-11 Ulrich Drepper <drepper@redhat.com>
1348 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
1349 where appropriate instead of numbers. Little optimizations.
1351 2001-12-10 Roland McGrath <roland@frob.com>
1353 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
1356 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
1357 set to GLIBC_2.2.5, not GLIBC_2.2.4.
1359 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
1360 Fix conditionals so this is set by default for stdio and not for libio.
1361 * sysdeps/mach/hurd/configure: Regenerated.
1363 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
1365 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
1367 2001-12-10 Ulrich Drepper <drepper@redhat.com>
1369 * io/Makefile (tests): Add bug-ftw3.
1370 * io/bug-ftw3.c: New file.
1372 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
1373 matches and GLOB_NOCHECK is set.
1374 * posix/globtest.sh: Correct expected result for NOCHECK test.
1376 * po/ca.po: Update from translation team.
1378 2001-12-09 Ulrich Drepper <drepper@redhat.com>
1380 Implement transliteration of characters in strings of the locale
1382 * locale/programs/linereader.c: Adjust for additional parameter to
1384 (get_string): If character <Uxxxx> is not found try to transliterate
1386 * locale/programs/ld-ctype.c: Adjust for additional parameter to
1387 lr_token. Add const to charmap parameter of all functions.
1388 (find_translit, find_translit2): New functions.
1389 * locale/programs/charmap.c: Adjust for additional parameter to
1391 * locale/programs/repertoire.c: Likewise.
1392 * locale/programs/linereader.h: Likewise.
1393 * locale/programs/ld-address.c: Likewise. Add const to charmap
1394 parameter of all functions.
1395 * locale/programs/ld-collate.c: Likewise.
1396 * locale/programs/ld-identification.c: Likewise.
1397 * locale/programs/ld-measurement.c: Likewise.
1398 * locale/programs/ld-messages.c: Likewise.
1399 * locale/programs/ld-monetary.c: Likewise.
1400 * locale/programs/ld-name.c: Likewise.
1401 * locale/programs/ld-numeric.c: Likewise.
1402 * locale/programs/ld-paper.c: Likewise.
1403 * locale/programs/ld-paper.c: Likewise.
1404 * locale/programs/ld-telephone.c: Likewise.
1405 * locale/programs/ld-time.c: Likewise.
1406 * locale/programs/locfile.c: Likewise.
1407 * locale/programs/localedef.c: Likewise.
1408 * locale/programs/localedef.h: Likewise.
1409 * locale/programs/locfile.h: Likewise. Add declaration for
1411 * locale/programs/simple-hash.c: Add const to first parameter of
1412 find_entry, iterate_table, and lookup.
1413 * locale/programs/simple-hash.h: Likewise.
1414 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
1416 * include/locale.h: Define __LC_LAST.
1417 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
1419 2001-12-07 Geoff Keating <geoffk@redhat.com>
1421 * sysdeps/powerpc/Dist: Update for recent FP changes.
1422 * sysdeps/powerpc/fpu/Dist: Likewise.
1424 2001-12-07 Andreas Schwab <schwab@suse.de>
1426 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
1428 2001-12-06 Geoff Keating <geoffk@redhat.com>
1430 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
1431 save/restore functions here.
1432 (libm-support): Don't define these functions here.
1433 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
1435 * sysdeps/powerpc/fe_nomask.c: Move to...
1436 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
1437 * sysdeps/powerpc/fprrest.S: Move to...
1438 * sysdeps/powerpc/fpu/fprrest.S: ... here.
1439 * sysdeps/powerpc/fprsave.S: Move to...
1440 * sysdeps/powerpc/fpu/fprsave.S: ... here.
1442 2001-12-06 Ulrich Drepper <drepper@redhat.com>
1444 * sysdeps/unix/sysv/linux/opensock.c: New file.
1446 2001-12-06 Geoff Keating <geoffk@redhat.com>
1448 * config.make.in (with-fp): Define from configure.
1449 * configure.in: Substitute with_fp.
1450 * configure: Regenerate.
1451 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
1452 specified, and don't change FPU environment.
1454 2001-12-06 Ulrich Drepper <drepper@redhat.com>
1456 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
1457 * assert/assert.c: Check result of __asprintf call and don't use
1458 string if it failed.
1459 * assert/assert-perr.c: Likewise.
1460 * inet/rcmd.c: Likewise.
1461 * locale/programs/localedef.c (main): Check result of
1462 construct_output_path and exit if it failed.
1463 (construct_output_path): Check result of asprintf and mkdir calls and
1464 fail if they failed.
1465 * posix/getopt.c: Check result of __asprintf calls and fail if
1467 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
1469 2001-12-05 Ulrich Drepper <drepper@redhat.com>
1471 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
1473 * sysdeps/generic/strncase.c: Likewise.
1474 * string/tester.c: Add tests for strcasecmp and strncasecmp.
1476 2001-12-05 Geoff Keating <geoffk@redhat.com>
1478 * scripts/cpp: Test the exit status from 'type', not 'awk'.
1480 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
1481 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
1482 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
1483 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
1484 * sysdeps/powerpc/fclrexcpt.c: Move to...
1485 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
1486 * sysdeps/powerpc/fpu_control.h: Move to...
1487 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
1489 2001-12-05 Ulrich Drepper <drepper@redhat.com>
1491 * iconvdata/ibm1129.h: Remove duplicate mappings.
1492 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
1493 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
1494 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1496 * timezone/zic.c: Fix handling of turnaround times.
1497 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
1499 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
1501 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
1504 2001-12-05 Ulrich Drepper <drepper@redhat.com>
1506 * posix/regex.c: For use outside glibc defined bounded pointer
1507 macros here. Patch by Jim Meyering <jim@meyering.net>.
1509 * iconvdata/Makefile (modules): Add TCVN5712-1.
1510 * iconvdata/TESTS: Add TCVN5712-1.
1511 * iconvdata/gconv-modules: Likewise.
1512 * iconvdata/tcvn5712-1.c: New file.
1513 * iconvdata/testdata/TCVN-5712: New file.
1514 * iconvdata/testdata/TCVN-5712..UTF8: New file.
1516 2001-12-04 Ulrich Drepper <drepper@redhat.com>
1518 * iconvdata/cp1258.c: Optimize conversion from UCS4.
1520 2001-12-02 Roland McGrath <roland@frob.com>
1522 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1524 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1525 Reported by Jeff Bailey <jbailey@nisa.net>.
1527 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1528 Reported by Jeff Bailey <jbailey@nisa.net>.
1530 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
1531 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
1532 Reported by Jeff Bailey <jbailey@nisa.net>.
1534 2001-12-01 Roland McGrath <roland@frob.com>
1536 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
1537 missing backslash in test arguments.
1538 * sysdeps/mach/hurd/configure: Regenerated.
1540 2001-11-26 Roland McGrath <roland@frob.com>
1542 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1543 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1545 2001-11-30 Ulrich Drepper <drepper@redhat.com>
1547 * iconvdata/Makefile (modules): Add ARMSCII-8.
1548 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1549 * iconvdata/armscii-8.c: New file.
1551 2001-11-29 Jakub Jelinek <jakub@redhat.com>
1553 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
1554 don't match, fix {{a,b},c} globbing, clean up.
1555 Patch by Flavio Veloso <flaviovs@magnux.com>.
1556 * posix/globtest.sh: Add new tests.
1558 2001-11-29 Andreas Jaeger <aj@suse.de>
1560 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1561 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1563 * sysdeps/generic/abort.c: Include libioP.h for
1564 _IO_flush_all_lockp prototype.
1566 2001-11-29 Ulrich Drepper <drepper@redhat.com>
1568 * posix/regex.h: Define __restrict_arr correctly.
1570 2001-11-28 Ulrich Drepper <drepper@redhat.com>
1572 * iconvdata/ibm1163.c: New file.
1573 * iconvdata/ibm1163.h: New file.
1574 * iconvdata/ibm1164.c: New file.
1575 * iconvdata/ibm1164.h: New file.
1576 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
1577 * iconvdata/Makefile: Likewise.
1578 * iconvdata/testdata/IBM1163: New file.
1579 * iconvdata/testdata/IBM1163..UTF8: New file.
1580 * iconvdata/testdata/IBM1164: New file.
1581 * iconvdata/testdata/IBM1164..UTF8: New file.
1582 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1584 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
1585 * iconvdata/ibm1124.h: Likewise.
1586 * iconvdata/ibm1132.h: Likewise.
1587 * iconvdata/ibm1133.h: Likewise.
1588 * iconvdata/ibm1160.h: Likewise.
1589 * iconvdata/ibm1161.h: Likewise.
1590 * iconvdata/ibm1162.h: Likewise.
1591 * iconvdata/ibm856.h: Likewise.
1592 * iconvdata/ibm922.h: Likewise.
1593 * iconvdata/ibm930.h: Likewise.
1594 * iconvdata/ibm932.h: Likewise.
1595 * iconvdata/ibm933.h: Likewise.
1596 * iconvdata/ibm935.h: Likewise.
1597 * iconvdata/ibm937.h: Likewise.
1598 * iconvdata/ibm939.h: Likewise.
1599 * iconvdata/ibm943.h: Likewise.
1600 * iconvdata/ibm930.c: Pretty printing.
1601 * iconvdata/ibm937.c: Avoid access accross array boundary.
1603 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
1604 the current locale's codeset.
1605 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
1607 * iconv/iconv_prog.c: Pass empty strings as default value for to-
1608 and from-charset. Don't determine locale's charset here.
1610 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
1611 as the old _IO_flush_all but lock only if parameter is nonzero.
1612 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
1613 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
1614 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
1615 if libio is used [PR libc/2575].
1617 2001-11-28 Jakub Jelinek <jakub@redhat.com>
1619 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1620 __signbitl): Only define for ISO C99.
1622 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
1624 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
1625 herrnop to NETDB_INTERNAL if we run out of buffer space.
1627 2001-11-28 Ulrich Drepper <drepper@redhat.com>
1629 * nss/nss_files/files-XXX.c (internal_getent): Correct input
1630 overflow test for platforms with signed char.
1631 Reported by Andrew Haley <aph@cambridge.redhat.com>.
1633 2001-11-28 Bruno Haible <bruno@clisp.org>
1635 * locale/programs/simple-hash.c (lookup_2): Remove function.
1636 (insert_entry_2): Call lookup instead of lookup_2.
1638 2001-03-04 Bruno Haible <bruno@clisp.org>
1640 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1642 2001-10-31 Bruno Haible <bruno@clisp.org>
1644 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1646 2001-03-21 Bruno Haible <bruno@clisp.org>
1648 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
1649 chokes on empty macro arguments.
1650 * intl/plural.y: Add #pragma for alloca on AIX 3.
1652 2001-11-27 Ulrich Drepper <drepper@redhat.com>
1654 * intl/dcigettext.c (guess_category_value): Only implement for
1655 glibc. Otherwise rely on function _nl_locale_name which isn't
1656 present in the glibc sources.
1658 2001-09-24 Bruno Haible <bruno@clisp.org>
1660 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1661 transliteration when building on a glibc system but outside glibc.
1663 2001-09-22 Bruno Haible <bruno@clisp.org>
1665 * intl/plural-eval.c: New file, extracted from dcigettext.c.
1666 * intl/dcigettext.c (plural_eval): Remove function, moved to
1668 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1669 Include plural-eval.c.
1671 2001-09-22 Bruno Haible <bruno@clisp.org>
1673 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1674 don't start with a digit; nplurals must be positive.
1676 2001-09-02 Bruno Haible <bruno@clisp.org>
1678 * intl/plural-exp.h: New file, extracted from gettextP.h.
1679 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1680 * intl/gettextP.h (struct expression, struct parse_args,
1681 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
1682 * intl/loadmsgcat.c: Include plural-exp.h.
1683 (PLURAL_PARSE): Move macro to plural-exp.h.
1684 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
1686 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
1687 EXTRACT_PLURAL_EXPRESSION.
1688 (_nl_unload_domain): Update.
1689 * intl/dcigettext.c: Include plural-exp.h.
1690 * intl/plural.y: Include plural-exp.h, not gettextP.h.
1691 (FREE_EXPRESSION): Move macro to plural-exp.h.
1692 * intl/Makefile (routines): Add plural-exp.
1693 (distribute): Add plural-exp.h.
1695 2001-07-28 Bruno Haible <bruno@clisp.org>
1697 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
1698 isdigit, tolower argument to 'unsigned char'.
1699 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
1701 * intl/localealias.c (read_alias_file): Cast isspace argument to
1704 2001-10-20 Bruno Haible <bruno@clisp.org>
1706 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
1708 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
1709 with the variable 'index' in plural_lookup.
1710 * intl/l10nflist.c (strchr): Likewise.
1711 * intl/localealias.c (strchr): Likewise.
1713 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
1714 * intl/bindtextdom.c: Likewise.
1715 * intl/dcigettext.c: Likewise.
1716 * intl/dgettext.c: Likewise.
1717 * intl/dngettext.c: Likewise.
1718 * intl/explodename.c: Likewise.
1719 * intl/finddomain.c: Likewise.
1720 * intl/gettext.c: Likewise.
1721 * intl/l10nflist.c: Likewise.
1722 * intl/loadmsgcat.c: Likewise.
1723 * intl/localealias.c: Likewise.
1724 * intl/ngettext.c: Likewise.
1725 * intl/textdomain.c: Likewise.
1726 * intl/gettext.h: Assume <limits.h> exists.
1728 2001-11-27 Ulrich Drepper <drepper@redhat.com>
1730 * stdio-common/Makefile (tests): Add scanf11.
1731 * stdio-common/scanf11.c: New file.
1733 2001-11-26 Ulrich Drepper <drepper@redhat.com>
1735 * version.h (RELEASE): Define as development.
1736 (VERSION): Set to 2.2.90.
1738 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
1740 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
1741 * nis/nss_nis/nis-grp.c: Likewise.
1742 * nis/nss_nisplus/nisplus-grp.c: Likewise.
1744 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
1745 * nis/nss_nis/nis-pwd.c: Likewise.
1746 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1748 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
1749 * nis/nss_nisplus/nisplus-parser.c: Likewise.
1750 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1752 * nscd/grpcache.c: Use strtoul instead of atol.
1753 * nscd/pwdcache.c: Likewise.
1754 * nss/getent.c: Likewise.
1756 2001-11-27 Paul Eggert <eggert@twinsun.com>
1758 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1759 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1761 2001-11-19 Bruno Haible <bruno@clisp.org>
1763 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
1765 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
1766 improves the quality of the hash function, especially for short
1769 2001-11-26 Ulrich Drepper <drepper@redhat.com>
1771 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
1772 are found call conv_error and not input_error [PR libc/2669].
1774 * math/bits/mathcalls.h: Mark ceil and floor as const.
1775 Reported by David Mosberger.
1777 2001-11-21 Jim Meyering <meyering@lucent.com>
1779 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
1780 Define to be __-prefixed.
1781 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
1783 2001-11-26 Andreas Jaeger <aj@suse.de>
1785 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
1788 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
1790 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
1793 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
1794 unused variables. Fix threshold for returning 1.0.
1796 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
1799 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
1800 remove unused variables.
1802 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
1804 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
1805 include local math header files.
1807 2001-11-22 Andreas Jaeger <aj@suse.de>
1809 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
1812 2001-11-21 Andreas Jaeger <aj@suse.de>
1814 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
1816 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
1819 2001-11-15 Andreas Jaeger <aj@suse.de>
1821 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
1822 compilers that support it.
1824 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
1825 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1826 * stdlib/stdlib.h: Likewise.
1828 2001-11-17 Ulrich Drepper <drepper@redhat.com>
1830 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
1831 statement with gotos.
1832 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
1834 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
1836 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
1838 2001-11-15 Ulrich Drepper <drepper@redhat.com>
1840 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
1842 2001-10-02 Jakub Jelinek <jakub@redhat.com>
1843 H.J. Lu <hjl@gnu.org>
1845 * Versions.def (libc): Add GCC_3.0.
1846 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
1847 if gcc supports this flag.
1848 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
1849 (gcc3): Allow glibc to be compiled with gcc 3.x.
1850 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
1851 * config.make.in (static-libgcc, unwind-find-fde): Add.
1852 * Makerules (build-shlib-helper, build-module-helper): Use it.
1853 * scripts/versions.awk: Make sure GLIBC_ versions come first.
1854 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
1856 (_fini): Call __deregister_frame_info_bases if
1857 __register_frame_info_bases was used to register.
1858 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
1860 (__register_frame_info_bases, __register_frame_info_table_bases,
1861 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
1862 * elf/Makefile (routines): Add unwind-dw2-fde.
1863 (shared-only-routines): Add unwind-dw2-fde.
1864 * sysdeps/alpha/gccframe.h: New file.
1865 * sysdeps/arm/gccframe.h: New file.
1866 * sysdeps/generic/framestate.c: New file.
1867 * sysdeps/generic/dwarf2.h: New file.
1868 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
1869 * sysdeps/generic/unwind-dw2-fde.c: New file.
1870 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
1871 * sysdeps/generic/unwind-dw2-fde.h: New file.
1872 * sysdeps/generic/unwind-dw2.c: New file.
1873 * sysdeps/generic/unwind-pe.h: New file.
1874 * sysdeps/generic/unwind.h: New file.
1875 * sysdeps/hppa/gccframe.h: New file.
1876 * sysdeps/i386/gccframe.h: New file.
1877 * sysdeps/m68k/gccframe.h: New file.
1878 * sysdeps/mips/gccframe.h: New file.
1879 * sysdeps/powerpc/gccframe.h: New file.
1880 * sysdeps/s390/gccframe.h: New file.
1881 * sysdeps/sh/gccframe.h: New file.
1882 * sysdeps/sparc/gccframe.h: New file.
1883 * sysdeps/vax/gccframe.h: New file.
1884 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1885 Set on all architectures except ia64.
1886 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
1888 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
1889 __deregister_frame_info): Move to elf/Versions.
1890 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
1891 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1892 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1893 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
1894 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1895 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1896 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1897 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1898 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1899 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
1900 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
1901 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
1902 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1903 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1904 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
1905 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
1906 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1907 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
1909 2001-11-15 Jeff Law <law@redhat.com>
1911 * posix/regex.c (uintptr_t): Do not provide a definition if the
1912 system provided one.
1914 2001-11-13 Roland McGrath <roland@frob.com>
1916 * stdio-common/tmpfile.c: Moved to ...
1917 * sysdeps/generic/tmpfile.c: ... here.
1918 * sysdeps/mach/hurd/tmpfile.c: New file.
1920 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
1921 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
1922 (fopenport): Define as weak alias.
1924 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
1925 * libio/libioP.h: ... to here.
1927 2001-11-12 Ulrich Drepper <drepper@redhat.com>
1929 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
1930 program header twice. Construct list with the needed information.
1932 2001-11-10 Ulrich Drepper <drepper@redhat.com>
1934 * po/ca.po: Update from translation team.
1936 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
1937 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
1938 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
1939 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1941 2001-11-10 Andreas Jaeger <aj@suse.de>
1943 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
1944 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1945 Contributed by Stephen L Moshier <moshier@mediaone.net>.
1947 2001-11-09 Ulrich Drepper <drepper@redhat.com>
1949 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
1951 * elf/dl-load.c (is_dst): New function.
1952 (_dl_dst_count): Use is_dst to check for DST variable.
1953 (_dl_dst_substitute): Likewise.
1955 2001-11-09 Roland McGrath <roland@frob.com>
1957 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
1958 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
1959 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
1960 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
1961 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
1962 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
1963 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
1964 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
1965 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
1966 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
1967 * sysdeps/mach/hurd/powerpc/Dist: New file.
1969 * hurd/privports.c (__get_privileged_ports):
1970 Only contact the proc server if necessary for this call.
1971 Suggested by Neal H Walfield <neal@cs.uml.edu>.
1972 Check error return for mach_port_mod_refs.
1974 2001-11-09 Andreas Schwab <schwab@suse.de>
1976 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
1978 2001-11-09 Ulrich Drepper <drepper@redhat.com>
1980 * elf/dl-load.c (lose): Remove some unnecessary code. The new
1981 object is always the last in the list.
1982 (_dl_map_object_from_fd): Delete code to remove from object list
1983 when DF_1_NOOPEN is seen. This is done in lose.
1985 2001-11-08 Ulrich Drepper <drepper@redhat.com>
1987 * elf/dl-object.c (_dl_new_object): Various small optimizations.
1989 2001-11-07 Ulrich Drepper <drepper@redhat.com>
1991 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
1992 HWCAP_CHECK macro code.
1994 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
1995 Now returns MAP_FAILED on error.
1996 * elf/rtld.c: Adjust caller.
1997 * sysdeps/generic/dl-cache.c: Likewise.
1998 * sysdeps/generic/ldsodefs.h: Adjust description.
2000 * elf/dl-version.c (match_symbol): Optimize error handling for size.
2001 (_dl_check_map_versions): Likewise.
2003 2001-11-06 Ulrich Drepper <drepper@redhat.com>
2005 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
2006 _dl_signal_error directly, always use lose. Set fd to -1 after
2008 (lose): Don't call close if fd == -1.
2010 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
2012 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
2013 Also fix typo @code {mbsinit} to @code{mbsinit}.
2015 2001-11-06 Ulrich Drepper <drepper@redhat.com>
2017 * elf/dl-profile.c: Replace state variable with simple flag named
2018 running. Remove commented-out code.
2020 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
2021 (_dl_init_paths): Likewise.
2022 (_dl_map_object_from_fd): Likewise.
2023 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2025 2001-11-06 Roland McGrath <roland@frob.com>
2027 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
2028 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
2030 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
2031 sysdeps/powerpc/elf/sysdep.h.
2032 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
2034 2001-11-05 Ulrich Drepper <drepper@redhat.com>
2036 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
2038 (process_envvars): Some more optimizations.
2039 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
2041 * elf/elf.h: Add dynamic tag definitions for prelinking.
2043 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
2044 Rewrite code to remove environment varables for SUID binaries.
2045 Small optimization in LD_PROFILE handling.
2046 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
2048 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2050 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
2052 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
2053 strings. Change type of second parameter.
2054 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
2057 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
2059 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
2061 * manual/string.texi: Fix typos.
2062 * manual/examples/argp-ex2.c: Likewise.
2064 2001-11-05 Roland McGrath <roland@frob.com>
2066 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
2067 the more-specific unix/sysv/linux/powerpc file and breaks everything.
2068 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
2069 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
2070 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
2071 here, put under [__ELF__].
2073 2001-11-05 Ulrich Drepper <drepper@redhat.com>
2075 * manual/charset.texi: Extensive editing work.
2076 * manual/nss.texi: Likewise.
2077 Changes by Dennis Grace <dgrace@us.ibm.com>.
2079 2001-11-04 Roland McGrath <roland@frob.com>
2081 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
2082 parameter to dir_mkfile.
2084 2001-11-02 Jakub Jelinek <jakub@redhat.com>
2086 * string/bits/string2.h (__strndup): If n is smaller than len, set
2088 * string/tester.c (test_strndup): New function.
2091 2001-11-01 Ulrich Drepper <drepper@redhat.com>
2093 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
2095 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
2096 * scripts/cpp: New file.
2098 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
2099 for rtld_search_dirs content. Minor optimizations.
2101 2001-10-31 Ulrich Drepper <drepper@redhat.com>
2103 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
2104 avoiding unnecessary duplication.
2106 2001-10-31 Jakub Jelinek <jakub@redhat.com>
2108 * elf/dl-load.c (_dl_map_object): If library was found using
2109 LD_LIBRARY_PATH, don't try RUNPATH list.
2111 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
2113 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
2114 Correct second argument of register_dump call.
2115 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
2118 2001-10-31 Ulrich Drepper <drepper@redhat.com>
2120 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
2122 * iconvdata/TESTS: Likewise.
2123 * iconvdata/gconv-modules: Likewise.
2124 * iconvdata/ibm1132.c: New file.
2125 * iconvdata/ibm1132.h: New file.
2126 * iconvdata/ibm1133.c: New file.
2127 * iconvdata/ibm1133.h: New file.
2128 * iconvdata/ibm1162.c: New file.
2129 * iconvdata/ibm1162.h: New file.
2130 * iconvdata/testdata/IBM1132: New file.
2131 * iconvdata/testdata/IBM1132..UTF8: New file.
2132 * iconvdata/testdata/IBM1133: New file.
2133 * iconvdata/testdata/IBM1133..UTF8: New file.
2134 * iconvdata/testdata/IBM1162: New file.
2135 * iconvdata/testdata/IBM1162..UTF8: New file.
2136 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
2138 * string/string.h: Fix typo in comment.
2139 * wcsmbs/wchar.h: Likewise.
2141 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
2143 * manual/getopt.texi (getopt_long, getopt_long_only): Include
2144 const in type of longopts parameter.
2146 2001-10-29 Andreas Jaeger <aj@suse.de>
2148 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
2150 2001-10-29 Kevin Ryde <user42@zip.com.au>
2152 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
2153 output, clarify `#' behaviour on 0.
2154 (Floating-Point Conversions): Clarify that %g only uses %e when
2155 the exponent would be greater than 1.
2157 2001-10-28 Roland McGrath <roland@frob.com>
2159 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
2160 * sysdeps/mach/powerpc/machine-sp.h: New file.
2161 * sysdeps/mach/powerpc/sysdep.h: New file.
2162 * sysdeps/mach/powerpc/thread_state.h: New file.
2164 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
2165 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
2166 expect to need the same thing on every platform.
2168 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
2169 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
2171 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
2172 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
2173 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
2174 Move all these assembly-related definitions to ...
2175 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
2177 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
2178 by Peter Bruin <pjbruin@dds.nl>.
2180 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
2181 packing results for a `poll' call.
2183 2001-10-26 Ulrich Drepper <drepper@redhat.com>
2185 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
2187 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
2190 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2192 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
2194 2001-10-24 H.J. Lu <hjl@gnu.org>
2196 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
2197 Use __BEGIN_DECLS/__END_DECLS around prototypes.
2198 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
2200 2001-10-21 Jim Meyering <meyering@lucent.com>
2202 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2203 this code would end up calling gettext even in packages built
2205 * posix/getopt.c (_): Likewise.
2206 * posix/regex.c (_): Likewise.
2208 2001-10-26 Ulrich Drepper <drepper@redhat.com>
2210 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
2212 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2213 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
2215 2001-10-19 Jakub Jelinek <jakub@redhat.com>
2217 * misc/sys/cdefs.h (__attribute_used__): Define.
2218 * elf/rtld.c (_dl_start): Add __attribute_used__.
2219 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
2221 2001-10-25 Andreas Schwab <schwab@suse.de>
2223 * stdlib/a64l.c: Expect least significant digit first.
2224 * stdlib/l64a.c: Produce least significant digit first.
2225 * stdlib/Makefile (tests): Add test-a64l.
2226 * stdlib/test-a64l.c: New file.
2227 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
2229 2001-10-21 Ulrich Drepper <drepper@redhat.com>
2231 * po/sk.po: Update from translation team.
2233 2001-10-18 Ulrich Drepper <drepper@redhat.com>
2235 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
2237 2001-10-18 Andreas Schwab <schwab@suse.de>
2239 * math/libm-test.inc (print_ulps): Print ulp values rounded to
2241 (print_function_ulps): Likewise.
2242 (print_complex_function_ulps): Likewise.
2243 (print_max_error): Likewise.
2244 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
2246 2001-10-16 Andreas Schwab <schwab@suse.de>
2248 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
2251 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
2252 BSD_SETJMP or BSD__SETJMP is defined, resp.
2253 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
2254 a tail call to __sigsetjmp that would require extending the
2256 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
2257 * sysdeps/m68k/bsd-setjmp.S: Deleted.
2258 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
2259 Reported by Jes Sorensen <jes@trained-monkey.org>.
2261 2001-10-16 Andreas Jaeger <aj@suse.de>
2263 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
2264 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
2267 2001-10-15 Ulrich Drepper <drepper@redhat.com>
2269 * po/ca.po: New file. Contributed by the translation team.
2271 2001-10-15 Ralf Baechle <ralf@gnu.org>
2273 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
2274 a varargs prototype. Remove dependency from kernel header files.
2276 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
2277 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
2279 2001-10-14 Ulrich Drepper <drepper@redhat.com>
2281 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
2282 to generate hexadecimal identifier.
2283 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
2285 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
2287 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
2289 2001-10-14 Ulrich Drepper <drepper@redhat.com>
2291 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
2292 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
2293 Contributed by Stephen L Moshier <moshier@mediaone.net>.
2295 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
2296 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2297 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
2298 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
2299 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
2300 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
2302 * timezone/africa: Update from tzdata2001d.
2303 * timezone/asia: Likewise.
2304 * timezone/australasia: Likewise.
2305 * timezone/backward: Likewise.
2306 * timezone/europe: Likewise.
2307 * timezone/leapseconds: Likewise.
2308 * timezone/northamerica: Likewise.
2309 * timezone/southamerica: Likewise.
2310 * timezone/zone.tab: Likewise.
2312 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2314 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
2315 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
2317 2001-10-12 Ulrich Drepper <drepper@redhat.com>
2319 * elf/elf.h (PT_TLS): New definition.
2321 2001-10-10 Jeff Bailey <jbailey@nisa.net>
2323 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
2326 2001-10-07 Roland McGrath <roland@frob.com>
2328 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
2330 2001-10-10 Ulrich Drepper <drepper@redhat.com>
2332 * elf/elf.h: Add more ELFOSABI_* constants.
2334 2001-10-04 Ben Collins <bcollins@debian.org>
2336 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
2337 decleration of __need_wchar_t.
2339 2001-10-03 Jakub Jelinek <jakub@redhat.com>
2341 * string/bits/string2.h (__strsep_g): Add prototype.
2343 * string/Versions (__strsep): Remove.
2344 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
2346 2001-10-07 Ulrich Drepper <drepper@redhat.com>
2348 * manua/llio.texi: Clarify file references added by mmap.
2349 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
2351 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
2353 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
2354 Add sc_loadrs and sc_rbs_bas to match current kernel.
2356 2001-09-27 Jakub Jelinek <jakub@redhat.com>
2358 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2360 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
2362 2001-09-27 Jakub Jelinek <jakub@redhat.com>
2364 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
2365 object has been bumped because of relocation dependency, avoid
2366 duplicates in l_scope.
2367 (show_scope): Fix typos.
2368 * elf/Makefile: Add rules to build and run reldep6.
2369 * elf/reldep6.c: New file.
2370 * elf/reldep6mod0.c: New file.
2371 * elf/reldep6mod1.c: New file.
2372 * elf/reldep6mod2.c: New file.
2373 * elf/reldep6mod3.c: New file.
2374 * elf/reldep6mod4.c: New file.
2376 2001-09-26 Jakub Jelinek <jakub@redhat.com>
2378 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
2380 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
2381 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
2382 for non-lazy binding. Fix .plt[32768+] handling.
2383 (elf_machine_plt_value): Don't add addend.
2384 (elf_machine_rela): Call sparc64_fixup_plt instead of
2385 elf_machine_fixup_plt.
2386 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
2387 dynamic linker at 0xfffff800XXXXXXXX.
2389 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2391 2001-09-28 Ulrich Drepper <drepper@redhat.com>
2393 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
2395 2001-09-25 Jakub Jelinek <jakub@redhat.com>
2397 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
2398 declare __cmsg_data field if its size would be bigger than 0.
2399 (CMSG_DATA): Adjust accordingly.
2400 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2401 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
2402 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
2403 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
2404 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2405 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2406 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2408 2001-09-25 Ulrich Drepper <drepper@redhat.com>
2410 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
2411 * iconvdata/testdata/IBM1160: New file.
2412 * iconvdata/testdata/IBM1160..UTF8: New file.
2413 * iconvdata/testdata/IBM1161: New file.
2414 * iconvdata/testdata/IBM1161..UTF8: New file.
2415 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2417 2001-09-24 Ulrich Drepper <drepper@redhat.com>
2419 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
2420 UL_SETFSIZE computations better.
2422 * rt/Makefile: Remove use of filter for librt again.
2424 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
2425 UL_SETFSIZE computations better.
2427 * string/Versions: Export __strsep for GLIBC_2.2.5.
2428 * string/bits/string2.h: Define all __STRING_INLINE functions if
2429 _FORCE_INLINES is defined.
2430 Use int instead of char of parameter types.
2431 (__strsep): Don't use __strsep_g. Don't define it.
2432 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
2433 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
2435 (__stpcpy_a_small): Renamed from __stpcpy_small.
2436 (__strcspn_c1): Don't define if _FORCE_INLINES.
2437 (__strspn_c1): Likewise.
2439 2001-09-22 Ben Collins <bcollins@debian.org>
2441 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
2442 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
2443 * sysdeps/ia64/bits/sigaction.h: Likewise.
2444 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
2446 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
2448 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
2450 2001-09-24 Jakub Jelinek <jakub@redhat.com>
2452 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
2454 2001-09-24 Ulrich Drepper <drepper@redhat.com>
2456 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
2458 2001-09-20 H.J. Lu <hjl@gnu.org>
2460 * include/dlfcn.h (__RTLD_SPROF): New definiton.
2461 * elf/dl-open.c (dl_open_worker): Return immediately after loading
2463 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
2464 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
2466 2001-09-20 H.J. Lu <hjl@gnu.org>
2468 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
2471 2001-09-22 Ulrich Drepper <drepper@redhat.com>
2473 * nss/getent.c: Accept -s parameter to overwrite rules in
2474 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
2476 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
2477 with as many ".0" as necessary to form a complete address
2478 inet_network understands.
2480 * nss/getent.c: Various cleanups. Use simpler and fewer function
2483 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2485 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
2487 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
2489 2001-09-22 Ulrich Drepper <drepper@redhat.com>
2491 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
2493 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
2494 * iconvdata/ibm1160.c: New file.
2495 * iconvdata/ibm1160.h: New file.
2496 * iconvdata/ibm1161.c: New file.
2497 * iconvdata/ibm1161.h: New file.
2498 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2500 2001-09-19 Jakub Jelinek <jakub@redhat.com>
2502 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
2503 difference between base address and first PT_LOAD's virtual address,
2504 not the base address.
2506 2001-09-11 Tom Rix <trix@redhat.com>
2508 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
2509 ifdef for __getopt_clean_environment.
2510 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
2512 2001-09-22 Andreas Jaeger <aj@suse.de>
2514 * elf/reldep4.c (main): Add proper prototype to fix warning.
2516 * elf/reldep5.c (main): Remove unused variable.
2518 * math/math_private.h: Add prototypes.
2520 2001-09-21 Andreas Jaeger <aj@suse.de>
2522 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
2523 * sysdeps/x86_64/Dist: New file.
2524 * sysdeps/x86_64/soft-fp/Dist: New file.
2526 * sysdeps/gnu/Dist: Remove eval.c.
2528 2001-09-20 Ulrich Drepper <drepper@redhat.com>
2530 * malloc/memusage.c (realloc): Don't count already allocated
2532 (me): Always use dlsym() to find the real implementations.
2534 * malloc/memusage.sh: Make -n option actually do something.
2536 2001-09-20 Andreas Jaeger <aj@suse.de>
2538 * elf/elf.h (R_390_NUM): Correct value.
2540 * Versions.def: Add missing versions 2.2.3 for libthread_db and
2543 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2544 for x86-64, install x86-64 into */lib64.
2546 * shlib-versions: Add x86-64.
2548 * elf/elf.h: Add x86-64 relocations.
2550 2001-09-19 Ulrich Drepper <drepper@redhat.com>
2552 * po/fr.po: Update from translation team.
2554 2001-09-19 Andreas Jaeger <aj@suse.de>
2556 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
2557 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
2558 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
2559 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
2560 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
2561 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
2562 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
2563 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
2564 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
2565 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2566 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
2567 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
2568 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
2569 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
2570 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
2571 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
2572 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
2573 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2574 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
2575 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
2576 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
2577 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
2578 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
2579 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
2580 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
2581 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
2582 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
2583 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
2584 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
2585 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
2586 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
2587 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
2588 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
2589 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
2590 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
2591 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
2592 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
2593 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
2594 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
2595 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
2596 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
2597 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
2598 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
2599 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
2600 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
2601 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
2602 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
2603 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
2604 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2605 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
2606 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
2607 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2608 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
2609 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
2610 * sysdeps/unix/x86_64/sysdep.S: New file.
2611 * sysdeps/unix/x86_64/sysdep.h: New file.
2612 * sysdeps/x86_64/Implies: New file.
2613 * sysdeps/x86_64/Makefile: New file.
2614 * sysdeps/x86_64/Versions: New file.
2615 * sysdeps/x86_64/__longjmp.S: New file.
2616 * sysdeps/x86_64/abort-instr.h: New file.
2617 * sysdeps/x86_64/atomicity.h: New file.
2618 * sysdeps/x86_64/bits/endian.h: New file.
2619 * sysdeps/x86_64/bits/setjmp.h: New file.
2620 * sysdeps/x86_64/bits/string.h: New file.
2621 * sysdeps/x86_64/bp-asm.h: New file.
2622 * sysdeps/x86_64/bsd-_setjmp.S: New file.
2623 * sysdeps/x86_64/bsd-setjmp.S: New file.
2624 * sysdeps/x86_64/dl-machine.h: New file.
2625 * sysdeps/x86_64/elf/initfini.c: New file.
2626 * sysdeps/x86_64/elf/start.S: New file.
2627 * sysdeps/x86_64/ffs.c: New file.
2628 * sysdeps/x86_64/ffsll.c: New file.
2629 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
2630 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
2631 * sysdeps/x86_64/fpu/e_acosl.c: New file.
2632 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
2633 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
2634 * sysdeps/x86_64/fpu/e_expl.c: New file.
2635 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
2636 * sysdeps/x86_64/fpu/e_log10l.S: New file.
2637 * sysdeps/x86_64/fpu/e_log2l.S: New file.
2638 * sysdeps/x86_64/fpu/e_logl.S: New file.
2639 * sysdeps/x86_64/fpu/e_powl.S: New file.
2640 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
2641 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
2642 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
2643 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
2644 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
2645 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
2646 * sysdeps/x86_64/fpu/fegetenv.c: New file.
2647 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
2648 * sysdeps/x86_64/fpu/fegetround.c: New file.
2649 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
2650 * sysdeps/x86_64/fpu/fesetenv.c: New file.
2651 * sysdeps/x86_64/fpu/fesetround.c: New file.
2652 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
2653 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
2654 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
2655 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
2656 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
2657 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
2658 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
2659 * sysdeps/x86_64/fpu/s_atanl.c: New file.
2660 * sysdeps/x86_64/fpu/s_cosl.S: New file.
2661 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
2662 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
2663 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2664 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2665 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2666 * sysdeps/x86_64/fpu/s_logbl.c: New file.
2667 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2668 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2669 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2670 * sysdeps/x86_64/fpu/s_rintl.c: New file.
2671 * sysdeps/x86_64/fpu/s_significandl.c: New file.
2672 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2673 * sysdeps/x86_64/fpu/s_sinl.S: New file.
2674 * sysdeps/x86_64/fpu/s_tanl.S: New file.
2675 * sysdeps/x86_64/gmp-mparam.h: New file.
2676 * sysdeps/x86_64/hp-timing.c: New file.
2677 * sysdeps/x86_64/hp-timing.h: New file.
2678 * sysdeps/x86_64/htonl.S: New file.
2679 * sysdeps/x86_64/memusage.h: New file.
2680 * sysdeps/x86_64/setjmp.S: New file.
2681 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
2682 * sysdeps/x86_64/stackinfo.h: New file.
2683 * sysdeps/x86_64/sysdep.h: New file.
2684 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
2686 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
2689 2001-09-18 Ulrich Drepper <drepper@redhat.com>
2691 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
2692 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
2694 2001-09-18 Andreas Schwab <schwab@suse.de>
2696 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
2697 list, now that l_scope is a pointer.
2699 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
2702 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
2704 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
2705 (elf_machine_rela_relative): Add a missing declaration.
2707 2001-09-18 Jakub Jelinek <jakub@redhat.com>
2709 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
2710 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
2711 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
2712 ldd-rewrite scripts.
2714 2001-09-18 Ulrich Drepper <drepper@redhat.com>
2716 * elf/ldd.bash.in: Update copyright message.
2718 2001-09-17 H.J. Lu <hjl@gnu.org>
2720 * hurd/hurdmalloc.c (bcopy): Removed.
2721 (realloc): Replace bcopy with memcpy.
2722 * hurd/path-lookup.c (file_name_path_scan): Likewise.
2723 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
2724 * sunrpc/rpcinfo.c (pmapdump): Likewise.
2726 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
2727 (gethostbyaddr): Likewise.
2728 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
2730 2001-09-18 Ulrich Drepper <drepper@redhat.com>
2732 * sysdeps/gnu/eval.c: Removed.
2734 2001-09-18 Andreas Jaeger <aj@suse.de>
2736 * sysdeps/i386/fpu/s_logbl.S: Move to ...
2737 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
2739 * sysdeps/i386/fpu/s_rintl.S: Move to ...
2740 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
2742 * sysdeps/i386/fpu/s_significandl.S: Move to ...
2743 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
2745 2001-09-16 Ulrich Drepper <drepper@redhat.com>
2747 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2750 2001-09-14 H.J. Lu <hjl@gnu.org>
2752 * sysdeps/mips/fpu/libm-test-ulps: Updated.
2754 2001-09-14 Ulrich Drepper <drepper@redhat.com>
2756 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
2757 Patch by Florian La Roche <laroche@redhat.com>.
2759 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
2761 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
2764 2001-09-14 Andreas Schwab <schwab@suse.de>
2766 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
2767 Sumner <bls@sgi.com>.
2768 * posix/execlp.c: Likewise.
2770 2001-09-13 Jakub Jelinek <jakub@redhat.com>
2772 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
2773 is already found earlier in the search scope.
2775 2001-09-12 Jakub Jelinek <jakub@redhat.com>
2777 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
2780 2001-09-13 Ulrich Drepper <drepper@redhat.com>
2782 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
2784 2001-09-12 Ulrich Drepper <drepper@redhat.com>
2786 * config.h.in: Enforce optimization to be used.
2787 * Makeconfig (preprocess-versions): Define ASSEMBLER.
2788 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
2789 * posix/Makefile (annexc-CFLAGS): Define to -O.
2790 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
2792 2001-09-11 Ulrich Drepper <drepper@redhat.com>
2794 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
2795 Patch by Stephan Kulow.
2797 2001-09-08 Ben Collins <bcollins@debian.org>
2799 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
2800 usage of RESOLVE() (r_type, not reloc->r_type).
2802 2001-09-08 Ulrich Drepper <drepper@redhat.com>
2804 * elf/dl-object.c: Avoid allocating extra memory block for name.
2805 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
2806 allocated separately.
2807 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2809 2001-09-08 H.J. Lu <hjl@gnu.org>
2811 * po/zh_TW.po: Fix a typo.
2813 2001-09-07 Tom Rix <trix@redhat.com>
2815 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
2817 2001-08-26 Tom Rix <trix@redhat.com>
2819 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
2820 command line options.
2821 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
2822 * sysdeps/unix/sysv/aix/start.c: Removed.
2823 * sysdeps/unix/sysv/aix/start-libc.c: New file.
2824 * sysdeps/unix/sysv/aix/init-first.c: New file.
2825 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
2827 2001-09-08 Ben Collins <bcollins@debian.org>
2829 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
2830 * sysdeps/generic/dl-machine.h: Likewise.
2831 * sysdeps/hppa/dl-fptr.c: Likewise.
2832 * sysdeps/ia64/dl-fptr.c: Likewise.
2833 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2834 * sysdeps/mips/dl-machine.h: Likewise.
2835 * sysdeps/mips/mips64/dl-machine.h: Likewise.
2836 * sysdeps/powerpc/dl-machine.c: Likewise.
2838 2001-09-07 Ben Collins <bcollins@debian.org>
2840 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
2842 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
2844 2001-09-08 Ulrich Drepper <drepper@redhat.com>
2846 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
2847 dependencies if necessary.
2849 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
2850 loaded directly) determine length if l_initfini list by iterating
2851 over its elements. Minor optimizations.
2852 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
2853 for dependency objects.
2854 If object was already loaded check whether any of the dependencies
2855 is already on the relocation dependency list. If yes, remove the
2856 latter. Minor optimizations.
2857 * elf/dl-lookup.c (add_dependency): Add check for self reference of
2858 maps here. Search l_initfini list only if the object was loaded
2859 directly and not only as a dependency.
2860 (_dl_lookup_symbol): Add relocation dependency also if object
2861 is not in global scope. Remove test for self-reference here.
2862 (_dl_lookup_versioned_symbol): Likewise.
2863 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
2864 element of first name record.
2865 * elf/loadtest.c: Add some more test to recognize early if an object
2867 * elf/Makefile: Add rules to build and run reldep5.
2868 * elf/reldep5.c: New file.
2869 * elf/reldepmod5.c: New file.
2870 * elf/reldepmod6.c: New file.
2872 * elf/reldep2.c: Fix typo.
2874 2001-09-07 Ulrich Drepper <drepper@redhat.com>
2876 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
2877 elements. Change l_scope to be a pointer only.
2878 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
2879 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
2880 here add searchlist of newly open file to the dependency's scope.
2881 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
2882 only searchlist from its scope. Free own scope array if necessary.
2883 * elf/Makefile (tests): Add dblload and dblunload now.
2885 2001-09-06 Andreas Jaeger <aj@suse.de>
2887 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
2890 2001-09-05 Ulrich Drepper <drepper@redhat.com>
2892 * elf/Makefile: Add rules to build new tests. Don't run them yet since
2894 * elf/dblload.c: New file.
2895 * elf/dblloadmod1.c: New file.
2896 * elf/dblloadmod2.c: New file.
2897 * elf/dblloadmod3.c: New file.
2898 * elf/dblunload.c: New file.
2900 2001-09-04 Richard Henderson <rth@redhat.com>
2902 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
2903 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
2905 2001-09-04 Ulrich Drepper <drepper@redhat.com>
2907 Correct very misleading message for error in failed runtime relocation.
2908 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
2910 (_dl_signal_cerror): Likewise.
2911 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2912 * elf/dl-close.c: Likewise.
2913 * elf/dl-deps.c: Likewise.
2914 * elf/dl-load.c: Likewise.
2915 * elf/dl-lookup.c: Likewise.
2916 * elf/dl-open.c: Likewise.
2917 * elf/dl-reloc.c: Likewise.
2918 * elf/dl-sym.c: Likewise.
2919 * elf/dl-version.c: Likewise.
2920 * sysdeps/generic/dl-sysdep.c: Likewise.
2922 2001-09-04 Jakub Jelinek <jakub@redhat.com>
2924 * iconv/strtab.c (strtabinit): Initialize null Strent.
2925 (newstring): Move len == 0 handling...
2926 (strtabadd): ...here.
2927 If len == 1, return null Strent.
2928 When inserting a suffix of an existing string, check if
2929 it is not equal to some suffix already recorded.
2930 Copy left and right members over if adding longer string.
2932 2001-09-04 Jakub Jelinek <jakub@redhat.com>
2934 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
2936 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
2937 (__syscall_gethostname): Add prototype.
2939 2001-09-04 Ulrich Drepper <drepper@redhat.com>
2941 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
2943 2001-09-02 Ulrich Drepper <drepper@redhat.com>
2945 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
2947 2001-08-27 Roland McGrath <roland@frob.com>
2949 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
2950 short, copy that much into NAME anyway before returning error.
2952 2001-09-01 Richard Henderson <rth@redhat.com>
2954 * sysdeps/alpha/elf/Dist: Remove file.
2955 * sysdeps/alpha/elf/Makefile: Remove file.
2956 * sysdeps/alpha/elf/crtbegin.S: Remove file.
2957 * sysdeps/alpha/elf/crtend.S: Remove file.
2958 * sysdeps/alpha/elf/initfini.c: New file.
2960 2001-09-01 Mark Kettenis <kettenis@gnu.org>
2962 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
2963 * iconv/tst-iconv3.c: Likewise.
2965 2001-09-01 Jakub Jelinek <jakub@redhat.com>
2967 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
2969 2001-09-01 Ulrich Drepper <drepper@redhat.com>
2971 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
2973 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
2974 * iconv/iconv_prog.c (insert_cache): New function.
2975 (print_known_names): If cache is used call insert_cache to use the
2976 information from the cache [PR libc/2509].
2978 2001-08-31 Ulrich Drepper <drepper@redhat.com>
2980 * time/strptime.c (strptime_internal): Recognize 'l' format and
2981 handle it like 'I' for symmetry with strftime.
2983 2001-08-31 Richard Henderson <rth@redhat.com>
2985 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
2986 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
2987 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
2988 (print_statistics): Make scalar unsigned long long.
2989 * sysdeps/alpha/hp-timing.h: New file.
2991 2001-08-31 Jakub Jelinek <jakub@redhat.com>
2993 * stdio-common/perror.c (perror): Save errno early, pass it
2994 down to perror_internal.
2995 (perror_internal): Add errnum argument.
2997 2001-08-31 Jakub Jelinek <jakub@redhat.com>
2999 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
3000 Don't add old memory content for R_ALPHA_REFQUAD.
3002 2001-08-30 Ulrich Drepper <drepper@redhat.com>
3004 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
3007 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
3008 instead of open, __close instead of close, __getpagesize instead
3011 * string/argz-stringify.c (__argz_stringify): Use __strnlen
3013 * include/string.h (strndupa): Redefine here to use __strnlen
3015 * string/strndup.c (__strndup): Use __strnlen not strnlen.
3017 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
3020 2001-08-30 Jakub Jelinek <jakub@redhat.com>
3022 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
3023 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
3024 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
3025 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
3026 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
3027 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
3028 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
3030 2001-08-30 Ulrich Drepper <drepper@redhat.com>
3032 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
3034 2001-08-30 Andreas Jaeger <aj@suse.de>
3036 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
3037 contributed Stephen L Moshier.
3039 2001-08-30 Jakub Jelinek <jakub@redhat.com>
3041 * sunrpc/etc.rpc (sgi_fam): Add.
3043 2001-08-30 Ulrich Drepper <drepper@redhat.com>
3045 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
3047 2001-08-29 Ulrich Drepper <drepper@redhat.com>
3049 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
3050 first is from a previous call.
3051 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
3053 2001-08-29 Andreas Schwab <schwab@suse.de>
3055 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
3057 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3059 * config.make.in (INSTALL_SCRIPT): Define.
3060 * Makeconfig (INSTALL_SCRIPT): Define.
3061 * Makerules (do-install-script): New macro to install scripts using
3063 (install-bin-script): New rule to install scripts with
3065 (install-bin-script-nosubdir): New rule.
3066 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
3067 (distinfo-vars): Add $(install-bin-script).
3068 * Rules (others): Likewise.
3069 * Makefile (glibcbug): Install with install-bin-script.
3070 * debug/Makefile (xtrace): Likewise.
3071 (catchsegv): Likewise.
3072 * elf/Makefile (ldd): Likewise.
3073 * malloc/Makefile (mtrace): Likewise.
3074 * timezone/Makefile (tzselect): Likewise.
3076 2001-08-29 H.J. Lu <hjl@gnu.org>
3078 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
3079 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
3080 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
3082 2001-08-29 Andreas Schwab <schwab@suse.de>
3084 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
3086 2001-08-28 H.J. Lu <hjl@gnu.org>
3088 * Makeconfig (combreloc-LDFLAGS): New variable.
3089 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
3090 * config.make.in (have-z-combreloc): New variable.
3091 * configure.in: Substitute libc_cv_z_combreloc.
3093 2001-08-29 Ulrich Drepper <drepper@redhat.com>
3095 * po/sv.po: Update from translation team.
3096 * po/fr.po: Likewise.
3097 * po/da.po: Likewise.
3099 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3101 * Makerules: Fix a typo: MD% -> MD5.
3103 2001-08-28 Ulrich Drepper <drepper@redhat.com>
3105 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
3106 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
3108 2001-08-28 Andreas Jaeger <aj@suse.de>
3110 * manual/libc-texinfo.sh: Add entry about free manuals.
3112 * manual/contrib.texi (Contributors): Fix cross reference.
3114 * manual/libc.texinfo (Copying): Include freemanuals.
3116 * manual/Makefile (appendices): Add freemanuals.
3118 * manual/freemanuals.texi: New file.
3119 Patch by Brian Youmans <3diff@gnu.org>.
3121 * manual/libm-err-tab.pl: Pretty print more platforms, print a
3124 * manual/math.texi (Errors in Math Functions): Fix grammar, start
3125 table on separate page.
3126 Patch by Brian Youmans <3diff@gnu.org>.
3128 2001-08-27 Ulrich Drepper <drepper@redhat.com>
3130 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
3131 the connection went down after we first used it try to connect
3132 again and resend the message before printing to the console.
3133 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
3135 2001-08-27 Jakub Jelinek <jakub@redhat.com>
3137 * string/tst-strlen.c (main): Test strnlen (, -1) too.
3138 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
3141 2001-08-27 Ulrich Drepper <drepper@redhat.com>
3143 * iconv/strtab.c (searchstring): Use correct length for comparison.
3144 (strtabadd): Account total size correct if new string has old string as
3147 2001-08-27 Jakub Jelinek <jakub@redhat.com>
3149 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
3151 2001-08-27 Andreas Jaeger <aj@suse.de>
3153 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
3155 * math/libm-test.inc (j0_test): Add extra tests.
3156 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
3157 not x, in Hankel approximation.
3158 Patches by Stephen L Moshier.
3160 2001-08-26 Ulrich Drepper <drepper@redhat.com>
3162 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
3165 * configure.in: Fix test for .rela.dyn section.
3167 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
3169 2001-08-26 Jakub Jelinek <jakub@redhat.com>
3171 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
3172 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
3173 Pass type_class to _dl_lookup_*.
3174 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
3175 Pass around just type_class instead of noexec, noplt pair.
3176 (_dl_lookup_versioned_symbol): Likewise.
3177 (_dl_lookup_symbol_skip): Pass around just type_class instead of
3179 (_dl_lookup_versioned_symbol_skip): Likewise.
3180 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
3181 * elf/do-lookup.h (do_lookup): Likewise.
3182 * include/link.h (struct link_map): Replace noexec and noplt fields
3183 in l_lookup_cache with type_class field.
3184 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
3185 ELF_RTYPE_CLASS_COPY): Define.
3186 Adjust prototypes for _dl_lookup_symbol and
3187 _dl_lookup_versioned_symbol.
3188 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
3189 elf_machine_lookup_noexec_p): Remove.
3190 (elf_machine_type_class): Define.
3191 * sysdeps/arm/dl-machine.h: Likewise.
3192 * sysdeps/hppa/dl-machine.h: Likewise.
3193 * sysdeps/cris/dl-machine.h: Likewise.
3194 * sysdeps/i386/dl-machine.h: Likewise.
3195 * sysdeps/ia64/dl-machine.h: Likewise.
3196 * sysdeps/m68k/dl-machine.h: Likewise.
3197 * sysdeps/mips/mips64/dl-machine.h: Likewise.
3198 * sysdeps/mips/dl-machine.h: Likewise.
3199 * sysdeps/powerpc/dl-machine.h: Likewise.
3200 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3201 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3202 * sysdeps/sh/dl-machine.h: Likewise.
3203 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3204 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3206 2001-08-26 Ulrich Drepper <drepper@redhat.com>
3208 * manual/message.texi (Advanced gettext functions): Change
3209 description of plural forms for Slovak.
3210 Reported by Marcel Telka <marcel@telka.sk>.
3212 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
3213 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
3215 2001-08-26 Jakub Jelinek <jakub@redhat.com>
3217 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
3218 typo. Patch by Florian La Roche <laroche@redhat.com>.
3220 2001-08-26 Ulrich Drepper <drepper@redhat.com>
3222 * include/link.h (struct link_map): Add l_lookup_cache element.
3223 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
3224 (RESOLVE_MAP): Likewise.
3225 (_dl_relocate_object): Remove cache initialization.
3226 * elf/dl-lookup.c: Rip out cache handling code.
3227 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
3230 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
3231 remove some __builtin_expect.
3232 (_dl_lookup_versioned_symbol): Likewise.
3234 * config.h.in: Add HAVE_Z_COMBRELOC.
3235 * configure.in: Add test for -z combreloc.
3237 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
3238 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
3239 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
3240 case to almost no code.
3242 2001-08-25 Ulrich Drepper <drepper@redhat.com>
3244 * po/tr.po: Update from translation team.
3246 2001-08-24 Andreas Jaeger <aj@suse.de>
3248 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
3251 2001-08-24 Ulrich Drepper <drepper@redhat.com>
3253 * elf/rtld.c (print_statistics): Printf % after percent values.
3254 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
3256 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
3257 don't have to compute the hash value and initialize current_value.
3258 Move reference_name variable to where it is needed.
3259 (_dl_lookup_versioned_symbol): Likewise.
3261 2001-08-24 Roland McGrath <roland@frob.com>
3263 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
3264 Just test that strerror returns non-null for a few errno codes.
3266 2001-08-23 Roland McGrath <roland@frob.com>
3268 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
3269 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
3271 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
3273 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
3276 2001-08-24 Ulrich Drepper <drepper@redhat.com>
3278 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
3281 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
3282 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
3284 * elf/rtld.c: Include <sys/param.h>.
3285 * elf/dl-reloc.c: Likewise.
3287 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3289 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
3290 empty to prevent junk from being generated.
3291 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
3293 2001-08-24 Jakub Jelinek <jakub@redhat.com>
3295 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
3296 records. Rename endrel to relative, initialize it to r, and use it
3297 in elf_machine_rel_relative calls. Point r after relative relocs.
3299 2001-08-24 Ulrich Drepper <drepper@redhat.com>
3301 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
3304 2001-08-24 Jakub Jelinek <jakub@redhat.com>
3306 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
3307 necessary. Undefine newly defined macros at the end.
3308 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
3309 Rename from elf_machine_rel_relative.
3310 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
3311 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
3312 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
3313 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
3315 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
3317 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
3319 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
3321 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
3322 Likewise. Fix argument types.
3323 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
3324 Likewise. Fix argument types.
3325 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
3327 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
3328 ElfW(Rel) in argument.
3329 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
3332 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
3334 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
3336 2001-08-24 Andreas Jaeger <aj@suse.de>
3338 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
3339 Stephen L Moshier <moshier@mediaone.net>.
3341 2001-08-24 Ulrich Drepper <drepper@redhat.com>
3343 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
3344 first if RELCOUNT is set.
3346 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
3347 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
3348 elf_machine_rel_relative.
3349 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
3350 Minor optimizations.
3351 * sysdeps/arm/dl-machine.h: Likewise.
3352 * sysdeps/cris/dl-machine.h: Likewise.
3353 * sysdeps/hppa/dl-machine.h: Likewise.
3354 * sysdeps/i386/dl-machine.h: Likewise.
3355 * sysdeps/ia64/dl-machine.h: Likewise.
3356 * sysdeps/m68k/dl-machine.h: Likewise.
3357 * sysdeps/mips/dl-machine.h: Likewise.
3358 * sysdeps/powerpc/dl-machine.h: Likewise.
3359 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3360 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3361 * sysdeps/sh/dl-machine.h: Likewise.
3362 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3363 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3365 2001-08-23 Roland McGrath <roland@frob.com>
3367 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
3369 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
3370 sysdeps/mach version. Implement counting ("recursive") mutexes
3371 on top of cthreads mutexes.
3372 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
3374 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
3375 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
3376 (__libc_cleanup_region_start, __libc_cleanup_region_end,
3377 __libc_clean_end): Define these to call the cleanup function after
3378 normal exit when they're supposed to.
3380 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
3381 Take new first arg DOIT, a boolean saying whether to really install
3382 any cleanup handler.
3383 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
3384 (__libc_cleanup_end): Likewise.
3385 * sysdeps/generic/bits/libc-lock.h: Same changes.
3386 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
3387 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
3388 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
3390 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
3391 * sysdeps/generic/bits/stdio-lock.h
3392 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
3394 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3396 * elf/ldconfig.c (search_dir): Remove stale symlinks.
3398 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3400 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
3401 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
3403 (_dl_lookup_versioned_symbol): Likewise.
3404 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
3406 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
3407 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
3408 (lookup_cache, lookup_cache_versioned): Add declarations.
3410 2001-08-23 Ulrich Drepper <drepper@redhat.com>
3412 * stdlib/tst-random.c (main): Swap parameters in fail call.
3413 Patch by Pete Bevin <pete@petebevin.com>.
3415 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3417 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
3419 2001-08-23 Ulrich Drepper <drepper@redhat.com>
3421 * malloc/obstack.c: Indent preprocessor directives.
3422 Patch by Jim Meyering <meyering@ascend.com>.
3424 * po/ja.po: Update from translation team.
3426 2001-08-23 Roland McGrath <roland@frob.com>
3428 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
3430 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
3431 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
3433 2001-08-22 Roland McGrath <roland@frob.com>
3435 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
3436 __libc_lock_define_recursive.
3437 * elf/dl-open.c: Don't declare it here any more.
3438 * elf/dl-close.c: Likewise.
3439 * elf/dl-lookup.c: Likewise.
3440 * elf/dl-iteratephdr.c: Likewise.
3441 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
3442 __libc_lock_unlock_recursive.
3443 * elf/dl-close.c (_dl_close): Likewise
3444 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
3445 * elf/dl-open.c (_dl_open): Likewise
3447 * sysdeps/generic/bits/libc-lock.h
3448 (__libc_lock_define_recursive): New macro.
3449 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
3450 (_IO_lock_lock): Use __libc_lock_lock_recursive.
3451 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
3453 * conform/conformtest.pl (checknamespace): Sort the output list.
3455 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
3456 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
3457 definitions conditional on [__USE_XOPEN].
3459 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
3460 these unconditionally, not only use [__USE_BSD], so as to match
3461 the sysdeps/unix/sysv/linux files.
3463 2001-08-22 Ulrich Drepper <drepper@redhat.com>
3465 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
3468 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
3471 2001-08-22 Roland McGrath <roland@frob.com>
3473 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
3474 conditionalization of sa_handler/sa_sigaction member types to
3475 match the sysdeps/unix/sysv/linux file.
3477 2001-08-22 Ulrich Drepper <drepper@redhat.com>
3479 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
3480 symbol sizes a bit better.
3482 * sysdeps/ia64/strncpy.S: Complete rewrite.
3483 Contributed by Jakub Jelinek <jakub@redhat.com>.
3485 * string/stratcliff.c (main): Add strncpy test.
3487 2001-08-22 Roland McGrath <roland@frob.com>
3489 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
3490 and don't declare unsetenv or _environ directly.
3491 (unsetenv): Return int, not void. Use __environ instead of _environ.
3493 2001-08-01 Mark Kettenis <kettenis@gnu.org>
3495 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
3496 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
3497 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
3498 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
3499 test for cmsg struct size.
3501 2001-04-23 Paul Eggert <eggert@twinsun.com>
3503 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
3504 Rename __argc to ___argc in prototypes to avoid compatibility
3505 problems with systems that reserve the identifier "__argc".
3506 Similarly for __argv.
3508 2001-08-21 Roland McGrath <roland@frob.com>
3510 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
3512 * mach/Makefile (tests): Removed.
3513 * mach/hello.c: File removed.
3515 2001-08-22 Ulrich Drepper <drepper@redhat.com>
3517 * po/sv.po: Update from translation team.
3519 * stdio-common/vfscanf.c: Fix handling of %l[].
3520 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3522 * libio/Makefile (tests): Add tst-sscanf.
3523 * libio/tst-sscanf.c: New file.
3525 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
3526 * malloc/mtrace.c (tr_where): dli_sname always points to a
3527 non-empty string if != NULL.
3528 Reported by Tim Janik <timj@gtk.org>.
3530 2001-08-22 Jakub Jelinek <jakub@redhat.com>
3532 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
3533 buf. Free resources on failure.
3534 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
3535 (makefd_xprt): Likewise.
3536 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
3537 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
3538 * sunrpc/auth_unix.c (authunix_create): Likewise.
3540 2001-08-21 Jakub Jelinek <jakub@redhat.com>
3542 * string/strnlen.c: Remove.
3543 * sysdeps/generic/strnlen.c: New file.
3544 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3546 2001-08-21 Roland McGrath <roland@frob.com>
3548 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3549 as a macro, not an extern inline function.
3551 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
3552 * Versions.def (libc): Add GLIBC_2.2.5 set.
3553 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
3554 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
3556 2001-08-20 Roland McGrath <roland@frob.com>
3558 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3559 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3561 2001-08-21 Ulrich Drepper <drepper@redhat.com>
3563 * string/bits/string2.h: Remove strnlen optimization here.
3564 * sysdeps/i386/i486/bits/string.h: Add it here.
3566 2001-08-21 Wolfram Gloger <wg@malloc.de>
3568 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3570 2001-08-21 Ulrich Drepper <drepper@redhat.com>
3572 * po/gl.po: Update from translation team.
3574 2001-08-20 Ulrich Drepper <drepper@redhat.com>
3576 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3577 * misc/err.c (convert_and_print): Likewise.
3579 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3582 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
3584 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
3585 change of the gregset_t type.
3586 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3588 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
3590 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3592 2001-08-20 Ulrich Drepper <drepper@redhat.com>
3594 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3596 * string/strnlen.c: Fix the implementation. We cannot use memchr.
3598 2001-08-18 Mark Kettenis <kettenis@gnu.org>
3600 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3601 before calling the cthreads initialization code.
3603 2001-08-20 Ulrich Drepper <drepper@redhat.com>
3605 * argp/argp-help.c: Fix two problems introduced in last change.
3607 * include/dirent.h: Include <dirstream.h> first.
3609 2001-08-19 Ulrich Drepper <drepper@redhat.com>
3611 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
3613 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
3614 * sunrpc/xdr_rec.c: Likewise.
3615 * sunrpc/xdr_mem.c: Likewise.
3616 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
3617 * sunrpc/rpc_cmsg.c: Likewise.
3618 * sunrpc/getrpcport.c (getrpcport): Likewise.
3619 * sunrpc/clnt_simp.c (callrpc): Likewise.
3620 * sunrpc/clnt_gen.c (clnt_create): Likewise.
3621 * string/envz.c: Likewise.
3623 * po/ko.po: Update from translation team.
3625 * argp/argp-help.c: Handle wide oriented stderr stream.
3627 2001-08-18 Ulrich Drepper <drepper@redhat.com>
3629 * sysdeps/generic/strtol.c: Little optimizations. Add some
3632 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3634 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3635 * wcsmbs/wcwidth.c (wcwdith): Likewise.
3636 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3638 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3640 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3642 * time/time.h (struct timespec): Use __time_t for tv_sec element.
3644 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
3645 wchar_t for function declarations and defintions.
3647 * misc/sys/select.h: Define __need_time_t before including <time.h>.
3648 Define suseconds_t if it hasn't happened yet.
3650 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3652 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3654 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3657 * conform/data/stddef.h-data: Remove wint_t.
3659 * conform/conformtest.pl: Change namespace test to take #undef
3662 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3664 * conform/data/sys/socket.h-data: Add sockatmark.
3666 2001-08-17 Ulrich Drepper <drepper@redhat.com>
3668 * io/fts.c: Update from recent BSD source.
3670 2001-08-17 Roland McGrath <roland@frob.com>
3672 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3673 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3676 2001-08-17 Ulrich Drepper <drepper@redhat.com>
3678 * locale/duplocale.c (__duplocale): Also initialize the special
3681 * conform/data/netdb.h-data: Adjust gai_strerror return type.
3683 2001-08-17 Andreas Jaeger <aj@suse.de>
3685 * misc/getpass.c: Include wchar.h for prototypes.
3686 * malloc/obstack.c: Likewise.
3688 2001-08-17 Ulrich Drepper <drepper@redhat.com>
3690 * sunrpc/svc_simple.c (universal): Use __write instead of write.
3692 * wcsmbs/wcscoll.c: Also define __wcscoll.
3693 * include/wchar.h: Declare __wcscoll.
3695 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
3696 * libio/vwprintf.c: Likewise.
3697 * libio/wprintf.c: Likewise.
3699 * iconv/gconv_cache.c: Use __munmap instead of munmap.
3701 2001-08-16 Ulrich Drepper <drepper@redhat.com>
3703 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3705 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3706 wcslen, and __wcscoll instead of wcscoll.
3708 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
3710 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
3711 __getuid instead of getuid.
3713 * stdio-common/perror.c (perror): Use __close instead of close.
3714 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3715 * libio/freopen.c (freopen): Likewise.
3716 * libio/freopen64.c (freopen64): Likewise.
3718 * libio/tst-ungetwc2.c (main): Define str const.
3720 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
3721 * libio/fwprintf.c: Also define __fwprintf.
3722 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
3723 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
3724 * assert/assert-perr.c: Likewise.
3725 * assert/assert.c: Likewise.
3726 * gmon/gmon.c: Likewise.
3727 * inet/rcmd.c: Likewise.
3728 * malloc/obstack.c: Likewise.
3729 * misc/err.c: Likewise.
3730 * misc/error.c: Likewise.
3731 * misc/getpass.c: Likewise.
3732 * posix/getopt.c: Likewise.
3733 * resolv/res_hconf.c: Likewise.
3734 * stdio-common/perror.c: Likewise.
3735 * stdio-common/psignal.c: Likewise.
3736 * stdlib/fmtmsg.c: Likewise.
3737 * sunrpc/auth_unix.c: Likewise.
3738 * sunrpc/clnt_perr.c: Likewise.
3739 * sunrpc/clnt_tcp.c: Likewise.
3740 * sunrpc/clnt_udp.c: Likewise.
3741 * sunrpc/clnt_unix.c: Likewise.
3742 * sunrpc/svc_simple.c: Likewise.
3743 * sunrpc/svc_tcp.c: Likewise.
3744 * sunrpc/svc_udp.c: Likewise.
3745 * sunrpc/svc_unix.c: Likewise.
3746 * sunrpc/xdr.c: Likewise.
3747 * sunrpc/xdr_array.c: Likewise.
3748 * sunrpc/xdr_rec.c: Likewise.
3749 * sunrpc/xdr_ref.c: Likewise.
3750 * sysdeps/generic/wordexp.c: Likewise.
3752 * po/it.po: Update from translation team.
3754 * misc/err.c: Handle wide oriented stderr stream.
3756 2001-08-14 Tom Rix <trix@redhat.com>
3758 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
3759 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
3761 2001-08-13 Tom Rix <trix@redhat.com>
3763 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
3764 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
3767 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
3769 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
3770 Store the access registers to the ucontext structure.
3771 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
3774 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
3775 Load the access registers from the ucontext structure.
3776 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
3779 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
3780 offsets to the new ucontext layout.
3781 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
3783 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
3784 of the ucontext structure.
3785 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3787 2001-08-15 Ulrich Drepper <drepper@redhat.com>
3789 * misc/error.c (error): Handle wide oriented stderr stream correctly.
3790 (error_at_line): Likewise.
3792 * stdio-common/perror.c (perror): Implement according to standard.
3793 The stream orientation must not be changed if the stream was not
3794 oriented before the call.
3795 * stdio-common/Makefile (tests): Add tst-perror.
3796 * stdio-common/tst-perror.c: New file.
3799 See ChangeLog.12 for earlier changes.