summaryrefslogtreecommitdiff
path: root/lib/libc/arch/i386
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-19 19:39:42 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-19 19:39:42 +0000
commit3923126b85f9e8a77cab9a41b5a62125acd5b4cd (patch)
tree1a8b19c5db03f8c989fc8228811837b182feb7a3 /lib/libc/arch/i386
parentcc03bdb70090357d2393b6ec82e3cde4d5ce5edd (diff)
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
Diffstat (limited to 'lib/libc/arch/i386')
-rw-r--r--lib/libc/arch/i386/SYS.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/lib/libc/arch/i386/SYS.h b/lib/libc/arch/i386/SYS.h
index a4d0fe9d6aa..90f6beab34d 100644
--- a/lib/libc/arch/i386/SYS.h
+++ b/lib/libc/arch/i386/SYS.h
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $OpenBSD: SYS.h,v 1.9 2001/09/20 20:52:09 millert Exp $
+ * $OpenBSD: SYS.h,v 1.10 2002/02/19 19:39:36 millert Exp $
*/
#include <machine/asm.h>
@@ -51,11 +51,7 @@
#ifdef _THREAD_SAFE
/* Use _thread_sys_{syscall} when compiled with -D_THREAD_SAFE */
-#ifdef __STDC__
#define SYSENTRY(x) ENTRY(_thread_sys_ ## x)
-#else /* ! __STDC__ */
-#define SYSENTRY(x) ENTRY(_thread_sys_/**/x)
-#endif /* ! __STDC__ */
#else /* ! _THREAD_SAFE */
/* Use {syscall} when compiling without -D_THREAD_SAFE */
#define SYSENTRY(x) ENTRY(x)
@@ -65,28 +61,15 @@
/* 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__ */
#endif /* WEAK_ALIASES */
-#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__ */
/* perform a syscall */
#define _SYSCALL_NOERROR(x,y) \