libutil: add O_NOCTTY back to old pty open code
[minix.git] / lib / libc / sys-minix / getpid.c
bloba041af71ec51160f706af2b61c51cbc6c5b892a7
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <unistd.h>
7 #ifdef __weak_alias
8 __weak_alias(getpid, _getpid)
9 #endif
11 pid_t getpid()
13 message m;
15 return(_syscall(PM_PROC_NR, MINIX_GETPID, &m));