repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libutil: add O_NOCTTY back to old pty open code
[minix.git]
/
lib
/
libc
/
sys-minix
/
fstatvfs.c
blob
63e4d39e5407eca33a1f9a0c5c594c48c1c04771
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <sys/statvfs.h>
6
7
#ifdef __weak_alias
8
__weak_alias
(
fstatvfs
,
_fstatvfs
)
9
#endif
10
11
int
fstatvfs
(
int
fd
,
struct
statvfs
*
buffer
)
12
{
13
message m
;
14
15
m
.
FSTATVFS_FD
=
fd
;
16
m
.
FSTATVFS_BUF
= (
char
*)
buffer
;
17
return
(
_syscall
(
VFS_PROC_NR
,
FSTATVFS
, &
m
));
18
}