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 // +build !solaris | 5 // +build !solaris |
| 6 // +build !windows |
6 | 7 |
7 package runtime | 8 package runtime |
8 | 9 |
9 import "unsafe" | 10 import "unsafe" |
10 | 11 |
11 func read(fd int32, p unsafe.Pointer, n int32) int32 | 12 func read(fd int32, p unsafe.Pointer, n int32) int32 |
12 func close(fd int32) int32 | 13 func close(fd int32) int32 |
13 | 14 |
14 func exit(code int32) | 15 func exit(code int32) |
15 func nanotime() int64 | 16 func nanotime() int64 |
16 func usleep(usec uint32) | 17 func usleep(usec uint32) |
17 | 18 |
18 func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) uns
afe.Pointer | 19 func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) uns
afe.Pointer |
19 func munmap(addr unsafe.Pointer, n uintptr) | 20 func munmap(addr unsafe.Pointer, n uintptr) |
20 | 21 |
21 //go:noescape | 22 //go:noescape |
22 func write(fd uintptr, p unsafe.Pointer, n int32) int32 | 23 func write(fd uintptr, p unsafe.Pointer, n int32) int32 |
23 | 24 |
24 //go:noescape | 25 //go:noescape |
25 func open(name *byte, mode, perm int32) int32 | 26 func open(name *byte, mode, perm int32) int32 |
26 | 27 |
27 func madvise(addr unsafe.Pointer, n uintptr, flags int32) | 28 func madvise(addr unsafe.Pointer, n uintptr, flags int32) |
LEFT | RIGHT |