xref: /minix3/minix/lib/libsys/copyfd.c (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1*433d6423SLionel Sambuc #include "syslib.h"
2*433d6423SLionel Sambuc 
3*433d6423SLionel Sambuc #include <string.h>
4*433d6423SLionel Sambuc 
5*433d6423SLionel Sambuc int
copyfd(endpoint_t endpt,int fd,int what)6*433d6423SLionel Sambuc copyfd(endpoint_t endpt, int fd, int what)
7*433d6423SLionel Sambuc {
8*433d6423SLionel Sambuc 	message m;
9*433d6423SLionel Sambuc 
10*433d6423SLionel Sambuc 	memset(&m, 0, sizeof(m));
11*433d6423SLionel Sambuc 	m.m_lsys_vfs_copyfd.endpt = endpt;
12*433d6423SLionel Sambuc 	m.m_lsys_vfs_copyfd.fd = fd;
13*433d6423SLionel Sambuc 	m.m_lsys_vfs_copyfd.what = what;
14*433d6423SLionel Sambuc 
15*433d6423SLionel Sambuc 	return _taskcall(VFS_PROC_NR, VFS_COPYFD, &m);
16*433d6423SLionel Sambuc }
17