minix/lib/libc/posix/_getpid.c

11 lines
151 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#include <lib.h>
#define getpid _getpid
#include <unistd.h>
PUBLIC pid_t getpid()
{
message m;
return(_syscall(PM_PROC_NR, MINIX_GETPID, &m));
2005-04-21 16:53:53 +02:00
}