summaryrefslogtreecommitdiff
path: root/test/misc/tst-syscall0.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/misc/tst-syscall0.c')
-rw-r--r--test/misc/tst-syscall0.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/misc/tst-syscall0.c b/test/misc/tst-syscall0.c
new file mode 100644
index 0000000..ebfca95
--- /dev/null
+++ b/test/misc/tst-syscall0.c
@@ -0,0 +1,15 @@
+#include <stdio.h>
+#include <unistd.h>
+#include <sys/syscall.h>
+
+int main() {
+ int pid;
+
+ pid = syscall(SYS_getpid);
+ if (pid > 0) {
+ printf("syscall(SYS_getpid) says %d\n", pid);
+ return 0;
+ }
+
+ return 1;
+}