rsc.io/go@v0.0.0-20150416155037-e040fd465409/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_SETMASK = 2
    12  	_RLIMIT_AS   = 9
    13  )
    14  
    15  // It's hard to tease out exactly how big a Sigset is, but
    16  // rt_sigprocmask crashes if we get it wrong, so if binaries
    17  // are running, this is right.
    18  type sigset [2]uint32
    19  
    20  type rlimit struct {
    21  	rlim_cur uintptr
    22  	rlim_max uintptr
    23  }