summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-30 08:15:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-30 08:15:55 +0000
commit5303beee0132a5cb6b9a4a8c5c7dddcffd90b4f6 (patch)
tree31010794ddbc2ecabea8f5ad7ee36b528537c62f /lib
parent5c0b5ba68d839a758eb242f1625b750e789f8cf3 (diff)
from netbsd: Removed unused CALL macro
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/arch/i386/SYS.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/libc/arch/i386/SYS.h b/lib/libc/arch/i386/SYS.h
index 13768c91d36..03c2b891647 100644
--- a/lib/libc/arch/i386/SYS.h
+++ b/lib/libc/arch/i386/SYS.h
@@ -34,15 +34,24 @@
* SUCH DAMAGE.
*
* from: @(#)SYS.h 5.5 (Berkeley) 5/7/91
- * $Id: SYS.h,v 1.1 1995/10/18 08:41:23 deraadt Exp $
+ * $Id: SYS.h,v 1.2 1995/12/30 08:15:54 deraadt Exp $
*/
#include <machine/asm.h>
#include <sys/syscall.h>
+#ifdef __STDC__
+
+#define SYSCALL(x) .text; .align 2; 2: jmp PIC_PLT(cerror); ENTRY(x); movl $(SYS_ ## x),%eax; int $0x80; jc 2b
+#define RSYSCALL(x) SYSCALL(x); ret
+#define PSEUDO(x,y) ENTRY(x); movl $(SYS_ ## y),%eax; int $0x80; ret
+
+#else /* !__STDC__ */
+
#define SYSCALL(x) .text; .align 2; 2: jmp PIC_PLT(cerror); ENTRY(x); movl $(SYS_/**/x),%eax; int $0x80; jc 2b
#define RSYSCALL(x) SYSCALL(x); ret
#define PSEUDO(x,y) ENTRY(x); movl $(SYS_/**/y),%eax; int $0x80; ret
-#define CALL(x,y) call PIC_PLT(_/**/y); addl $4*x,%esp
+
+#endif
.globl cerror