minix/lib/libsys/srv_fork.c
Lionel Sambuc 594521214a Message type for PM_SRV_FORK
Change-Id: I0e112da380805d40901a4041fd82da6e842e1f9b
2014-07-28 17:05:36 +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);
}