RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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
29extern "C" {
30#endif
31
32typedef uint64_t fsblkcnt_t;
33typedef uint32_t fsfilcnt_t;
34
35struct 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
53extern int statvfs(const char *__restrict , struct statvfs *__restrict);
54extern int fstatvfs(int, struct statvfs *);
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif
Definition: statvfs.h:36
unsigned long f_namemax
Definition: statvfs.h:50
unsigned long f_fsid
Definition: statvfs.h:48
unsigned long f_bsize
Definition: statvfs.h:37
fsblkcnt_t f_bavail
Definition: statvfs.h:42
fsfilcnt_t f_files
Definition: statvfs.h:44
fsfilcnt_t f_ffree
Definition: statvfs.h:45
fsfilcnt_t f_favail
Definition: statvfs.h:46
fsblkcnt_t f_blocks
Definition: statvfs.h:39
fsblkcnt_t f_bfree
Definition: statvfs.h:41
unsigned long f_flag
Definition: statvfs.h:49
unsigned long f_frsize
Definition: statvfs.h:38