LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2011 The Go Authors. All rights reserved. | 1 // Copyright 2011 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #define SS_DISABLE 4 | |
6 | 5 |
7 typedef byte* kevent_udata; | 6 typedef byte* kevent_udata; |
8 | 7 |
9 int32 runtime·lwp_create(Lwpparams*); | 8 int32 runtime·lwp_create(Lwpparams*); |
10 void runtime·sigpanic(void); | 9 void runtime·sigpanic(void); |
11 void» runtime·sigaltstack(Sigaltstack*, Sigaltstack*); | 10 void» runtime·sigaltstack(SigaltstackT*, SigaltstackT*); |
12 struct sigaction; | 11 struct sigaction; |
13 void runtime·sigaction(int32, struct sigaction*, struct sigaction*); | 12 void runtime·sigaction(int32, struct sigaction*, struct sigaction*); |
14 void runtime·sigprocmask(Sigset *, Sigset *); | 13 void runtime·sigprocmask(Sigset *, Sigset *); |
15 void runtime·unblocksignals(void); | 14 void runtime·unblocksignals(void); |
16 void runtime·setitimer(int32, Itimerval*, Itimerval*); | 15 void runtime·setitimer(int32, Itimerval*, Itimerval*); |
17 int32 runtime·sysctl(uint32*, uint32, byte*, uintptr*, byte*, uintptr); | 16 int32 runtime·sysctl(uint32*, uint32, byte*, uintptr*, byte*, uintptr); |
18 | 17 |
| 18 enum { |
| 19 NSIG = 33, |
| 20 SI_USER = 0x10001, |
| 21 SS_DISABLE = 4, |
| 22 RLIMIT_AS = 10, |
| 23 }; |
19 | 24 |
20 #define NSIG 33 | |
21 #define SI_USER 0x10001 | |
22 | |
23 #define RLIMIT_AS 10 | |
24 typedef struct Rlimit Rlimit; | 25 typedef struct Rlimit Rlimit; |
25 struct Rlimit { | 26 struct Rlimit { |
26 int64 rlim_cur; | 27 int64 rlim_cur; |
27 int64 rlim_max; | 28 int64 rlim_max; |
28 }; | 29 }; |
29 int32 runtime·getrlimit(int32, Rlimit*); | 30 int32 runtime·getrlimit(int32, Rlimit*); |
LEFT | RIGHT |