]>
Commit | Line | Data |
---|---|---|
a887211b CV |
1 | /* sys/vfs.h |
2 | ||
a887211b CV |
3 | This file is part of Cygwin. |
4 | ||
5 | This software is a copyrighted work licensed under the terms of the | |
6 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for | |
7 | details. */ | |
8 | ||
1fd5e000 CF |
9 | #ifndef _SYS_VFS_H_ |
10 | #define _SYS_VFS_H_ | |
11 | ||
12 | struct statfs { | |
1f77d71b | 13 | long f_type; /* type of filesystem */ |
1fd5e000 CF |
14 | long f_bsize; /* optimal transfer block size */ |
15 | long f_blocks; /* total data blocks in file system */ | |
16 | long f_bfree; /* free blocks in fs */ | |
17 | long f_bavail; /* free blocks avail to non-superuser */ | |
18 | long f_files; /* total file nodes in file system */ | |
19 | long f_ffree; /* free file nodes in fs */ | |
20 | long f_fsid; /* file system id */ | |
21 | long f_namelen; /* maximum length of filenames */ | |
22 | long f_spare[6]; /* spare for later */ | |
23 | }; | |
24 | ||
25 | #ifdef __cplusplus | |
26 | extern "C" { | |
27 | #endif /* __cplusplus */ | |
28 | ||
29 | int statfs (const char *__path, struct statfs *__buf); | |
30 | int fstatfs (int __fd, struct statfs *__buf); | |
31 | ||
32 | #ifdef __cplusplus | |
33 | }; | |
34 | #endif /* __cplusplus */ | |
35 | ||
36 | #endif /*_SYS_VFS_H_*/ |