repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Uninitialized vector entry?
[minix3.git]
/
lib
/
posix
/
_setuid.c
blob
5eb9b9be955dcd3bb4068b84ffcdd186888478fb
1
#include <lib.h>
2
#define setuid _setuid
3
#define seteuid _seteuid
4
#include <unistd.h>
5
6
PUBLIC
int
setuid
(
usr
)
7
_mnx_Uid_t usr
;
8
{
9
message m
;
10
11
m
.
m1_i1
=
usr
;
12
return
(
_syscall
(
MM
,
SETUID
, &
m
));
13
}
14
15
PUBLIC
int
seteuid
(
usr
)
16
_mnx_Uid_t usr
;
17
{
18
message m
;
19
20
m
.
m1_i1
=
usr
;
21
return
(
_syscall
(
MM
,
SETEUID
, &
m
));
22
}