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
#ifndef DT_WIN_STATVFS_H
41
#define DT_WIN_STATVFS_H
42
43
#ifdef __cplusplus
44
extern
"C"
{
45
#endif
46
47
typedef
unsigned
long
long
fsblkcnt_t
;
48
typedef
unsigned
long
long
fsfilcnt_t
;
49
50
struct
statvfs
51
{
52
unsigned
long
f_bsize
;
/* file system block size */
53
unsigned
long
f_frsize
;
/* fragment size */
54
fsblkcnt_t
f_blocks
;
/* size of fs in f_frsize units */
55
fsblkcnt_t
f_bfree
;
/* # free blocks */
56
fsblkcnt_t
f_bavail
;
/* # free blocks for unprivileged users */
57
fsfilcnt_t
f_files
;
/* # inodes */
58
fsfilcnt_t
f_ffree
;
/* # free inodes */
59
fsfilcnt_t
f_favail
;
/* # free inodes for unprivileged users */
60
unsigned
long
f_fsid
;
/* file system ID */
61
unsigned
long
f_flag
;
/* mount flags */
62
unsigned
long
f_namemax
;
/* maximum filename length */
63
};
64
65
int
statvfs
(
const
char
*path,
struct
statvfs
*buf);
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
// DT_WIN_STATVFS_H
72
73
// clang-format off
74
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
75
// vim: shiftwidth=2 expandtab tabstop=2 cindent
76
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
77
// clang-format on
78
fsfilcnt_t
unsigned long long fsfilcnt_t
Definition
statvfs.h:48
fsblkcnt_t
unsigned long long fsblkcnt_t
Definition
statvfs.h:47
statvfs
Definition
statvfs.h:51
statvfs::f_namemax
unsigned long f_namemax
Definition
statvfs.h:62
statvfs::f_fsid
unsigned long f_fsid
Definition
statvfs.h:60
statvfs::f_bsize
unsigned long f_bsize
Definition
statvfs.h:52
statvfs::f_bavail
fsblkcnt_t f_bavail
Definition
statvfs.h:56
statvfs::f_files
fsfilcnt_t f_files
Definition
statvfs.h:57
statvfs::f_ffree
fsfilcnt_t f_ffree
Definition
statvfs.h:58
statvfs::f_favail
fsfilcnt_t f_favail
Definition
statvfs.h:59
statvfs::f_blocks
fsblkcnt_t f_blocks
Definition
statvfs.h:54
statvfs::f_bfree
fsblkcnt_t f_bfree
Definition
statvfs.h:55
statvfs::f_flag
unsigned long f_flag
Definition
statvfs.h:61
statvfs::f_frsize
unsigned long f_frsize
Definition
statvfs.h:53
src
win
statvfs.h
Generated by
1.9.8