github.com/c0deoo1/golang1.5@v0.0.0-20220525150107-c87c805d4593/src/runtime/os2_linux.go (about)

     1  // Copyright 2009 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  package runtime
     6  
     7  const (
     8  	_SS_DISABLE  = 2
     9  	_NSIG        = 65
    10  	_SI_USER     = 0
    11  	_SIG_BLOCK   = 0
    12  	_SIG_UNBLOCK = 1
    13  	_SIG_SETMASK = 2
    14  	_RLIMIT_AS   = 9
    15  )
    16  
    17  // It's hard to tease out exactly how big a Sigset is, but
    18  // rt_sigprocmask crashes if we get it wrong, so if binaries
    19  // are running, this is right.
    20  type sigset [2]uint32
    21  
    22  type rlimit struct {
    23  	rlim_cur uintptr
    24  	rlim_max uintptr
    25  }