Drop main() prototype. Syncs with NetBSD-8
[minix.git] / minix / lib / libsys / copyfd.c
blobfb1ff87c24cde4d54fd49ff27dd33a6e910227d8
1 #include "syslib.h"
3 #include <string.h>
5 int
6 copyfd(endpoint_t endpt, int fd, int what)
8 message m;
10 memset(&m, 0, sizeof(m));
11 m.m_lsys_vfs_copyfd.endpt = endpt;
12 m.m_lsys_vfs_copyfd.fd = fd;
13 m.m_lsys_vfs_copyfd.what = what;
15 return _taskcall(VFS_PROC_NR, VFS_COPYFD, &m);