libutil: add O_NOCTTY back to old pty open code
[minix.git] / lib / libc / sys-minix / fsync.c
blob15ef3febaa7a9b329cc689eea90f5947ae29a882
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <unistd.h>
7 #ifdef __weak_alias
8 __weak_alias(fsync, _fsync)
9 #endif
11 int fsync(int fd)
13 message m;
15 m.m1_i1 = fd;
17 return(_syscall(VFS_PROC_NR, FSYNC, &m));