Commit graph

9163 commits

Author SHA1 Message Date
Roland McGrath cc590e1d4e 2002-09-29 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
	Define errno in .tbss.
	* sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
	access for setting errno.
2002-09-29 21:41:17 +00:00
Ulrich Drepper 330fad2970 Update.
* sysdeps/unix/sysv/linux/kernel-features.h
	(__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.

2002-09-29  Jakub Jelinek  <jakub@redhat.com>
2002-09-29 20:44:22 +00:00
Ulrich Drepper 9a1c21c453 Update.
* nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
	exist.

2002-09-29  Ulrich Drepper  <drepper@redhat.com>

	* nss/Makefile: Move bug-erage from tests to xtests.

2002-09-29  Jakub Jelinek  <jakub@redhat.com>
2002-09-29 18:25:48 +00:00
Ulrich Drepper 3ae5121b7f (DO_SET_THREAD_AREA): Don't use INLINE_SYSCALL for set_thread_area syscall. 2002-09-29 18:12:30 +00:00
Roland McGrath f2672dddd1 * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
2002-09-29  Jakub Jelinek  <jakub@redhat.com>
2002-09-29 12:35:09 +00:00
Roland McGrath 72d4c33d4c * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
volatile.
	(inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
	inline_syscall5, inline_syscall6): Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
	Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
	Likewise.

2002-09-29  Roland McGrath  <roland@redhat.com>

	* configure.in (libc_cv_ranlib_necessary check): Put the .o file in
	the archive, not the .c file.
	* configure: Regenerated.
2002-09-29 11:32:03 +00:00
Roland McGrath 5bbfc1ea70 * configure: Regenerated after aclocal.m4 change.
* sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
	* sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.

	* sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
	Define it, because _dl_sym presumes it (for any platform).

	* sysdeps/x86_64/dl-tls.h: New file.

	* sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.

	* sysdeps/x86_64/elf/configure.in: New file.
	* sysdeps/x86_64/elf/configure: New generated file.
2002-09-29 10:38:40 +00:00
Roland McGrath 3c25964fb0 * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
* aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
	before we check it.
2002-09-29 09:35:51 +00:00
Roland McGrath 70d633a059 2002-09-28 Roland McGrath <roland@redhat.com>
* aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
	before we check it.
2002-09-29 09:35:35 +00:00
Ulrich Drepper 1b80b4f1c9 Update. 2002-09-29 07:03:57 +00:00
Ulrich Drepper d8427e20ba Update.
2002-09-28  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
	entry point.

	* sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
2002-09-28 23:05:39 +00:00
Ulrich Drepper fec0c5bb7f Add __syscall_exit entry point. 2002-09-28 23:02:54 +00:00
Roland McGrath 3865b57f91 * pthread.c (__pthread_reset_main_thread) [FLOATING_STACKS]:
Don't call setrlimit, since we did no prior bogon we need to undo.
2002-09-28 21:58:14 +00:00
Roland McGrath ec1434fc89 * posix/bug-regex11.c (tests): Add flags field.
(main): Avoid warnings.  Use test[i].flags.  Return nonzero
	if any of the tests failed.
	* posix/bug-regex12.c: New file.
	* posix/Makefile (tests): Add bug-regex12.
2002-09-28 20:51:31 +00:00
Roland McGrath ab635ab254 2002-09-28 Jakub Jelinek <jakub@redhat.com>
* posix/bug-regex11.c (tests): Add flags field.
	(main): Avoid warnings.  Use test[i].flags.  Return nonzero
	if any of the tests failed.
	* posix/bug-regex12.c: New file.
	* posix/Makefile (tests): Add bug-regex12.
2002-09-28 20:51:17 +00:00
Ulrich Drepper 100a05053c Update.
2002-03-02  Thorsten Kukuk  <kukuk@suse.de>

        * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.

2002-09-28  Jeff Bailey  <jbailey@gnu.org>

	* sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
	* sysdeps/unix/sysv/aix/configure.in: Update comment and remove
	stdio=libio setting.

	* sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
	Define these to __NR_pread64, __NR_pwrite64 if not defined.
2002-09-28 20:12:15 +00:00
Roland McGrath 6ae4fca735 * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
_dl_signal_error.
	* sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
	* sysdeps/powerpc/powerpc64/dl-machine.c
	(_dl_reloc_overflow): Likewise.
	* sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
	(elf_machine_rela): Likewise.
2002-09-28 19:45:42 +00:00
Roland McGrath a30471af3b * include/libc-symbols.h (__hidden_dot_weak1): Fix typo. Replace
ASM_GLOBAL_DIRECTIVE with .weak.
2002-09-28 19:22:39 +00:00
Roland McGrath c7f093195b 2002-09-27 Steven Munroe <sjmunroe@us.ibm.com>
* include/libc-symbols.h (__hidden_dot_weak1): Fix typo.  Replace
	ASM_GLOBAL_DIRECTIVE with .weak.
2002-09-28 19:22:26 +00:00
Ulrich Drepper 105fabb04e (nice): Use getpriority() for the return value. 2002-09-28 19:13:13 +00:00
Ulrich Drepper 891f199305 (td_thr_tls_get_addr): Fix reference to dtv. 2002-09-28 17:41:37 +00:00
Andreas Jaeger 1a1495c091 * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
number of args to syscall.
	* sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
	Patch by Guido Guenther <agx@sigxcpu.org>.
2002-09-28 13:40:33 +00:00
Andreas Jaeger f1a0483069 Fix number of args to syscall. 2002-09-28 13:40:10 +00:00
Ulrich Drepper d221f784bc Update.
2002-09-27  Isamu Hasegawa  <isamu@yamato.ibm.com>

	* posix/regcomp.c (reg_free): Free the debug area.
	(re_compile_internal): Allocate debug area for the input string.
	(create_initial_state): Check the back references in initial states
	if they are really match null string in the initial state.
	(parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
	(parse_expression): Likewise.
	(parse_bracket_exp): Likewise.
	* posix/regex_internal.c (re_node_set_intersect): Remove unused
	function.
	(re_node_set_contains): Change to return the index of node.
	* posix/regex_internal.h (re_backref_cache_entry): Change the members.
	(re_match_context_t): Likewise.
	(struct re_dfa_t): Likewise.
	(re_sift_context_t): New structure.
	* posix/regexec.c (match_ctx_clear_flag): New function.
	(sift_ctx_init): Likewise.
	(update_cur_sifted_state): Likewise.
	(add_epsilon_src_nodes): Likewise.
	(sub_epsilon_src_nodes): Likewise.
	(check_subexp_limits): Likewise.
	(search_subexp): Likewise.
	(sift_states_bkref): Likewise.
	(merge_state_array): Likewise.
	(sift_states_iter_bkref): Remove unused function.
	(add_epsilon_backreference): Remove unused function.
	(re_search_internal): Adapt new members and interfaces.
	(check_matching): Check the back references in initial states
	if they are really match null string in the initial state.
	(proceed_next_node): Change the evaluation of back references,
	since we have real registers here.
	(set_regs): Adapt new interface of proceed_next_node.
	(sift_states_backward): Add invocation of update_cur_sifted_state
	instead of add_epsilon_backreference.
	Add a sentinel to the outermost while loop.
	Move the handling of back references to sift_states_bkref function,
	since we can't handle some back references (e.g. a back reference
	which match NULL string) here.
	(transit_state_mb): Handle the new member max_mb_elem_len.
	(transit_state_bkref_loop): Move the evaluation of back references to
	search_subexp function, since we can't evaluate some back references
	(e.g. a back reference which can have plural matchings) here.
	(match_ctx_init): Adapt the new member.
	(match_ctx_add_entry): Adapt the new members.

2002-09-25  Alan Modra  <amodra@bigpond.net.au>

	* elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
	'elf_machine_rel_relative'
	(elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
	instead of 'elf_machine_rel_relative'.
	* sysdeps/hppa/dl-machine.h:
	Define macro DO_ELF_MACHINE_REL_RELATIVE for
	'elf_machine_rel_relative' with extra map parameter
	required by HPPA.
	(elf_machine_rela_relative): Add plt relocation changes.

2001-11-14  Matthew Wilcox  <willy@debian.org>

	* sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
	* sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
	* sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
	* sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
2002-09-28 06:34:10 +00:00
Ulrich Drepper 0742e48e18 Update.
2002-09-27  Ulrich Drepper  <drepper@redhat.com>

	* locales/zh_TW: Use shorter forms for abday and day.
	Patch by Rex Tsai <chihchun@kalug.linux.org.tw>.
2002-09-28 05:28:44 +00:00
Ulrich Drepper 0e312a8282 Define macro DO_ELF_MACHINE_REL_RELATIVE for 'elf_machine_rel_relative'. (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro instead of 'elf_machine_rel_relative'. 2002-09-28 04:29:49 +00:00
Roland McGrath 2c536abd23 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
(__NR_pread, __NR_pwrite): Define these to __NR_pread64, __NR_pwrite64
	if not defined.

	* sysdeps/unix/sysv/linux/powerpc/lchown.S
	[SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
	on chown compatibility symbol; use compat_symbol, not symbol_version.
2002-09-28 04:15:27 +00:00
Roland McGrath 3899afcb76 2002-09-27 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/sysdep.h
	(__NR_pread, __NR_pwrite): Define these to __NR_pread64, __NR_pwrite64
	if not defined.
2002-09-28 04:15:00 +00:00
Ulrich Drepper 6546c95f67 SysV shared memory definitions for Linux/PA. 2002-09-28 04:05:23 +00:00
Ulrich Drepper 0d1ef15f59 (Hash Search Function): Describe that memory must be cleared before calling hcreate_r. 2002-09-28 03:51:42 +00:00
Roland McGrath 7c2a2aafbb 2002-09-27 Roland McGrath <roland@redhat.com>
* sysdeps/x86_64/tls.h [__ASSEMBLER__]: Don't include <pt-machine.h>.
2002-09-28 03:26:03 +00:00
Roland McGrath 1c99af9113 * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment. 2002-09-27 19:59:04 +00:00
Roland McGrath d54bcd1e22 * sysdeps/powerpc/powerpc64/Makefile
[$(build-shared) = yes] (pic-ccflag): Define it.
	[$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
2002-09-27 19:45:50 +00:00
Roland McGrath 82c02215ce * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
unneeded TLS cases.
2002-09-27 08:29:54 +00:00
Roland McGrath 8323008c64 * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
unconditionally.  Set dli_fname to _dl_argv[0] only for main program.

2002-09-27  Roland McGrath  <roland@redhat.com>

	* elf/dl-addr.c (_dl_addr): Add a cast.

	* sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
	TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.

	* elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
	R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
	R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
	(R_X86_64_NUM): Update the value.
2002-09-27 07:29:51 +00:00
Roland McGrath 29c082c513 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
	addend.
	* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
	the same l_addr computation.
	* sysdeps/sparc/sparc64/configure.in: Removed.
	* sysdeps/sparc/sparc64/configure: Removed.
	* config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
2002-09-27 03:24:18 +00:00
Roland McGrath 8243d6f1b7 2002-09-24 Jakub Jelinek <jakub@redhat.com>
* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
	rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
	addend.
	* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
	the same l_addr computation.
	* sysdeps/sparc/sparc64/configure.in: Removed.
	* sysdeps/sparc/sparc64/configure: Removed.
	* config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
2002-09-27 03:23:45 +00:00
Ulrich Drepper 9a88a2d7b3 Update.
2002-09-26  Ulrich Drepper  <drepper@redhat.com>

	* elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
	if necessary.
	* elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
	* elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
	symbol table if necessary.
2002-09-27 03:17:20 +00:00
Ulrich Drepper 58c9f058a2 (elf_get_dynamic_info): Also relocate DT_HASH entry if necessary. 2002-09-27 02:56:54 +00:00
Roland McGrath ba967ec556 * stdlib/longlong.h: Replaced with current version from GCC mainline,
last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
2002-09-26 22:33:24 +00:00
Roland McGrath 41b0afab29 2002-09-26 Roland McGrath <roland@redhat.com>
* stdlib/longlong.h: Replaced with current version from GCC mainline,
	last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
2002-09-26 22:32:54 +00:00
Andreas Jaeger 0638e1c4ee * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
Patch by Guido Guenther <agx@sigxcpu.org>.
2002-09-25 11:14:50 +00:00
Andreas Jaeger 44c49908a1 Add syscall_exit. 2002-09-25 11:09:55 +00:00
Roland McGrath 9dabf4a6fa * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS). 2002-09-25 07:20:01 +00:00
Roland McGrath 8027e18876 2002-09-25 Roland McGrath <roland@redhat.com>
* Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
2002-09-25 07:19:28 +00:00
Ulrich Drepper b4d8d06a49 Update.
2002-09-24  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
2002-09-25 06:47:44 +00:00
Ulrich Drepper 1ad484c629 Recognize nptl add-on name. 2002-09-25 06:44:02 +00:00
Roland McGrath 29514aade7 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
__libc_write, __libc_lseek64, to ...
	(ld: GLIBC_PRIVATE): ... here.
2002-09-25 03:26:16 +00:00
Roland McGrath 160bb40945 * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
(libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
	(libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
	* resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
	(libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
	and _res.
	(libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.

	* elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
	New macros for x86-64.

	* sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
	It was indentical to the linux/bits/time.h file.

	* nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.

	* resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
2002-09-25 01:58:37 +00:00
Roland McGrath 1e78de0594 2002-09-24 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
	It was indentical to the linux/bits/time.h file.
2002-09-25 01:57:50 +00:00