summaryrefslogtreecommitdiff
path: root/lib/libc/arch/i386
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2014-06-04 20:13:50 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2014-06-04 20:13:50 +0000
commit13eed0265c7dd4bd313b7b59ef6210a0ee599810 (patch)
tree5b391c30ca5d2f42319a1dca356b2fde8114569a /lib/libc/arch/i386
parentdf20b77986557f66c89b345fa17843a9c55d7b6b (diff)
Apply "unifdef -D__STDC__" to libc/arch/*/SYS.h
A while back, pascal@ converted our system call stubs from using "cpp | as" to "cc -x assembler-with-cpp", so there's no need to stay compatible with ancient preprocessor semantics. ok miod
Diffstat (limited to 'lib/libc/arch/i386')
-rw-r--r--lib/libc/arch/i386/SYS.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/libc/arch/i386/SYS.h b/lib/libc/arch/i386/SYS.h
index 40428b0619c..cc199d6bf3d 100644
--- a/lib/libc/arch/i386/SYS.h
+++ b/lib/libc/arch/i386/SYS.h
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $OpenBSD: SYS.h,v 1.18 2012/08/22 17:19:34 pascal Exp $
+ * $OpenBSD: SYS.h,v 1.19 2014/06/04 20:13:49 matthew Exp $
*/
#include <machine/asm.h>
@@ -45,27 +45,14 @@
/* Use both _thread_sys_{syscall} and [weak] {syscall}. */
-#ifdef __STDC__
#define SYSENTRY(x) \
ENTRY(_thread_sys_ ## x); \
.weak _C_LABEL(x); \
_C_LABEL(x) = _C_LABEL(_thread_sys_ ## x)
-#else /* ! __STDC__ */
-#define SYSENTRY(x) \
- ENTRY(_thread_sys_/**/x); \
- .weak _C_LABEL(x); \
- _C_LABEL(x) = _C_LABEL(_thread_sys_/**/x)
-#endif /* ! __STDC__ */
-#ifdef __STDC__
#define __DO_SYSCALL(x) \
movl $(SYS_ ## x),%eax; \
int $0x80
-#else /* ! __STDC__ */
-#define __DO_SYSCALL(x) \
- movl $(SYS_/**/x),%eax; \
- int $0x80
-#endif /* ! __STDC__ */
#define CERROR _C_LABEL(__cerror)
#define _CERROR _C_LABEL(___cerror)