Commit Graph

1868 Commits

Author SHA1 Message Date
Ulrich Drepper
4f211d1748 Don't set errno in the _LIBC_REENTRANT case, use register names consistently. 2003-01-27 19:01:25 +00:00
Ulrich Drepper
ca0eea4226 Add support for cancellation handling and handle both __NR_pwrite64 and
__NR_pwrite.
2003-01-27 19:01:03 +00:00
Ulrich Drepper
8c5a1c7889 Add support for cancellation handling and handle both __NR_pread64 and
__NR_pread.
2003-01-27 19:00:40 +00:00
Roland McGrath
3de1f4af04 2003-01-21 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/alpha/sysdep.h (inline_syscall0,
	inline_syscall1, inline_syscall2, inline_syscall3,
	inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
	* sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
	__attribute__((unused)) to ChEcK.
2003-01-22 02:07:54 +00:00
Ulrich Drepper
af215add0a (EPILOGUE, GPSAVEREG): New.
(LOADGP) [!PIC]: Rewrite to preserve caller's gp.
2003-01-17 19:19:55 +00:00
Ulrich Drepper
0aced2c569 (__vfork): Conditionally branch to __fork even if __NR_vfork is not defined. 2003-01-15 01:06:06 +00:00
Ulrich Drepper
9da3df1021 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
2003-01-15 01:02:03 +00:00
Ulrich Drepper
259eb5cdb8 (INLINE_SYSCALL): Undefined before defining. 2003-01-14 01:23:59 +00:00
Ulrich Drepper
aaadd842d8 Add inline syscall definitions.
(PSEUDO_LOADGP): Remove.
(PSEUDO_PROLOGUE): Load GP in non-pic case.
(SYSCALL_ERROR_LABEL): New.
(PSEUDO): Use it in error branch.
(PSEUDO_END): Add $syscall_error label.
2003-01-12 19:25:52 +00:00
Ulrich Drepper
411c121bce Move inline syscall bits to sysdeps/unix/alpha/sysdep.h. 2003-01-12 19:23:41 +00:00
Ulrich Drepper
df162e7602 Use correct definition of errno for NOT_IN_libc. 2003-01-12 19:23:03 +00:00
Ulrich Drepper
f5e2ab0edb vfork implementation for LinuxThreads/Arm. 2003-01-12 09:16:06 +00:00
Ulrich Drepper
e62ed29b3b (PSEUDO_RET): Correctly unstack lr.
(UNDOARGS_5): Fix ordering of pushes and pops.
(SINGLE_THREAD_P_PIC): New.
(SINGLE_THREAD_P_INT): Likewise.
(SINGLE_THREAD_P): Implement in terms of above.  Restore lr if it was stacked.
(PSEUDO): Use SINGLE_THREAD_P_INT.
2003-01-12 09:14:25 +00:00
Ulrich Drepper
191cbebf58 Add cancellation support. 2003-01-12 09:06:28 +00:00
Andreas Jaeger
9cc157d474 * sysdeps/unix/mips/fork.S: add PSEUDO_END.
* sysdeps/unix/mips/brk.S: Likewise.
	* sysdeps/unix/mips/pipe.S: Likewise.
2003-01-11 15:26:35 +00:00
Andreas Schwab
c7aa3cacfc GET_NPROCS_PARSER for m68k. 2003-01-10 15:36:20 +00:00
Andreas Schwab
2eb7464224 Optimize for kernels which are known to have the vfork syscall. 2003-01-10 14:05:26 +00:00
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
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
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
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