authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2019-07-07 14:11:43+10:00
committergravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2019-07-07 14:11:43+10:00
log7610d39413d45b5d72c532b2128a81d080fe342f
treeebe58293dad3988fece2155da7f6491f389704ad
parentb118806c69e44029a7af9c9b8bdfa9cdcd280260
signaturelock-open Commit is signed but in an unrecognized format.

std: Linux AT_ constants are the same across architectures


3 files changed, 30 insertions(+), 14 deletions(-)

std/os/bits/linux.zig+30
...@@ -22,6 +22,36 @@ pub const STDIN_FILENO = 0;...@@ -22,6 +22,36 @@ pub const STDIN_FILENO = 0;
22pub const STDOUT_FILENO = 1;22pub const STDOUT_FILENO = 1;
23pub const STDERR_FILENO = 2;23pub const STDERR_FILENO = 2;
2424
25/// Special value used to indicate openat should use the current working directory
26pub const AT_FDCWD = 100;
27
28/// Do not follow symbolic links
29pub const AT_SYMLINK_NOFOLLOW = 0x100;
30
31/// Remove directory instead of unlinking file
32pub const AT_REMOVEDIR = 0x200;
33
34/// Follow symbolic links.
35pub const AT_SYMLINK_FOLLOW = 0x400;
36
37/// Suppress terminal automount traversal
38pub const AT_NO_AUTOMOUNT = 0x800;
39
40/// Allow empty relative pathname
41pub const AT_EMPTY_PATH = 0x1000;
42
43/// Type of synchronisation required from statx()
44pub const AT_STATX_SYNC_TYPE = 0x6000;
45
46/// - Do whatever stat() does
47pub const AT_STATX_SYNC_AS_STAT = 0x0000;
48
49/// - Force the attributes to be sync'd with the server
50pub const AT_STATX_FORCE_SYNC = 0x2000;
51
52/// - Don't sync attributes with the server
53pub const AT_STATX_DONT_SYNC = 0x4000;
54
25pub const FUTEX_WAIT = 0;55pub const FUTEX_WAIT = 0;
26pub const FUTEX_WAKE = 1;56pub const FUTEX_WAKE = 1;
27pub const FUTEX_FD = 2;57pub const FUTEX_FD = 2;
std/os/bits/linux/arm64.zig-7
...@@ -331,13 +331,6 @@ pub const F_GETOWN_EX = 16;...@@ -331,13 +331,6 @@ pub const F_GETOWN_EX = 16;
331331
332pub const F_GETOWNER_UIDS = 17;332pub const F_GETOWNER_UIDS = 17;
333333
334pub const AT_FDCWD = -100;
335pub const AT_SYMLINK_NOFOLLOW = 0x100;
336pub const AT_REMOVEDIR = 0x200;
337pub const AT_SYMLINK_FOLLOW = 0x400;
338pub const AT_NO_AUTOMOUNT = 0x800;
339pub const AT_EMPTY_PATH = 0x1000;
340
341pub const VDSO_USEFUL = true;334pub const VDSO_USEFUL = true;
342pub const VDSO_CGT_SYM = "__kernel_clock_gettime";335pub const VDSO_CGT_SYM = "__kernel_clock_gettime";
343pub const VDSO_CGT_VER = "LINUX_2.6.39";336pub const VDSO_CGT_VER = "LINUX_2.6.39";
std/os/bits/linux/x86_64.zig-7
...@@ -394,13 +394,6 @@ pub const F_GETOWN_EX = 16;...@@ -394,13 +394,6 @@ pub const F_GETOWN_EX = 16;
394394
395pub const F_GETOWNER_UIDS = 17;395pub const F_GETOWNER_UIDS = 17;
396396
397pub const AT_FDCWD = -100;
398pub const AT_SYMLINK_NOFOLLOW = 0x100;
399pub const AT_REMOVEDIR = 0x200;
400pub const AT_SYMLINK_FOLLOW = 0x400;
401pub const AT_NO_AUTOMOUNT = 0x800;
402pub const AT_EMPTY_PATH = 0x1000;
403
404pub const VDSO_USEFUL = true;397pub const VDSO_USEFUL = true;
405pub const VDSO_CGT_SYM = "__vdso_clock_gettime";398pub const VDSO_CGT_SYM = "__vdso_clock_gettime";
406pub const VDSO_CGT_VER = "LINUX_2.6";399pub const VDSO_CGT_VER = "LINUX_2.6";