summaryrefslogtreecommitdiff
path: root/src/nonstd/SYSCALL.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nonstd/SYSCALL.c')
-rw-r--r--src/nonstd/SYSCALL.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/nonstd/SYSCALL.c b/src/nonstd/SYSCALL.c
deleted file mode 100644
index 4f4ce61a..00000000
--- a/src/nonstd/SYSCALL.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <nonstd/syscall.h>
-
-#define SYSCALL(_name, _type, _err, _a1, _a2, _a3, _a4, _a5, _a6) \
- static int _scno = -2; \
- if (_scno == -2) { _scno = ((long (*)(const char *))__libc(SYSCALL_LOOKUP))(_name); } \
- long _ret = __syscall(_scno, _a1, _a2, _a3, _a4, _a5, _a6); \
- if (_ret < 0) { \
- errno = -_ret; \
- return _err; \
- } \
- return (_type)_ret