On Mon, Nov 8, 2021 at 1:20 AM sydnash <sydna...@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 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcUZRSJQYhkXYckYBBm2%3DLXTvA_y%3DFYhXLk_RLhVupb3Dg%40mail.gmail.com.