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
44extern "C" {
45#endif
46
47typedef unsigned long long fsblkcnt_t;
48typedef unsigned long long fsfilcnt_t;
49
50struct 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
65int 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
unsigned long long fsfilcnt_t
Definition statvfs.h:48
unsigned long long fsblkcnt_t
Definition statvfs.h:47
unsigned long f_namemax
Definition statvfs.h:62
unsigned long f_fsid
Definition statvfs.h:60
unsigned long f_bsize
Definition statvfs.h:52
fsblkcnt_t f_bavail
Definition statvfs.h:56
fsfilcnt_t f_files
Definition statvfs.h:57
fsfilcnt_t f_ffree
Definition statvfs.h:58
fsfilcnt_t f_favail
Definition statvfs.h:59
fsblkcnt_t f_blocks
Definition statvfs.h:54
fsblkcnt_t f_bfree
Definition statvfs.h:55
unsigned long f_flag
Definition statvfs.h:61
unsigned long f_frsize
Definition statvfs.h:53