blob: 71f36ebeff4c4b3af0ad25792ded328a937d1ca9 [file] [log] [blame]
Russ Coxe785e3a2014-11-11 17:08:54 -05001// 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
5package runtime
6
7const (
8 _SS_DISABLE = 2
9 _NSIG = 65
10 _SI_USER = 0
Ian Lance Taylor872b1682015-07-21 22:34:48 -070011 _SIG_BLOCK = 0
12 _SIG_UNBLOCK = 1
Russ Coxe785e3a2014-11-11 17:08:54 -050013 _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.
20type sigset [2]uint32
21
22type rlimit struct {
23 rlim_cur uintptr
24 rlim_max uintptr
25}