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
some coverity fixes.
[minix.git]
/
lib
/
libc
/
sys-minix
/
fstatfs.c
blob
82ec2e04485477d348eaad7e942454163b5aac0e
1
#include <sys/cdefs.h>
2
#include <lib.h>
3
#include
"namespace.h"
4
5
#include <sys/stat.h>
6
#include <sys/statfs.h>
7
8
#ifdef __weak_alias
9
__weak_alias
(
fstatfs
,
_fstatfs
)
10
#endif
11
12
int
fstatfs
(
int
fd
,
struct
statfs
*
buffer
)
13
{
14
message m
;
15
16
m
.
m1_i1
=
fd
;
17
m
.
m1_p1
= (
char
*)
buffer
;
18
return
(
_syscall
(
VFS_PROC_NR
,
FSTATFS
, &
m
));
19
}