RTEMS
statvfs.h
Go to the documentation of this file.
1 
12 /*
13  * COPYRIGHT (c) 2009 Chris Johns <chrisj@rtems.org>
14  *
15  * The license and distribution terms for this file may be
16  * found in the file LICENSE in this distribution or at
17  * http://www.rtems.org/license/LICENSE.
18  */
19 
20 /*
21  */
22 
23 #ifndef _SYS_STATVFS_H_
24 #define _SYS_STATVFS_H_
25 
26 #include <stdint.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 typedef uint64_t fsblkcnt_t;
33 typedef uint32_t fsfilcnt_t;
34 
35 struct statvfs
36 {
37  unsigned long f_bsize;
38  unsigned long f_frsize;
39  fsblkcnt_t f_blocks;
41  fsblkcnt_t f_bfree;
42  fsblkcnt_t f_bavail;
44  fsfilcnt_t f_files;
45  fsfilcnt_t f_ffree;
46  fsfilcnt_t f_favail;
48  unsigned long f_fsid;
49  unsigned long f_flag;
50  unsigned long f_namemax;
51 };
52 
53 extern int statvfs(const char *__restrict , struct statvfs *__restrict);
54 extern int fstatvfs(int, struct statvfs *);
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif
unsigned long f_fsid
Definition: statvfs.h:48
fsblkcnt_t f_bavail
Definition: statvfs.h:42
fsblkcnt_t f_blocks
Definition: statvfs.h:39
unsigned long f_frsize
Definition: statvfs.h:38
unsigned long f_namemax
Definition: statvfs.h:50
fsfilcnt_t f_ffree
Definition: statvfs.h:45
fsblkcnt_t f_bfree
Definition: statvfs.h:41
fsfilcnt_t f_files
Definition: statvfs.h:44
unsigned long f_flag
Definition: statvfs.h:49
fsfilcnt_t f_favail
Definition: statvfs.h:46
unsigned long f_bsize
Definition: statvfs.h:37