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-x86.om

26 lines · 766 bytes Raw Blame History
1note Linux x86_64 open flags (asm-generic/fcntl.h): O_DIRECTORY 0200000 = 65536, O_NOFOLLOW 0400000 =
2note 131072, O_CLOEXEC 02000000 = 524288, O_WRONLY 1, O_CREAT 64, O_EXCL 128, O_TRUNC 512. The stat
3note words write Omega's 128-byte asm-generic (ARM64) structure on every target (OMEGESE section 10;
4note omc.om: "Native x86 struct stat is private"), so mode is at 16 and size at 48 here as on AArch64;
5note measured 2026-11-11 with omc 3ad9f10f and c52e986e under qemu-x86_64 (tools/bring/PLATFORMS.md).
6fn pl_oflag how ulong to int
7if eq how 1
8ret 720896
9end
10if eq how 2
11ret 655937
12end
13if eq how 3
14ret 655553
15end
16if eq how 4
17ret 524288
18end
19ret 655360
20end
21fn pl_mode b view uchar * to ulong
22ret rd32 b 16
23end
24fn pl_size b view uchar * to ulong
25ret rd64 b 48
26end