blob: 10f2aeebab61f179083492d8ed62d5c7a887ba80 (
plain)
1
2
3
4
5
6
7
|
#include <nonstd/syscall.h>
#define SYSCALL_NUMBER(_var, _name, _notfound) \
static long _var = -2; do { \
if (_var == -2) { (_var) = ((long (*)(char*))__libc(SYSCALL_LOOKUP))(_name); } \
if (_var == -1) { errno = ENOSYS; return (_notfound); } \
} while (0)
|