sigaction implementation on darwin

101 views
Skip to first unread message

sydnash

unread,
Nov 8, 2021, 4:20:23 AM11/8/21
to golang-nuts
Where is the sigaction  implementation on macos with purego?I only found the cgo implementation in runtime/sys_darwin.go.   

Ian Lance Taylor

unread,
Nov 8, 2021, 5:50:28 PM11/8/21
to sydnash, golang-nuts
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
Reply all
Reply to author
Forward
0 new messages