]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/s390/bits/statfs.h
Update copyright dates with scripts/update-copyrights
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / s390 / bits / statfs.h
CommitLineData
dff8da6b 1/* Copyright (C) 1997-2024 Free Software Foundation, Inc.
4547c1a4
UD
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
4547c1a4
UD
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 12 Lesser General Public License for more details.
4547c1a4 13
41bdb6e2 14 You should have received a copy of the GNU Lesser General Public
59ba27a6 15 License along with the GNU C Library; if not, see
5a82c748 16 <https://www.gnu.org/licenses/>. */
4547c1a4 17
1c25bcac
UD
18#ifndef _SYS_STATFS_H
19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
20#endif
4547c1a4 21
3efdabe7 22#include <bits/types.h> /* for __fsid_t and __fsblkcnt_t. */
4547c1a4
UD
23
24struct statfs
25 {
5c95f7b6
HC
26 unsigned int f_type;
27 unsigned int f_bsize;
1c25bcac
UD
28#ifndef __USE_FILE_OFFSET64
29 __fsblkcnt_t f_blocks;
30 __fsblkcnt_t f_bfree;
31 __fsblkcnt_t f_bavail;
32 __fsfilcnt_t f_files;
33 __fsfilcnt_t f_ffree;
34#else
35 __fsblkcnt64_t f_blocks;
36 __fsblkcnt64_t f_bfree;
37 __fsblkcnt64_t f_bavail;
38 __fsfilcnt64_t f_files;
39 __fsfilcnt64_t f_ffree;
40#endif
4547c1a4 41 __fsid_t f_fsid;
5c95f7b6
HC
42 unsigned int f_namelen;
43 unsigned int f_frsize;
44 unsigned int f_flags;
45 unsigned int f_spare[4];
4547c1a4
UD
46 };
47
1c25bcac 48#ifdef __USE_LARGEFILE64
9c4c0024
UD
49struct statfs64
50 {
5c95f7b6
HC
51 unsigned int f_type;
52 unsigned int f_bsize;
1c25bcac
UD
53 __fsblkcnt64_t f_blocks;
54 __fsblkcnt64_t f_bfree;
55 __fsblkcnt64_t f_bavail;
56 __fsfilcnt64_t f_files;
57 __fsfilcnt64_t f_ffree;
9c4c0024 58 __fsid_t f_fsid;
5c95f7b6
HC
59 unsigned int f_namelen;
60 unsigned int f_frsize;
61 unsigned int f_flags;
62 unsigned int f_spare[4];
9c4c0024 63 };
1c25bcac 64#endif
a808d541 65
3efdabe7 66/* Tell code we have this member. */
a808d541 67#define _STATFS_F_NAMELEN
9291eb49 68#define _STATFS_F_FRSIZE
3cdaa6ad 69#define _STATFS_F_FLAGS