getsid() implementation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
.PATH: ${.CURDIR}/sys-minix
|
||||
|
||||
SRCS+= accept.c access.c bind.c brk.c sbrk.c m_closefrom.c compat.S \
|
||||
SRCS+= accept.c access.c bind.c brk.c sbrk.c m_closefrom.c getsid.c compat.S \
|
||||
chdir.c chmod.c fchmod.c chown.c fchown.c chroot.c close.c \
|
||||
connect.c dup.c dup2.c execve.c fcntl.c flock.c fpathconf.c fork.c \
|
||||
fstatfs.c fstatvfs.c fsync.c ftruncate.c getdents.c getegid.c getgid.c \
|
||||
|
||||
14
lib/nbsd_libc/sys-minix/getsid.c
Normal file
14
lib/nbsd_libc/sys-minix/getsid.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <sys/cdefs.h>
|
||||
#include <lib.h>
|
||||
#include "namespace.h"
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
pid_t getsid(pid_t p)
|
||||
{
|
||||
message m;
|
||||
|
||||
memset(&m, 0, sizeof(m));
|
||||
m.PM_GETSID_PID = p;
|
||||
return(_syscall(PM_PROC_NR, PM_GETSID, &m));
|
||||
}
|
||||
Reference in New Issue
Block a user