by andy_threos_io · 5y ago · 0 comments
bl _Open ; whatever syscall name you have
and the linker or the OS dynamic linker will get you the proper system call code, with the numbers.BTW even in our small threos.io os we use dynamic linked system calls.
Golang used to run into this, they switched to using libSystem in 1.11: https://golang.org/doc/go1.11#runtime
/usr/lib/system/libsystem_kernel.dylib
ex. https://stackoverflow.com/questions/37656016/osx-setgid-syst...