Files
sakurac/runtime/linux_x86_64.sakura
T
2026-10-28 22:13:49 -05:00

21 lines
649 B
Plaintext

#! @file linux_x86_64.sakura
#! @author John Christman (sorakatadzuma@gmail.com)
#! @copyright Malunal Studios, LLC.
#! @license MIT
#!
#! Contains the numbers of the system calls the runtime makes on Linux, on
#! x86-64.
#!
#! What the runtime needs to know of Linux on x86-64: the numbers of the system
#! calls it makes. Another platform declares these names in a section of its
#! own.
module runtime when backend == native && os == linux && arch == x86_64;
val call_write: i64 = 1;
val call_mmap: i64 = 9;
val call_mprotect: i64 = 10;
val call_munmap: i64 = 11;
val call_mremap: i64 = 25;
val call_exit_group: i64 = 231;