diff options
author | 2014-06-04 20:13:49 +0000 | |
---|---|---|
committer | 2014-06-04 20:13:49 +0000 | |
commit | b67c48e940b887f6c77a30e56c0fa110ba2a355b (patch) | |
tree | c57c5e1dd7e715270676aa1ccfe998023dab7c93 /lib/libc/arch/amd64 | |
parent | Fix a leak that can occur when len == 0, and as a result we leak a \0 byte. (diff) | |
download | wireguard-openbsd-b67c48e940b887f6c77a30e56c0fa110ba2a355b.tar.xz wireguard-openbsd-b67c48e940b887f6c77a30e56c0fa110ba2a355b.zip |
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/amd64')
-rw-r--r-- | lib/libc/arch/amd64/SYS.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/libc/arch/amd64/SYS.h b/lib/libc/arch/amd64/SYS.h index a7864ffa2ad..f5710a879c4 100644 --- a/lib/libc/arch/amd64/SYS.h +++ b/lib/libc/arch/amd64/SYS.h @@ -1,4 +1,4 @@ -/* $OpenBSD: SYS.h,v 1.8 2012/08/22 17:19:34 pascal Exp $ */ +/* $OpenBSD: SYS.h,v 1.9 2014/06/04 20:13:49 matthew Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -38,22 +38,12 @@ #include <machine/asm.h> #include <sys/syscall.h> -#ifdef __STDC__ #define SYSTRAP(x) movl $(SYS_ ## x),%eax; movq %rcx, %r10; syscall #define SYSENTRY(x) \ ENTRY(_thread_sys_ ## x); \ .weak _C_LABEL(x); \ _C_LABEL(x) = _C_LABEL(_thread_sys_ ## x) -#else - -#define SYSTRAP(x) movl $(SYS_/**/x),%eax; movq %rcx, %r10; syscall -#define SYSENTRY(x) \ - ENTRY(_thread_sys_/**/x); \ - .weak _C_LABEL(x); \ - _C_LABEL(x) = _C_LABEL(_thread_sys_/**/x) - -#endif #define CERROR _C_LABEL(__cerror) #define _CERROR _C_LABEL(___cerror) |