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