minix3/lib/libsys/copyfd.c

17 lines
282 B
C
Raw Normal View History

2020-02-21 00:59:27 +05:30
#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);
}