summaryrefslogtreecommitdiff
path: root/src/nonstd
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-27 21:20:04 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-27 21:20:04 -0500
commita4a76ebe51a9c25c76f88b2ae1560491372e0787 (patch)
treef17c051f2b00b531a68bd0ad117f57f291631dae /src/nonstd
parent7c537140edd2b17a8932b815bef62728db593343 (diff)
add __lookup() convenience macro
Diffstat (limited to 'src/nonstd')
-rw-r--r--src/nonstd/__lookup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nonstd/__lookup.c b/src/nonstd/__lookup.c
new file mode 100644
index 00000000..dca2f6a9
--- /dev/null
+++ b/src/nonstd/__lookup.c
@@ -0,0 +1,3 @@
+#include <nonstd/syscall.h>
+
+#define __lookup(_name) ((long (*)(const char *))__libc(SYSCALL_LOOKUP))(_name)