aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1992-03-11 02:10:11 +0000
committerRoland McGrath <roland@gnu.org>1992-03-11 02:10:11 +0000
commit030ac448d8accfad42c17c2e1a6f36c18db6b455 (patch)
tree8d6ecb66fdd0f5aa0873bf2d1f4909ccb09436c6
parent3cf947268dbe118695b4b957eb1e62854ece47fc (diff)
downloadglibc-030ac448d8accfad42c17c2e1a6f36c18db6b455.tar.xz
glibc-030ac448d8accfad42c17c2e1a6f36c18db6b455.zip
Formerly unix/bsd/sun/m68k/sysdep.h.~12~
-rw-r--r--sysdeps/unix/bsd/sun/m68k/sysdep.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/sysdeps/unix/bsd/sun/m68k/sysdep.h b/sysdeps/unix/bsd/sun/m68k/sysdep.h
index bf0b226fe7..10bdcfbd21 100644
--- a/sysdeps/unix/bsd/sun/m68k/sysdep.h
+++ b/sysdeps/unix/bsd/sun/m68k/sysdep.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -16,8 +16,12 @@ License along with the GNU C Library; see the file COPYING.LIB. If
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */
+/* This code wants to be run through m4. */
+
#include <sysdeps/unix/sysdep.h>
+#define POUND(foo) (@@@Hash-Here@@@)foo
+
#ifdef __STDC__
#define ENTRY(name) \
.globl _##name; \
@@ -32,26 +36,22 @@ Cambridge, MA 02139, USA. */
#ifdef __STDC__
#define PSEUDO(name, syscall_name) \
- .set sysno, SYS_##syscall_name; \
- .set zero, 0; \
.even; \
.globl syscall_error; \
error: jmp syscall_error; \
ENTRY (name) \
- pea sysno; \
- trap zero; \
- bcs error \
+ pea SYS_##syscall_name; \
+ trap POUND(0); \
+ bcs error
#else
#define PSEUDO(name, syscall_name) \
- .set sysno, SYS_/**/syscall_name; \
- .set zero, 0; \
.even; \
.globl syscall_error; \
error: jmp syscall_error; \
ENTRY (name) \
- pea sysno; \
- trap zero; \
- bcs error \
+ pea SYS_/**/syscall_name; \
+ trap POUND(0); \
+ bcs error
#endif
#define ret rts