Russ Cox | 25f6b02 | 2014-08-27 11:32:17 -0400 | [diff] [blame] | 1 | // Copyright 2014 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 | import "unsafe" |
| 8 | |
Joel Sing | 1d05d58 | 2014-11-15 04:47:20 +1100 | [diff] [blame] | 9 | //go:noescape |
| 10 | func lwp_create(param *lwpparams) int32 |
| 11 | |
| 12 | //go:noescape |
| 13 | func sigaltstack(new, old *sigaltstackt) |
| 14 | |
| 15 | //go:noescape |
| 16 | func sigaction(sig int32, new, old *sigactiont) |
| 17 | |
| 18 | //go:noescape |
| 19 | func sigprocmask(new, old *sigset) |
| 20 | |
| 21 | //go:noescape |
| 22 | func setitimer(mode int32, new, old *itimerval) |
| 23 | |
| 24 | //go:noescape |
Russ Cox | 25f6b02 | 2014-08-27 11:32:17 -0400 | [diff] [blame] | 25 | func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 |
Joel Sing | 1d05d58 | 2014-11-15 04:47:20 +1100 | [diff] [blame] | 26 | |
| 27 | //go:noescape |
Russ Cox | 25f6b02 | 2014-08-27 11:32:17 -0400 | [diff] [blame] | 28 | func getrlimit(kind int32, limit unsafe.Pointer) int32 |
Joel Sing | 1d05d58 | 2014-11-15 04:47:20 +1100 | [diff] [blame] | 29 | |
Russ Cox | 25f6b02 | 2014-08-27 11:32:17 -0400 | [diff] [blame] | 30 | func raise(sig int32) |
Russ Cox | 5bfed7c | 2015-01-14 11:18:24 -0500 | [diff] [blame] | 31 | func raiseproc(sig int32) |
Joel Sing | 1d05d58 | 2014-11-15 04:47:20 +1100 | [diff] [blame] | 32 | |
| 33 | //go:noescape |
| 34 | func sys_umtx_sleep(addr *uint32, val, timeout int32) int32 |
| 35 | |
| 36 | //go:noescape |
| 37 | func sys_umtx_wakeup(addr *uint32, val int32) int32 |
| 38 | |
| 39 | func osyield() |
Russ Cox | 3a7f664 | 2014-08-29 16:20:48 -0400 | [diff] [blame] | 40 | |
| 41 | const stackSystem = 0 |