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