On Mon, Nov 8, 2021 at 1:20 AM sydnash <
sydn...@gmail.com> wrote:
>
> Where is the sigaction implementation on macos with purego?I only found the cgo implementation in runtime/sys_darwin.go.
The implementation in runtime/sys_darwin.go is actually the one that
is used when not using cgo (it is also used when using cgo). On macOS
we always call into the libSystem library to implement system calls.
This is because macOS defines that to be a stable API, and does not
supply a stable API using the SYSCALL or SVC instruction. See
https://golang.org/issue/17490.
Ian