LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2014 The Go Authors. All rights reserved. | 1 // Copyright 2014 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 package runtime | 5 package runtime |
6 | 6 |
7 import "unsafe" | 7 import "unsafe" |
8 | 8 |
9 func pread(fd int32, buf unsafe.Pointer, nbytes int32, offset int64) int32 | 9 func pread(fd int32, buf unsafe.Pointer, nbytes int32, offset int64) int32 |
10 func pwrite(fd int32, buf unsafe.Pointer, nbytes int32, offset int64) int32 | 10 func pwrite(fd int32, buf unsafe.Pointer, nbytes int32, offset int64) int32 |
11 func seek(fd int32, offset int64, whence int32) int64 | 11 func seek(fd int32, offset int64, whence int32) int64 |
12 func exits(msg *byte) | 12 func exits(msg *byte) |
13 func brk_(addr unsafe.Pointer) uintptr | 13 func brk_(addr unsafe.Pointer) uintptr |
14 func sleep(ms int32) int32 | 14 func sleep(ms int32) int32 |
15 func rfork(flags int32, stk, mm, gg, fn unsafe.Pointer) int32 | 15 func rfork(flags int32, stk, mm, gg, fn unsafe.Pointer) int32 |
16 func plan9_semacquire(addr *uint32, block int32) int32 | 16 func plan9_semacquire(addr *uint32, block int32) int32 |
17 func plan9_tsemacquire(addr *uint32, ms int32) int32 | 17 func plan9_tsemacquire(addr *uint32, ms int32) int32 |
18 func plan9_semrelease(addr *uint32, count int32) int32 | 18 func plan9_semrelease(addr *uint32, count int32) int32 |
19 func notify(fn unsafe.Pointer) int32 | 19 func notify(fn unsafe.Pointer) int32 |
20 func noted(mode int32) int32 | 20 func noted(mode int32) int32 |
21 func nsec(*int64) int64 | 21 func nsec(*int64) int64 |
22 func sigtramp(ureg, msg unsafe.Pointer) | 22 func sigtramp(ureg, msg unsafe.Pointer) |
23 func setfpmasks() | 23 func setfpmasks() |
24 func errstr() string | 24 func errstr() string |
| 25 |
| 26 // The size of the note handler frame varies among architectures, |
| 27 // but 512 bytes should be enough for every implementation. |
| 28 const stackSystem = 512 |
LEFT | RIGHT |