minix/minix/lib/libsys/srv_fork.c
Lionel Sambuc 433d6423c3 New sources layout
Change-Id: Ic716f336b7071063997cf5b4dae6d50e0b4631e9
2014-07-31 16:00:30 +02:00

14 lines
245 B
C

#include "syslib.h"
#include <string.h>
pid_t
srv_fork(uid_t reuid, gid_t regid)
{
message m;
memset(&m, 0, sizeof(m));
m.m_lsys_pm_srv_fork.uid = reuid;
m.m_lsys_pm_srv_fork.gid = regid;
return _taskcall(PM_PROC_NR, PM_SRV_FORK, &m);
}