github.com/fjballest/golang@v0.0.0-20151209143359-e4c5fe594ca8/src/runtime/os2_linux_generic.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  // +build !mips64
     6  // +build !mips64le
     7  // +build linux
     8  
     9  package runtime
    10  
    11  const (
    12  	_SS_DISABLE  = 2
    13  	_NSIG        = 65
    14  	_SI_USER     = 0
    15  	_SIG_BLOCK   = 0
    16  	_SIG_UNBLOCK = 1
    17  	_SIG_SETMASK = 2
    18  	_RLIMIT_AS   = 9
    19  )
    20  
    21  // It's hard to tease out exactly how big a Sigset is, but
    22  // rt_sigprocmask crashes if we get it wrong, so if binaries
    23  // are running, this is right.
    24  type sigset [2]uint32
    25  
    26  type rlimit struct {
    27  	rlim_cur uintptr
    28  	rlim_max uintptr
    29  }