libutil: add O_NOCTTY back to old pty open code
[minix.git] / lib / libc / sys-minix / fstatfs.c
blob82ec2e04485477d348eaad7e942454163b5aac0e
1 #include <sys/cdefs.h>
2 #include <lib.h>
3 #include "namespace.h"
5 #include <sys/stat.h>
6 #include <sys/statfs.h>
8 #ifdef __weak_alias
9 __weak_alias(fstatfs, _fstatfs)
10 #endif
12 int fstatfs(int fd, struct statfs *buffer)
14 message m;
16 m.m1_i1 = fd;
17 m.m1_p1 = (char *) buffer;
18 return(_syscall(VFS_PROC_NR, FSTATFS, &m));