minix/lib/libsys/copyfd.c
Lionel Sambuc 6fb0c605fd Message type for VFS_COPYFD
Change-Id: I7aff1b9551d3a60b2191de1bac3b695ea06b73ce
2014-07-28 17:05:31 +02:00

16 lines
282 B
C

#include "syslib.h"
#include <string.h>
int
copyfd(endpoint_t endpt, int fd, int what)
{
message m;
memset(&m, 0, sizeof(m));
m.m_lsys_vfs_copyfd.endpt = endpt;
m.m_lsys_vfs_copyfd.fd = fd;
m.m_lsys_vfs_copyfd.what = what;
return _taskcall(VFS_PROC_NR, VFS_COPYFD, &m);
}