mirror of
https://github.com/ii64/gouring.git
synced 2024-11-22 06:57:32 +01:00
20 lines
315 B
Go
20 lines
315 B
Go
|
package gouring
|
||
|
|
||
|
import (
|
||
|
"unsafe"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
SizeofUint64 = unsafe.Sizeof(uint64(0))
|
||
|
SIGSET_NWORDS = (1024 / (8 * SizeofUint64))
|
||
|
SIGTMIN = 32
|
||
|
SIGTMAX = SIGTMIN
|
||
|
NSIG = (SIGTMAX + 1)
|
||
|
)
|
||
|
|
||
|
type Sigset_t struct {
|
||
|
Val [SIGSET_NWORDS]uint64
|
||
|
}
|
||
|
|
||
|
// https://baike.baidu.com/item/sigset_t/4481187
|