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