github.com/lzhfromustc/gofuzz@v0.0.0-20211116160056-151b3108bbd1/runtime/sigaction.go (about)

     1  // Copyright 2016 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // +build linux,!amd64,!arm64 freebsd,!amd64
     6  
     7  package runtime
     8  
     9  // This version is used on Linux and FreeBSD systems on which we don't
    10  // use cgo to call the C version of sigaction.
    11  
    12  //go:nosplit
    13  //go:nowritebarrierrec
    14  func sigaction(sig uint32, new, old *sigactiont) {
    15  	sysSigaction(sig, new, old)
    16  }