etc/services - sync with NetBSD-8
[minix.git] / minix / lib / libc / sys / getpid.c
blobe8559694083bb88737e44bf327c354e347896605
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <string.h>
6 #include <unistd.h>
8 pid_t getpid(void)
10 message m;
12 memset(&m, 0, sizeof(m));
13 return(_syscall(PM_PROC_NR, PM_GETPID, &m));