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 | |
Russ Cox | e785e3a | 2014-11-11 17:08:54 -0500 | [diff] [blame] | 9 | func bsdthread_create(stk unsafe.Pointer, mm *m, gg *g, fn uintptr) int32 |
Russ Cox | 25f6b02 | 2014-08-27 11:32:17 -0400 | [diff] [blame] | 10 | func bsdthread_register() int32 |
Russ Cox | e785e3a | 2014-11-11 17:08:54 -0500 | [diff] [blame] | 11 | |
| 12 | //go:noescape |
Russ Cox | 25f6b02 | 2014-08-27 11:32:17 -0400 | [diff] [blame] | 13 | func mach_msg_trap(h unsafe.Pointer, op int32, send_size, rcv_size, rcv_name, timeout, notify uint32) int32 |
Russ Cox | e785e3a | 2014-11-11 17:08:54 -0500 | [diff] [blame] | 14 | |
Russ Cox | 25f6b02 | 2014-08-27 11:32:17 -0400 | [diff] [blame] | 15 | func mach_reply_port() uint32 |
| 16 | func mach_task_self() uint32 |
| 17 | func mach_thread_self() uint32 |
Russ Cox | e785e3a | 2014-11-11 17:08:54 -0500 | [diff] [blame] | 18 | |
| 19 | //go:noescape |
Russ Cox | 25f6b02 | 2014-08-27 11:32:17 -0400 | [diff] [blame] | 20 | func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 |
Russ Cox | e785e3a | 2014-11-11 17:08:54 -0500 | [diff] [blame] | 21 | |
| 22 | //go:noescape |
| 23 | func sigprocmask(sig uint32, new, old *uint32) |
| 24 | |
| 25 | //go:noescape |
| 26 | func sigaction(mode uint32, new, old *sigactiont) |
| 27 | |
| 28 | //go:noescape |
| 29 | func sigaltstack(new, old *stackt) |
| 30 | |
Russ Cox | 25f6b02 | 2014-08-27 11:32:17 -0400 | [diff] [blame] | 31 | func sigtramp() |
Russ Cox | e785e3a | 2014-11-11 17:08:54 -0500 | [diff] [blame] | 32 | |
| 33 | //go:noescape |
| 34 | func setitimer(mode int32, new, old *itimerval) |
| 35 | |
| 36 | func raise(int32) |
Russ Cox | 5bfed7c | 2015-01-14 11:18:24 -0500 | [diff] [blame] | 37 | func raiseproc(int32) |