etc/services - sync with NetBSD-8
[minix.git] / minix / lib / libc / sys / fsync.c
blob9151116288363b6aea6df8e1422727d37eb2e670
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <string.h>
6 #include <unistd.h>
8 int fsync(int fd)
10 message m;
12 memset(&m, 0, sizeof(m));
13 m.m_lc_vfs_fsync.fd = fd;
15 return(_syscall(VFS_PROC_NR, VFS_FSYNC, &m));