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