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