1 // Copyright 2022 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 //go:build unix && !linux 6 7 package runtime 8 9 // sigFromUser reports whether the signal was sent because of a call 10 // to kill. 11 // 12 //go:nosplit 13 func (c *sigctxt) sigFromUser() bool { 14 return c.sigcode() == _SI_USER 15 } 16 17 // sigFromSeccomp reports whether the signal was sent from seccomp. 18 // 19 //go:nosplit 20 func (c *sigctxt) sigFromSeccomp() bool { 21 return false 22 } 23