interplane.Get Omega
Read in your language

interplane-forge

INTERPLANE Forge

Brought by drakestapleton

branch main Branches Tags History

interplane-forge / tools / bring / src / arch-a64.om

25 lines · 639 bytes Raw Blame History
1note Linux aarch64 ABI values (arch/arm64/include/uapi/asm/fcntl.h; struct stat of asm-generic/stat.h):
2note O_DIRECTORY 040000 = 16384, O_NOFOLLOW 0100000 = 32768, O_CLOEXEC 02000000 = 524288,
3note O_WRONLY 1, O_CREAT 64, O_EXCL 128, O_TRUNC 512. st_mode u32 at 16, st_size at 48.
4note how 0 read (no final symlink), 1 directory, 2 temp write/truncate, 3 create exclusive, 4 read
5fn pl_oflag how ulong to int
6if eq how 1
7ret 573440
8end
9if eq how 2
10ret 557633
11end
12if eq how 3
13ret 557249
14end
15if eq how 4
16ret 524288
17end
18ret 557056
19end
20fn pl_mode b view uchar * to ulong
21ret rd32 b 16
22end
23fn pl_size b view uchar * to ulong
24ret rd64 b 48
25end