repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libutil: add O_NOCTTY back to old pty open code
[minix.git]
/
lib
/
libc
/
sys-minix
/
getuid.c
blob
b8662b7e3a749b3c00e58cb6e81e06ee4998fb1e
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <unistd.h>
6
7
#ifdef __weak_alias
8
__weak_alias
(
getuid
,
_getuid
)
9
#endif
10
11
uid_t
getuid
()
12
{
13
message m
;
14
15
return
( (
uid_t
)
_syscall
(
PM_PROC_NR
,
GETUID
, &
m
));
16
}