Source file
src/runtime/os_openbsd_syscall2.go
Documentation: runtime
1
2
3
4
5
6
7
8 package runtime
9
10 import (
11 "unsafe"
12 )
13
14
15 func sigaction(sig uint32, new, old *sigactiont)
16
17 func kqueue() int32
18
19
20 func kevent(kq int32, ch *keventt, nch int32, ev *keventt, nev int32, ts *timespec) int32
21
22 func raiseproc(sig uint32)
23
24 func getthrid() int32
25 func thrkill(tid int32, sig int)
26
27
28
29 func read(fd int32, p unsafe.Pointer, n int32) int32
30
31 func closefd(fd int32) int32
32
33 func exit(code int32)
34 func usleep(usec uint32)
35
36
37 func usleep_no_g(usec uint32) {
38 usleep(usec)
39 }
40
41
42
43
44 func write1(fd uintptr, p unsafe.Pointer, n int32) int32
45
46
47 func open(name *byte, mode, perm int32) int32
48
49
50 func madvise(addr unsafe.Pointer, n uintptr, flags int32) int32
51
52
53
54
55
56 func exitThread(wait *uint32)
57
58
59 func obsdsigprocmask(how int32, new sigset) sigset
60
61
62
63 func sigprocmask(how int32, new, old *sigset) {
64 n := sigset(0)
65 if new != nil {
66 n = *new
67 }
68 r := obsdsigprocmask(how, n)
69 if old != nil {
70 *old = r
71 }
72 }
73
74 func pipe() (r, w int32, errno int32)
75 func pipe2(flags int32) (r, w int32, errno int32)
76
77
78 func setitimer(mode int32, new, old *itimerval)
79
80
81 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
82
83
84
85
86
87
88 func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (p unsafe.Pointer, err int)
89
90
91 func munmap(addr unsafe.Pointer, n uintptr)
92
93 func nanotime1() int64
94
95
96 func sigaltstack(new, old *stackt)
97
98 func closeonexec(fd int32)
99 func setNonblock(fd int32)
100
101 func walltime() (sec int64, nsec int32)
102
View as plain text