Ansel
0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
statvfs.h
Go to the documentation of this file.
1
/*
2
This file is part of darktable,
3
Copyright (C) 2017-2020 darktable developers.
4
5
darktable is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9
10
darktable is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with darktable. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
38
#pragma once
39
40
#ifdef __cplusplus
41
extern
"C"
{
42
#endif
43
44
typedef
unsigned
long
long
fsblkcnt_t
;
45
typedef
unsigned
long
long
fsfilcnt_t
;
46
47
struct
statvfs
48
{
49
unsigned
long
f_bsize
;
/* file system block size */
50
unsigned
long
f_frsize
;
/* fragment size */
51
fsblkcnt_t
f_blocks
;
/* size of fs in f_frsize units */
52
fsblkcnt_t
f_bfree
;
/* # free blocks */
53
fsblkcnt_t
f_bavail
;
/* # free blocks for unprivileged users */
54
fsfilcnt_t
f_files
;
/* # inodes */
55
fsfilcnt_t
f_ffree
;
/* # free inodes */
56
fsfilcnt_t
f_favail
;
/* # free inodes for unprivileged users */
57
unsigned
long
f_fsid
;
/* file system ID */
58
unsigned
long
f_flag
;
/* mount flags */
59
unsigned
long
f_namemax
;
/* maximum filename length */
60
};
61
62
int
statvfs
(
const
char
*path,
struct
statvfs
*buf);
63
64
#ifdef __cplusplus
65
}
66
#endif
67
68
// clang-format off
69
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
70
// vim: shiftwidth=2 expandtab tabstop=2 cindent
71
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
72
// clang-format on
73
fsfilcnt_t
unsigned long long fsfilcnt_t
Definition
statvfs.h:45
fsblkcnt_t
unsigned long long fsblkcnt_t
Definition
statvfs.h:44
statvfs
Definition
statvfs.h:48
statvfs::f_namemax
unsigned long f_namemax
Definition
statvfs.h:59
statvfs::f_fsid
unsigned long f_fsid
Definition
statvfs.h:57
statvfs::f_bsize
unsigned long f_bsize
Definition
statvfs.h:49
statvfs::f_bavail
fsblkcnt_t f_bavail
Definition
statvfs.h:53
statvfs::f_files
fsfilcnt_t f_files
Definition
statvfs.h:54
statvfs::f_ffree
fsfilcnt_t f_ffree
Definition
statvfs.h:55
statvfs::f_favail
fsfilcnt_t f_favail
Definition
statvfs.h:56
statvfs::f_blocks
fsblkcnt_t f_blocks
Definition
statvfs.h:51
statvfs::f_bfree
fsblkcnt_t f_bfree
Definition
statvfs.h:52
statvfs::f_flag
unsigned long f_flag
Definition
statvfs.h:58
statvfs::f_frsize
unsigned long f_frsize
Definition
statvfs.h:50
src
win
statvfs.h
Generated by
1.9.8