Commit Graph

3011 Commits

Author SHA1 Message Date
Ulrich Drepper aeeec7fb5e (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
Add err argument.
(INTERNAL_SYSCALL_DECL): Define.
2003-01-09 04:09:26 +00:00
Ulrich Drepper 51c050b0f7 Add INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros. 2003-01-09 04:06:05 +00:00
Ulrich Drepper c05bc2ca7b (__socket): Use SYSCALL_ERROR in place of __syscall_error. 2003-01-08 00:15:33 +00:00
Ulrich Drepper 2f0910ca96 (PSEUDO): Remove .type directive.
(PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
(SYSCALL_ERROR): New.
(SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
handling code.
(INTERNAL_SYSCALL): Define.
(INLINE_SYSCALL): Use it.
(INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
2003-01-08 00:15:07 +00:00
Ulrich Drepper 721fe4656c (syscall_error): Optimise a little.
[__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
2003-01-08 00:14:43 +00:00
Ulrich Drepper b8cce412d2 (ntp_adjtime): New weak alias. 2003-01-07 23:51:48 +00:00
Ulrich Drepper 2e2b5f5622 Add cancellation handling. 2003-01-07 00:48:34 +00:00
Ulrich Drepper 7d983cbb36 (PSEUDO): Use PSEUDO_PREPARE_ARGS. 2003-01-07 00:47:52 +00:00
Ulrich Drepper ddf42be0e2 Syscall cancellation handling for Arm. 2003-01-07 00:39:17 +00:00
Ulrich Drepper d45a8f827e (inline_syscall_r0_constraint): Rename to...
(inline_syscall_r0_out_constraint): ... this.  Add =.
(inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
2003-01-06 23:52:06 +00:00
Andreas Schwab eff2079d51 (sysdep-CFLAGS): Increase inline limit. 2003-01-06 18:11:24 +00:00
Andreas Schwab a89c56aac4 (elf_machine_runtime_setup): Make sure this is always inlined.
(elf_machine_rela): Likewise.
2003-01-06 18:10:46 +00:00
Andreas Schwab c0713cc0e0 (CFLAGS-.oS): Append -fPIC. 2003-01-05 17:14:17 +00:00
Andreas Schwab 2bf8a54e87 Add nanosecond fields. 2003-01-04 22:51:16 +00:00
Ulrich Drepper d0a6689abf (inline_syscall_r0_asm): New.
(inline_syscall_r0_constraint): New.
(inline_syscall[0-6]): Use them.
2003-01-03 21:59:45 +00:00
Ulrich Drepper eb22472e6f (__sigaction, sigaction): Protect weak_alias and libc_hidden_weak with
#ifndef LIBC_SIGACTION.
2003-01-03 00:42:10 +00:00
Ulrich Drepper 7de021d588 (__GI_accept): New alias to accept. 2002-12-31 20:44:02 +00:00
Ulrich Drepper 40efe6690b (accept): Add libc_hidden_def. 2002-12-31 20:41:23 +00:00
Ulrich Drepper ff1d023da3 (__lseek): Add libc_hidden_def. 2002-12-31 20:40:18 +00:00
Ulrich Drepper db16023193 Use libc_hidden_def(name) instead of strong_alias (name, __GI_name). 2002-12-31 20:37:32 +00:00
Andreas Jaeger 7922283928 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
with Linux kernel.
	* sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
	* sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.

	* sysdeps/unix/sysv/linux/kernel_stat.h
	(_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.

	* sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Readd
	__unused[1-3] since they're needed by some platforms.  Handle
	_HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.

	* sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
	for structs stat and stat64.
	* sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2002-12-31 13:24:33 +00:00
Ulrich Drepper c505de0a40 Add __GI___vfork alias. 2002-12-31 11:10:33 +00:00
Ulrich Drepper 7e587d1822 Add __GI___fork alias. 2002-12-31 11:07:26 +00:00
Ulrich Drepper 7a077bd196 Add libc_hidden_def for __fork. 2002-12-31 11:05:04 +00:00
Ulrich Drepper c63e402a12 Add libc_hidden_def for __nanosleep. 2002-12-31 10:22:40 +00:00
Ulrich Drepper 044758323b Add __GI__setjmp alias. 2002-12-31 09:35:36 +00:00
Andreas Schwab e88c122c4f Add cancellation support. 2002-12-27 22:15:18 +00:00
Andreas Schwab 4b5b9a0718 Fix thinko. 2002-12-21 21:05:31 +00:00
Andreas Schwab 9d3831f374 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant. 2002-12-21 20:08:15 +00:00
Andreas Schwab fb9016614d Fix warning. 2002-12-21 20:07:49 +00:00
Andreas Schwab 5d384858ff (INTERNAL_SYSCALL): Define.
(INLINE_SYSCALL): Use it.
(INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
2002-12-21 19:36:50 +00:00
Andreas Schwab d68f861c07 Use INTERNAL_SYSCALL. 2002-12-21 19:36:29 +00:00
Ulrich Drepper c025bbf609 Elide compatibility cruft when new enough kernel is assumed. 2002-12-21 18:37:16 +00:00
Ulrich Drepper 5b52ee1753 Small optimisation. 2002-12-21 18:36:55 +00:00
Ulrich Drepper a16ce997aa (_start): Optimise a little. Push stack top as seventh arg to
__libc_start_main.
2002-12-21 18:36:32 +00:00
Ulrich Drepper 9526f1fb77 Define SHM_HUGETLB. 2002-12-20 10:31:10 +00:00
Ulrich Drepper 762566f73f (msgrcv, msgsnd): Make cancelable. 2002-12-18 01:27:42 +00:00
Ulrich Drepper 519d2b2e9f Convert GCC extension initializer syntax to C99. 2002-12-16 23:17:43 +00:00
Roland McGrath 5a9c848490 2002-12-16 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
	* sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
	s_putpmsg.
	* sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
	* sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
	* sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
	* sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
	* sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
	* sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
	* sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
	* sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
2002-12-16 10:25:34 +00:00
Andreas Schwab e81a170b78 Make inline syscall to _exit. 2002-12-15 21:39:21 +00:00
Ulrich Drepper 8ea965156d (accept, connect, recv, recvfrom, recvmsg, send, sendmsg, sendto): Make
cancelable.
2002-12-15 00:52:49 +00:00
Ulrich Drepper 9de983ba90 (llseek, pread, pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
sendto, osf_select): Make cancelable.
2002-12-15 00:49:51 +00:00
Ulrich Drepper 3bfd489bb9 (__libc_sigsuspend): Likewise. 2002-12-10 20:33:27 +00:00
Ulrich Drepper b344de66b6 (__libc_select): New alias. 2002-12-10 20:33:12 +00:00
Roland McGrath f8a26bed6f 2002-12-08 Roland McGrath <roland@redhat.com>
* elf/Makefile (tests): Uncomment tst-array[123].
	* Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
	* csu/elf-init.c: New file.
	* csu/Makefile (routines, static-only-routines): Add elf-init.
	* sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
	and __libc_csu_fini in place of _fini.
	* sysdeps/arm/elf/start.S: Likewise.
	* sysdeps/cris/elf/start.S: Likewise.
	* sysdeps/hppa/elf/start.S: Likewise.
	* sysdeps/i386/elf/start.S: Likewise.
	* sysdeps/ia64/elf/start.S: Likewise.
	* sysdeps/m68k/elf/start.S: Likewise.
	* sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
	* sysdeps/mips/elf/start.S: Likewise.
	* sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
	* sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
	* sysdeps/s390/s390-32/elf/start.S: Likewise.
	* sysdeps/s390/s390-64/elf/start.S: Likewise.
	* sysdeps/sh/elf/start.S: Likewise.
	* sysdeps/sparc/sparc32/elf/start.S: Likewise.
	* sysdeps/sparc/sparc64/elf/start.S: Likewise.
	* sysdeps/x86_64/elf/start.S: Likewise.
2002-12-09 20:37:24 +00:00
Ulrich Drepper 99c37bc7d8 Added SHMLBA #define. 2002-12-08 22:53:46 +00:00
Roland McGrath fec78d3f4e 2002-12-05 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
	args to i:iipi.
	(readahead): Change args to i:iii.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
	Change args to i:iii.
	* sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
	args to i:iiii.
2002-12-05 23:46:39 +00:00
Ulrich Drepper 3a56243bb0 (struct sigevent): Change type of _attribute to void*. 2002-12-05 00:23:59 +00:00
Roland McGrath 3c49a7f2c2 2002-12-02 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
	caller from EXTRA to -.
	* sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
	* sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2002-12-03 07:28:08 +00:00
Roland McGrath b7d5c13d9d 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
* sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
	bits of RM are cleared.
2002-12-03 02:50:52 +00:00