summaryrefslogtreecommitdiff
path: root/test/misc/tst-syscall0.c
blob: ebfca95bc0c681d6d68e7186844bedd1baa481ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}