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
Remove building with NOCRYPTO option
[minix.git]
/
minix
/
lib
/
libc
/
sys
/
fstatfs.c
blob
4f38bc60be5d6885540e8d01175677f02c4b9a06
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
#include <sys/statvfs.h>
8
9
int
fstatfs
(
int
fd
,
struct
statfs
*
buffer
)
10
{
11
struct
statvfs svbuffer
;
12
int
r
;
13
14
if
((
r
=
fstatvfs
(
fd
, &
svbuffer
)) !=
0
)
15
return
r
;
16
17
buffer
->
f_bsize
=
svbuffer
.
f_bsize
;
18
19
return
0
;
20
}