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
etc/services - sync with NetBSD-8
[minix.git]
/
minix
/
lib
/
libsys
/
srv_fork.c
blob
d94ae532af8a61fc16c3411ab0f5d90947487a54
1
#include
"syslib.h"
2
3
#include <string.h>
4
5
pid_t
6
srv_fork
(
uid_t reuid
,
gid_t regid
)
7
{
8
message m
;
9
10
memset
(&
m
,
0
,
sizeof
(
m
));
11
m
.
m_lsys_pm_srv_fork
.
uid
=
reuid
;
12
m
.
m_lsys_pm_srv_fork
.
gid
=
regid
;
13
return
_taskcall
(
PM_PROC_NR
,
PM_SRV_FORK
, &
m
);
14
}