Skip to content

Commit 05343c1

Browse files
committed
[WIP] constants, too
1 parent 57b8c8f commit 05343c1

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

src/unix/linux_like/linux/gnu/mod.rs

-31
Original file line numberDiff line numberDiff line change
@@ -1115,37 +1115,6 @@ pub const M_PERTURB: ::c_int = -6;
11151115
pub const M_ARENA_TEST: ::c_int = -7;
11161116
pub const M_ARENA_MAX: ::c_int = -8;
11171117

1118-
pub const AT_STATX_SYNC_TYPE: ::c_int = 0x6000;
1119-
pub const AT_STATX_SYNC_AS_STAT: ::c_int = 0x0000;
1120-
pub const AT_STATX_FORCE_SYNC: ::c_int = 0x2000;
1121-
pub const AT_STATX_DONT_SYNC: ::c_int = 0x4000;
1122-
pub const STATX_TYPE: ::c_uint = 0x0001;
1123-
pub const STATX_MODE: ::c_uint = 0x0002;
1124-
pub const STATX_NLINK: ::c_uint = 0x0004;
1125-
pub const STATX_UID: ::c_uint = 0x0008;
1126-
pub const STATX_GID: ::c_uint = 0x0010;
1127-
pub const STATX_ATIME: ::c_uint = 0x0020;
1128-
pub const STATX_MTIME: ::c_uint = 0x0040;
1129-
pub const STATX_CTIME: ::c_uint = 0x0080;
1130-
pub const STATX_INO: ::c_uint = 0x0100;
1131-
pub const STATX_SIZE: ::c_uint = 0x0200;
1132-
pub const STATX_BLOCKS: ::c_uint = 0x0400;
1133-
pub const STATX_BASIC_STATS: ::c_uint = 0x07ff;
1134-
pub const STATX_BTIME: ::c_uint = 0x0800;
1135-
pub const STATX_MNT_ID: ::c_uint = 0x1000;
1136-
pub const STATX_DIOALIGN: ::c_uint = 0x2000;
1137-
pub const STATX_ALL: ::c_uint = 0x0fff;
1138-
pub const STATX__RESERVED: ::c_int = 0x80000000;
1139-
pub const STATX_ATTR_COMPRESSED: ::c_int = 0x0004;
1140-
pub const STATX_ATTR_IMMUTABLE: ::c_int = 0x0010;
1141-
pub const STATX_ATTR_APPEND: ::c_int = 0x0020;
1142-
pub const STATX_ATTR_NODUMP: ::c_int = 0x0040;
1143-
pub const STATX_ATTR_ENCRYPTED: ::c_int = 0x0800;
1144-
pub const STATX_ATTR_AUTOMOUNT: ::c_int = 0x1000;
1145-
pub const STATX_ATTR_MOUNT_ROOT: ::c_int = 0x2000;
1146-
pub const STATX_ATTR_VERITY: ::c_int = 0x00100000;
1147-
pub const STATX_ATTR_DAX: ::c_int = 0x00200000;
1148-
11491118
pub const SOMAXCONN: ::c_int = 4096;
11501119

11511120
// linux/mount.h

src/unix/linux_like/linux_statx.rs

+31
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,37 @@ s! {
3333
}
3434
}
3535

36+
pub const AT_STATX_SYNC_TYPE: ::c_int = 0x6000;
37+
pub const AT_STATX_SYNC_AS_STAT: ::c_int = 0x0000;
38+
pub const AT_STATX_FORCE_SYNC: ::c_int = 0x2000;
39+
pub const AT_STATX_DONT_SYNC: ::c_int = 0x4000;
40+
pub const STATX_TYPE: ::c_uint = 0x0001;
41+
pub const STATX_MODE: ::c_uint = 0x0002;
42+
pub const STATX_NLINK: ::c_uint = 0x0004;
43+
pub const STATX_UID: ::c_uint = 0x0008;
44+
pub const STATX_GID: ::c_uint = 0x0010;
45+
pub const STATX_ATIME: ::c_uint = 0x0020;
46+
pub const STATX_MTIME: ::c_uint = 0x0040;
47+
pub const STATX_CTIME: ::c_uint = 0x0080;
48+
pub const STATX_INO: ::c_uint = 0x0100;
49+
pub const STATX_SIZE: ::c_uint = 0x0200;
50+
pub const STATX_BLOCKS: ::c_uint = 0x0400;
51+
pub const STATX_BASIC_STATS: ::c_uint = 0x07ff;
52+
pub const STATX_BTIME: ::c_uint = 0x0800;
53+
pub const STATX_ALL: ::c_uint = 0x0fff;
54+
pub const STATX_MNT_ID: ::c_uint = 0x1000;
55+
pub const STATX_DIOALIGN: ::c_uint = 0x2000;
56+
pub const STATX__RESERVED: ::c_int = 0x80000000;
57+
pub const STATX_ATTR_COMPRESSED: ::c_int = 0x0004;
58+
pub const STATX_ATTR_IMMUTABLE: ::c_int = 0x0010;
59+
pub const STATX_ATTR_APPEND: ::c_int = 0x0020;
60+
pub const STATX_ATTR_NODUMP: ::c_int = 0x0040;
61+
pub const STATX_ATTR_ENCRYPTED: ::c_int = 0x0800;
62+
pub const STATX_ATTR_AUTOMOUNT: ::c_int = 0x1000;
63+
pub const STATX_ATTR_MOUNT_ROOT: ::c_int = 0x2000;
64+
pub const STATX_ATTR_VERITY: ::c_int = 0x100000;
65+
pub const STATX_ATTR_DAX: ::c_int = 0x200000;
66+
3667
extern "C" {
3768
pub fn statx(
3869
dirfd: ::c_int,

0 commit comments

Comments
 (0)