RTEMS: cpukit/include/sys/statvfs.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
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
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
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
statvfs
Definition: statvfs.h:36
statvfs::f_namemax
unsigned long f_namemax
Definition: statvfs.h:50
statvfs::f_fsid
unsigned long f_fsid
Definition: statvfs.h:48
statvfs::f_bsize
unsigned long f_bsize
Definition: statvfs.h:37
statvfs::f_bavail
fsblkcnt_t f_bavail
Definition: statvfs.h:42
statvfs::f_files
fsfilcnt_t f_files
Definition: statvfs.h:44
statvfs::f_ffree
fsfilcnt_t f_ffree
Definition: statvfs.h:45
statvfs::f_favail
fsfilcnt_t f_favail
Definition: statvfs.h:46
statvfs::f_blocks
fsblkcnt_t f_blocks
Definition: statvfs.h:39
statvfs::f_bfree
fsblkcnt_t f_bfree
Definition: statvfs.h:41
statvfs::f_flag
unsigned long f_flag
Definition: statvfs.h:49
statvfs::f_frsize
unsigned long f_frsize
Definition: statvfs.h:38