blob: 8cffd2b9fdd2cf8034febdf2ca75f444bb109367 [file] [log] [blame]
Russ Cox25f6b022014-08-27 11:32:17 -04001// 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
5package runtime
6
7import "unsafe"
8
Joel Sing1d05d582014-11-15 04:47:20 +11009//go:noescape
10func lwp_create(param *lwpparams) int32
11
12//go:noescape
13func sigaltstack(new, old *sigaltstackt)
14
15//go:noescape
16func sigaction(sig int32, new, old *sigactiont)
17
18//go:noescape
19func sigprocmask(new, old *sigset)
20
21//go:noescape
22func setitimer(mode int32, new, old *itimerval)
23
24//go:noescape
Russ Cox25f6b022014-08-27 11:32:17 -040025func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
Joel Sing1d05d582014-11-15 04:47:20 +110026
27//go:noescape
Russ Cox25f6b022014-08-27 11:32:17 -040028func getrlimit(kind int32, limit unsafe.Pointer) int32
Joel Sing1d05d582014-11-15 04:47:20 +110029
Russ Cox25f6b022014-08-27 11:32:17 -040030func raise(sig int32)
Russ Cox5bfed7c2015-01-14 11:18:24 -050031func raiseproc(sig int32)
Joel Sing1d05d582014-11-15 04:47:20 +110032
33//go:noescape
34func sys_umtx_sleep(addr *uint32, val, timeout int32) int32
35
36//go:noescape
37func sys_umtx_wakeup(addr *uint32, val int32) int32
38
39func osyield()
Russ Cox3a7f6642014-08-29 16:20:48 -040040
41const stackSystem = 0