Improved mac support

This commit is contained in:
2024-08-12 12:16:01 +02:00
parent 58f010b81a
commit cf52919edc
25 changed files with 119 additions and 34 deletions

10
src/os/mac/Syscall.go Normal file
View File

@ -0,0 +1,10 @@
package mac
// Syscall numbers are divided into classes, here we need the BSD inherited syscalls.
const SyscallClassUnix = 0x2000000
// https://github.com/apple-oss-distributions/xnu/blob/main/bsd/kern/syscalls.master
const (
Exit = 1 | SyscallClassUnix
Write = 4 | SyscallClassUnix
)