]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/missing_stat.h
Merge pull request #11827 from keszybz/pkgconfig-variables
[thirdparty/systemd.git] / src / basic / missing_stat.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <linux/types.h>
5 #include <sys/stat.h>
6
7 #if WANT_LINUX_STAT_H
8 #include <linux/stat.h>
9 #endif
10
11 /* a528d35e8bfcc521d7cb70aaf03e1bd296c8493f (4.11) */
12 #if !HAVE_STRUCT_STATX
13 struct statx_timestamp {
14 __s64 tv_sec;
15 __u32 tv_nsec;
16 __s32 __reserved;
17 };
18 struct statx {
19 __u32 stx_mask;
20 __u32 stx_blksize;
21 __u64 stx_attributes;
22 __u32 stx_nlink;
23 __u32 stx_uid;
24 __u32 stx_gid;
25 __u16 stx_mode;
26 __u16 __spare0[1];
27 __u64 stx_ino;
28 __u64 stx_size;
29 __u64 stx_blocks;
30 __u64 stx_attributes_mask;
31 struct statx_timestamp stx_atime;
32 struct statx_timestamp stx_btime;
33 struct statx_timestamp stx_ctime;
34 struct statx_timestamp stx_mtime;
35 __u32 stx_rdev_major;
36 __u32 stx_rdev_minor;
37 __u32 stx_dev_major;
38 __u32 stx_dev_minor;
39 __u64 __spare2[14];
40 };
41 #endif
42
43 /* a528d35e8bfcc521d7cb70aaf03e1bd296c8493f (4.11) */
44 #ifndef STATX_BTIME
45 #define STATX_BTIME 0x00000800U
46 #endif
47
48 /* a528d35e8bfcc521d7cb70aaf03e1bd296c8493f (4.11) */
49 #ifndef AT_STATX_DONT_SYNC
50 #define AT_STATX_DONT_SYNC 0x4000
51 #endif