minix/lib/libc/posix/_getpid.c
2010-06-08 13:58:01 +00:00

10 lines
151 B
C

#include <lib.h>
#define getpid _getpid
#include <unistd.h>
PUBLIC pid_t getpid()
{
message m;
return(_syscall(PM_PROC_NR, MINIX_GETPID, &m));
}