Browse Source

add untracked x/sys/unix files

These should have been added in 66995cdfdf.
Forgetting this seems to be an ongoing problem.
tags/v2.4.0-rc1
Shivaram Lingamneni 3 years ago
parent
commit
676045422b

+ 9
- 0
vendor/golang.org/x/sys/cpu/cpu_other_arm.go View File

@@ -0,0 +1,9 @@
1
+// Copyright 2020 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
+
5
+// +build !linux,arm
6
+
7
+package cpu
8
+
9
+func archInit() {}

+ 16
- 0
vendor/golang.org/x/sys/cpu/cpu_ppc64x.go View File

@@ -0,0 +1,16 @@
1
+// Copyright 2020 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
+
5
+// +build ppc64 ppc64le
6
+
7
+package cpu
8
+
9
+const cacheLineSize = 128
10
+
11
+func initOptions() {
12
+	options = []option{
13
+		{Name: "darn", Feature: &PPC64.HasDARN},
14
+		{Name: "scv", Feature: &PPC64.HasSCV},
15
+	}
16
+}

+ 30
- 0
vendor/golang.org/x/sys/cpu/cpu_s390x.go View File

@@ -0,0 +1,30 @@
1
+// Copyright 2020 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
+
5
+package cpu
6
+
7
+const cacheLineSize = 256
8
+
9
+func initOptions() {
10
+	options = []option{
11
+		{Name: "zarch", Feature: &S390X.HasZARCH},
12
+		{Name: "stfle", Feature: &S390X.HasSTFLE},
13
+		{Name: "ldisp", Feature: &S390X.HasLDISP},
14
+		{Name: "eimm", Feature: &S390X.HasEIMM},
15
+		{Name: "dfp", Feature: &S390X.HasDFP},
16
+		{Name: "etf3eh", Feature: &S390X.HasETF3EH},
17
+		{Name: "msa", Feature: &S390X.HasMSA},
18
+		{Name: "aes", Feature: &S390X.HasAES},
19
+		{Name: "aescbc", Feature: &S390X.HasAESCBC},
20
+		{Name: "aesctr", Feature: &S390X.HasAESCTR},
21
+		{Name: "aesgcm", Feature: &S390X.HasAESGCM},
22
+		{Name: "ghash", Feature: &S390X.HasGHASH},
23
+		{Name: "sha1", Feature: &S390X.HasSHA1},
24
+		{Name: "sha256", Feature: &S390X.HasSHA256},
25
+		{Name: "sha3", Feature: &S390X.HasSHA3},
26
+		{Name: "sha512", Feature: &S390X.HasSHA512},
27
+		{Name: "vx", Feature: &S390X.HasVX},
28
+		{Name: "vxe", Feature: &S390X.HasVXE},
29
+	}
30
+}

+ 29
- 0
vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s View File

@@ -0,0 +1,29 @@
1
+// Copyright 2019 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
+
5
+// +build !gccgo
6
+
7
+#include "textflag.h"
8
+
9
+//
10
+// System call support for mips64, OpenBSD
11
+//
12
+
13
+// Just jump to package syscall's implementation for all these functions.
14
+// The runtime may know about them.
15
+
16
+TEXT	·Syscall(SB),NOSPLIT,$0-56
17
+	JMP	syscall·Syscall(SB)
18
+
19
+TEXT	·Syscall6(SB),NOSPLIT,$0-80
20
+	JMP	syscall·Syscall6(SB)
21
+
22
+TEXT	·Syscall9(SB),NOSPLIT,$0-104
23
+	JMP	syscall·Syscall9(SB)
24
+
25
+TEXT	·RawSyscall(SB),NOSPLIT,$0-56
26
+	JMP	syscall·RawSyscall(SB)
27
+
28
+TEXT	·RawSyscall6(SB),NOSPLIT,$0-80
29
+	JMP	syscall·RawSyscall6(SB)

+ 13
- 0
vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go View File

@@ -0,0 +1,13 @@
1
+// Copyright 2009 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
+
5
+// +build arm,!gccgo,linux
6
+
7
+package unix
8
+
9
+import "syscall"
10
+
11
+// Underlying system call writes to newoffset via pointer.
12
+// Implemented in assembly to avoid allocation.
13
+func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)

+ 35
- 0
vendor/golang.org/x/sys/unix/syscall_openbsd_mips64.go View File

@@ -0,0 +1,35 @@
1
+// Copyright 2019 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
+
5
+package unix
6
+
7
+func setTimespec(sec, nsec int64) Timespec {
8
+	return Timespec{Sec: sec, Nsec: nsec}
9
+}
10
+
11
+func setTimeval(sec, usec int64) Timeval {
12
+	return Timeval{Sec: sec, Usec: usec}
13
+}
14
+
15
+func SetKevent(k *Kevent_t, fd, mode, flags int) {
16
+	k.Ident = uint64(fd)
17
+	k.Filter = int16(mode)
18
+	k.Flags = uint16(flags)
19
+}
20
+
21
+func (iov *Iovec) SetLen(length int) {
22
+	iov.Len = uint64(length)
23
+}
24
+
25
+func (msghdr *Msghdr) SetControllen(length int) {
26
+	msghdr.Controllen = uint32(length)
27
+}
28
+
29
+func (cmsg *Cmsghdr) SetLen(length int) {
30
+	cmsg.Len = uint32(length)
31
+}
32
+
33
+// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
34
+// of OpenBSD the syscall is called sysctl instead of __sysctl.
35
+const SYS___SYSCTL = SYS_SYSCTL

+ 1862
- 0
vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go
File diff suppressed because it is too large
View File


+ 1692
- 0
vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go
File diff suppressed because it is too large
View File


+ 279
- 0
vendor/golang.org/x/sys/unix/zsysctl_openbsd_mips64.go View File

@@ -0,0 +1,279 @@
1
+// go run mksysctl_openbsd.go
2
+// Code generated by the command above; DO NOT EDIT.
3
+
4
+// +build mips64,openbsd
5
+
6
+package unix
7
+
8
+type mibentry struct {
9
+	ctlname string
10
+	ctloid  []_C_int
11
+}
12
+
13
+var sysctlMib = []mibentry{
14
+	{"ddb.console", []_C_int{9, 6}},
15
+	{"ddb.log", []_C_int{9, 7}},
16
+	{"ddb.max_line", []_C_int{9, 3}},
17
+	{"ddb.max_width", []_C_int{9, 2}},
18
+	{"ddb.panic", []_C_int{9, 5}},
19
+	{"ddb.profile", []_C_int{9, 9}},
20
+	{"ddb.radix", []_C_int{9, 1}},
21
+	{"ddb.tab_stop_width", []_C_int{9, 4}},
22
+	{"ddb.trigger", []_C_int{9, 8}},
23
+	{"fs.posix.setuid", []_C_int{3, 1, 1}},
24
+	{"hw.allowpowerdown", []_C_int{6, 22}},
25
+	{"hw.byteorder", []_C_int{6, 4}},
26
+	{"hw.cpuspeed", []_C_int{6, 12}},
27
+	{"hw.diskcount", []_C_int{6, 10}},
28
+	{"hw.disknames", []_C_int{6, 8}},
29
+	{"hw.diskstats", []_C_int{6, 9}},
30
+	{"hw.machine", []_C_int{6, 1}},
31
+	{"hw.model", []_C_int{6, 2}},
32
+	{"hw.ncpu", []_C_int{6, 3}},
33
+	{"hw.ncpufound", []_C_int{6, 21}},
34
+	{"hw.ncpuonline", []_C_int{6, 25}},
35
+	{"hw.pagesize", []_C_int{6, 7}},
36
+	{"hw.perfpolicy", []_C_int{6, 23}},
37
+	{"hw.physmem", []_C_int{6, 19}},
38
+	{"hw.product", []_C_int{6, 15}},
39
+	{"hw.serialno", []_C_int{6, 17}},
40
+	{"hw.setperf", []_C_int{6, 13}},
41
+	{"hw.smt", []_C_int{6, 24}},
42
+	{"hw.usermem", []_C_int{6, 20}},
43
+	{"hw.uuid", []_C_int{6, 18}},
44
+	{"hw.vendor", []_C_int{6, 14}},
45
+	{"hw.version", []_C_int{6, 16}},
46
+	{"kern.allowdt", []_C_int{1, 65}},
47
+	{"kern.allowkmem", []_C_int{1, 52}},
48
+	{"kern.argmax", []_C_int{1, 8}},
49
+	{"kern.audio", []_C_int{1, 84}},
50
+	{"kern.boottime", []_C_int{1, 21}},
51
+	{"kern.bufcachepercent", []_C_int{1, 72}},
52
+	{"kern.ccpu", []_C_int{1, 45}},
53
+	{"kern.clockrate", []_C_int{1, 12}},
54
+	{"kern.consbuf", []_C_int{1, 83}},
55
+	{"kern.consbufsize", []_C_int{1, 82}},
56
+	{"kern.consdev", []_C_int{1, 75}},
57
+	{"kern.cp_time", []_C_int{1, 40}},
58
+	{"kern.cp_time2", []_C_int{1, 71}},
59
+	{"kern.cpustats", []_C_int{1, 85}},
60
+	{"kern.domainname", []_C_int{1, 22}},
61
+	{"kern.file", []_C_int{1, 73}},
62
+	{"kern.forkstat", []_C_int{1, 42}},
63
+	{"kern.fscale", []_C_int{1, 46}},
64
+	{"kern.fsync", []_C_int{1, 33}},
65
+	{"kern.global_ptrace", []_C_int{1, 81}},
66
+	{"kern.hostid", []_C_int{1, 11}},
67
+	{"kern.hostname", []_C_int{1, 10}},
68
+	{"kern.intrcnt.nintrcnt", []_C_int{1, 63, 1}},
69
+	{"kern.job_control", []_C_int{1, 19}},
70
+	{"kern.malloc.buckets", []_C_int{1, 39, 1}},
71
+	{"kern.malloc.kmemnames", []_C_int{1, 39, 3}},
72
+	{"kern.maxclusters", []_C_int{1, 67}},
73
+	{"kern.maxfiles", []_C_int{1, 7}},
74
+	{"kern.maxlocksperuid", []_C_int{1, 70}},
75
+	{"kern.maxpartitions", []_C_int{1, 23}},
76
+	{"kern.maxproc", []_C_int{1, 6}},
77
+	{"kern.maxthread", []_C_int{1, 25}},
78
+	{"kern.maxvnodes", []_C_int{1, 5}},
79
+	{"kern.mbstat", []_C_int{1, 59}},
80
+	{"kern.msgbuf", []_C_int{1, 48}},
81
+	{"kern.msgbufsize", []_C_int{1, 38}},
82
+	{"kern.nchstats", []_C_int{1, 41}},
83
+	{"kern.netlivelocks", []_C_int{1, 76}},
84
+	{"kern.nfiles", []_C_int{1, 56}},
85
+	{"kern.ngroups", []_C_int{1, 18}},
86
+	{"kern.nosuidcoredump", []_C_int{1, 32}},
87
+	{"kern.nprocs", []_C_int{1, 47}},
88
+	{"kern.nselcoll", []_C_int{1, 43}},
89
+	{"kern.nthreads", []_C_int{1, 26}},
90
+	{"kern.numvnodes", []_C_int{1, 58}},
91
+	{"kern.osrelease", []_C_int{1, 2}},
92
+	{"kern.osrevision", []_C_int{1, 3}},
93
+	{"kern.ostype", []_C_int{1, 1}},
94
+	{"kern.osversion", []_C_int{1, 27}},
95
+	{"kern.pfstatus", []_C_int{1, 86}},
96
+	{"kern.pool_debug", []_C_int{1, 77}},
97
+	{"kern.posix1version", []_C_int{1, 17}},
98
+	{"kern.proc", []_C_int{1, 66}},
99
+	{"kern.rawpartition", []_C_int{1, 24}},
100
+	{"kern.saved_ids", []_C_int{1, 20}},
101
+	{"kern.securelevel", []_C_int{1, 9}},
102
+	{"kern.seminfo", []_C_int{1, 61}},
103
+	{"kern.shminfo", []_C_int{1, 62}},
104
+	{"kern.somaxconn", []_C_int{1, 28}},
105
+	{"kern.sominconn", []_C_int{1, 29}},
106
+	{"kern.splassert", []_C_int{1, 54}},
107
+	{"kern.stackgap_random", []_C_int{1, 50}},
108
+	{"kern.sysvipc_info", []_C_int{1, 51}},
109
+	{"kern.sysvmsg", []_C_int{1, 34}},
110
+	{"kern.sysvsem", []_C_int{1, 35}},
111
+	{"kern.sysvshm", []_C_int{1, 36}},
112
+	{"kern.timecounter.choice", []_C_int{1, 69, 4}},
113
+	{"kern.timecounter.hardware", []_C_int{1, 69, 3}},
114
+	{"kern.timecounter.tick", []_C_int{1, 69, 1}},
115
+	{"kern.timecounter.timestepwarnings", []_C_int{1, 69, 2}},
116
+	{"kern.timeout_stats", []_C_int{1, 87}},
117
+	{"kern.tty.tk_cancc", []_C_int{1, 44, 4}},
118
+	{"kern.tty.tk_nin", []_C_int{1, 44, 1}},
119
+	{"kern.tty.tk_nout", []_C_int{1, 44, 2}},
120
+	{"kern.tty.tk_rawcc", []_C_int{1, 44, 3}},
121
+	{"kern.tty.ttyinfo", []_C_int{1, 44, 5}},
122
+	{"kern.ttycount", []_C_int{1, 57}},
123
+	{"kern.utc_offset", []_C_int{1, 88}},
124
+	{"kern.version", []_C_int{1, 4}},
125
+	{"kern.watchdog.auto", []_C_int{1, 64, 2}},
126
+	{"kern.watchdog.period", []_C_int{1, 64, 1}},
127
+	{"kern.witnesswatch", []_C_int{1, 53}},
128
+	{"kern.wxabort", []_C_int{1, 74}},
129
+	{"net.bpf.bufsize", []_C_int{4, 31, 1}},
130
+	{"net.bpf.maxbufsize", []_C_int{4, 31, 2}},
131
+	{"net.inet.ah.enable", []_C_int{4, 2, 51, 1}},
132
+	{"net.inet.ah.stats", []_C_int{4, 2, 51, 2}},
133
+	{"net.inet.carp.allow", []_C_int{4, 2, 112, 1}},
134
+	{"net.inet.carp.log", []_C_int{4, 2, 112, 3}},
135
+	{"net.inet.carp.preempt", []_C_int{4, 2, 112, 2}},
136
+	{"net.inet.carp.stats", []_C_int{4, 2, 112, 4}},
137
+	{"net.inet.divert.recvspace", []_C_int{4, 2, 258, 1}},
138
+	{"net.inet.divert.sendspace", []_C_int{4, 2, 258, 2}},
139
+	{"net.inet.divert.stats", []_C_int{4, 2, 258, 3}},
140
+	{"net.inet.esp.enable", []_C_int{4, 2, 50, 1}},
141
+	{"net.inet.esp.stats", []_C_int{4, 2, 50, 4}},
142
+	{"net.inet.esp.udpencap", []_C_int{4, 2, 50, 2}},
143
+	{"net.inet.esp.udpencap_port", []_C_int{4, 2, 50, 3}},
144
+	{"net.inet.etherip.allow", []_C_int{4, 2, 97, 1}},
145
+	{"net.inet.etherip.stats", []_C_int{4, 2, 97, 2}},
146
+	{"net.inet.gre.allow", []_C_int{4, 2, 47, 1}},
147
+	{"net.inet.gre.wccp", []_C_int{4, 2, 47, 2}},
148
+	{"net.inet.icmp.bmcastecho", []_C_int{4, 2, 1, 2}},
149
+	{"net.inet.icmp.errppslimit", []_C_int{4, 2, 1, 3}},
150
+	{"net.inet.icmp.maskrepl", []_C_int{4, 2, 1, 1}},
151
+	{"net.inet.icmp.rediraccept", []_C_int{4, 2, 1, 4}},
152
+	{"net.inet.icmp.redirtimeout", []_C_int{4, 2, 1, 5}},
153
+	{"net.inet.icmp.stats", []_C_int{4, 2, 1, 7}},
154
+	{"net.inet.icmp.tstamprepl", []_C_int{4, 2, 1, 6}},
155
+	{"net.inet.igmp.stats", []_C_int{4, 2, 2, 1}},
156
+	{"net.inet.ip.arpdown", []_C_int{4, 2, 0, 40}},
157
+	{"net.inet.ip.arpqueued", []_C_int{4, 2, 0, 36}},
158
+	{"net.inet.ip.arptimeout", []_C_int{4, 2, 0, 39}},
159
+	{"net.inet.ip.encdebug", []_C_int{4, 2, 0, 12}},
160
+	{"net.inet.ip.forwarding", []_C_int{4, 2, 0, 1}},
161
+	{"net.inet.ip.ifq.congestion", []_C_int{4, 2, 0, 30, 4}},
162
+	{"net.inet.ip.ifq.drops", []_C_int{4, 2, 0, 30, 3}},
163
+	{"net.inet.ip.ifq.len", []_C_int{4, 2, 0, 30, 1}},
164
+	{"net.inet.ip.ifq.maxlen", []_C_int{4, 2, 0, 30, 2}},
165
+	{"net.inet.ip.maxqueue", []_C_int{4, 2, 0, 11}},
166
+	{"net.inet.ip.mforwarding", []_C_int{4, 2, 0, 31}},
167
+	{"net.inet.ip.mrtmfc", []_C_int{4, 2, 0, 37}},
168
+	{"net.inet.ip.mrtproto", []_C_int{4, 2, 0, 34}},
169
+	{"net.inet.ip.mrtstats", []_C_int{4, 2, 0, 35}},
170
+	{"net.inet.ip.mrtvif", []_C_int{4, 2, 0, 38}},
171
+	{"net.inet.ip.mtu", []_C_int{4, 2, 0, 4}},
172
+	{"net.inet.ip.mtudisc", []_C_int{4, 2, 0, 27}},
173
+	{"net.inet.ip.mtudisctimeout", []_C_int{4, 2, 0, 28}},
174
+	{"net.inet.ip.multipath", []_C_int{4, 2, 0, 32}},
175
+	{"net.inet.ip.portfirst", []_C_int{4, 2, 0, 7}},
176
+	{"net.inet.ip.porthifirst", []_C_int{4, 2, 0, 9}},
177
+	{"net.inet.ip.porthilast", []_C_int{4, 2, 0, 10}},
178
+	{"net.inet.ip.portlast", []_C_int{4, 2, 0, 8}},
179
+	{"net.inet.ip.redirect", []_C_int{4, 2, 0, 2}},
180
+	{"net.inet.ip.sourceroute", []_C_int{4, 2, 0, 5}},
181
+	{"net.inet.ip.stats", []_C_int{4, 2, 0, 33}},
182
+	{"net.inet.ip.ttl", []_C_int{4, 2, 0, 3}},
183
+	{"net.inet.ipcomp.enable", []_C_int{4, 2, 108, 1}},
184
+	{"net.inet.ipcomp.stats", []_C_int{4, 2, 108, 2}},
185
+	{"net.inet.ipip.allow", []_C_int{4, 2, 4, 1}},
186
+	{"net.inet.ipip.stats", []_C_int{4, 2, 4, 2}},
187
+	{"net.inet.pfsync.stats", []_C_int{4, 2, 240, 1}},
188
+	{"net.inet.tcp.ackonpush", []_C_int{4, 2, 6, 13}},
189
+	{"net.inet.tcp.always_keepalive", []_C_int{4, 2, 6, 22}},
190
+	{"net.inet.tcp.baddynamic", []_C_int{4, 2, 6, 6}},
191
+	{"net.inet.tcp.drop", []_C_int{4, 2, 6, 19}},
192
+	{"net.inet.tcp.ecn", []_C_int{4, 2, 6, 14}},
193
+	{"net.inet.tcp.ident", []_C_int{4, 2, 6, 9}},
194
+	{"net.inet.tcp.keepidle", []_C_int{4, 2, 6, 3}},
195
+	{"net.inet.tcp.keepinittime", []_C_int{4, 2, 6, 2}},
196
+	{"net.inet.tcp.keepintvl", []_C_int{4, 2, 6, 4}},
197
+	{"net.inet.tcp.mssdflt", []_C_int{4, 2, 6, 11}},
198
+	{"net.inet.tcp.reasslimit", []_C_int{4, 2, 6, 18}},
199
+	{"net.inet.tcp.rfc1323", []_C_int{4, 2, 6, 1}},
200
+	{"net.inet.tcp.rfc3390", []_C_int{4, 2, 6, 17}},
201
+	{"net.inet.tcp.rootonly", []_C_int{4, 2, 6, 24}},
202
+	{"net.inet.tcp.rstppslimit", []_C_int{4, 2, 6, 12}},
203
+	{"net.inet.tcp.sack", []_C_int{4, 2, 6, 10}},
204
+	{"net.inet.tcp.sackholelimit", []_C_int{4, 2, 6, 20}},
205
+	{"net.inet.tcp.slowhz", []_C_int{4, 2, 6, 5}},
206
+	{"net.inet.tcp.stats", []_C_int{4, 2, 6, 21}},
207
+	{"net.inet.tcp.synbucketlimit", []_C_int{4, 2, 6, 16}},
208
+	{"net.inet.tcp.syncachelimit", []_C_int{4, 2, 6, 15}},
209
+	{"net.inet.tcp.synhashsize", []_C_int{4, 2, 6, 25}},
210
+	{"net.inet.tcp.synuselimit", []_C_int{4, 2, 6, 23}},
211
+	{"net.inet.udp.baddynamic", []_C_int{4, 2, 17, 2}},
212
+	{"net.inet.udp.checksum", []_C_int{4, 2, 17, 1}},
213
+	{"net.inet.udp.recvspace", []_C_int{4, 2, 17, 3}},
214
+	{"net.inet.udp.rootonly", []_C_int{4, 2, 17, 6}},
215
+	{"net.inet.udp.sendspace", []_C_int{4, 2, 17, 4}},
216
+	{"net.inet.udp.stats", []_C_int{4, 2, 17, 5}},
217
+	{"net.inet6.divert.recvspace", []_C_int{4, 24, 86, 1}},
218
+	{"net.inet6.divert.sendspace", []_C_int{4, 24, 86, 2}},
219
+	{"net.inet6.divert.stats", []_C_int{4, 24, 86, 3}},
220
+	{"net.inet6.icmp6.errppslimit", []_C_int{4, 24, 30, 14}},
221
+	{"net.inet6.icmp6.mtudisc_hiwat", []_C_int{4, 24, 30, 16}},
222
+	{"net.inet6.icmp6.mtudisc_lowat", []_C_int{4, 24, 30, 17}},
223
+	{"net.inet6.icmp6.nd6_debug", []_C_int{4, 24, 30, 18}},
224
+	{"net.inet6.icmp6.nd6_delay", []_C_int{4, 24, 30, 8}},
225
+	{"net.inet6.icmp6.nd6_maxnudhint", []_C_int{4, 24, 30, 15}},
226
+	{"net.inet6.icmp6.nd6_mmaxtries", []_C_int{4, 24, 30, 10}},
227
+	{"net.inet6.icmp6.nd6_umaxtries", []_C_int{4, 24, 30, 9}},
228
+	{"net.inet6.icmp6.redirtimeout", []_C_int{4, 24, 30, 3}},
229
+	{"net.inet6.ip6.auto_flowlabel", []_C_int{4, 24, 17, 17}},
230
+	{"net.inet6.ip6.dad_count", []_C_int{4, 24, 17, 16}},
231
+	{"net.inet6.ip6.dad_pending", []_C_int{4, 24, 17, 49}},
232
+	{"net.inet6.ip6.defmcasthlim", []_C_int{4, 24, 17, 18}},
233
+	{"net.inet6.ip6.forwarding", []_C_int{4, 24, 17, 1}},
234
+	{"net.inet6.ip6.forwsrcrt", []_C_int{4, 24, 17, 5}},
235
+	{"net.inet6.ip6.hdrnestlimit", []_C_int{4, 24, 17, 15}},
236
+	{"net.inet6.ip6.hlim", []_C_int{4, 24, 17, 3}},
237
+	{"net.inet6.ip6.log_interval", []_C_int{4, 24, 17, 14}},
238
+	{"net.inet6.ip6.maxdynroutes", []_C_int{4, 24, 17, 48}},
239
+	{"net.inet6.ip6.maxfragpackets", []_C_int{4, 24, 17, 9}},
240
+	{"net.inet6.ip6.maxfrags", []_C_int{4, 24, 17, 41}},
241
+	{"net.inet6.ip6.mforwarding", []_C_int{4, 24, 17, 42}},
242
+	{"net.inet6.ip6.mrtmfc", []_C_int{4, 24, 17, 53}},
243
+	{"net.inet6.ip6.mrtmif", []_C_int{4, 24, 17, 52}},
244
+	{"net.inet6.ip6.mrtproto", []_C_int{4, 24, 17, 8}},
245
+	{"net.inet6.ip6.mtudisctimeout", []_C_int{4, 24, 17, 50}},
246
+	{"net.inet6.ip6.multicast_mtudisc", []_C_int{4, 24, 17, 44}},
247
+	{"net.inet6.ip6.multipath", []_C_int{4, 24, 17, 43}},
248
+	{"net.inet6.ip6.neighborgcthresh", []_C_int{4, 24, 17, 45}},
249
+	{"net.inet6.ip6.redirect", []_C_int{4, 24, 17, 2}},
250
+	{"net.inet6.ip6.soiikey", []_C_int{4, 24, 17, 54}},
251
+	{"net.inet6.ip6.sourcecheck", []_C_int{4, 24, 17, 10}},
252
+	{"net.inet6.ip6.sourcecheck_logint", []_C_int{4, 24, 17, 11}},
253
+	{"net.inet6.ip6.use_deprecated", []_C_int{4, 24, 17, 21}},
254
+	{"net.key.sadb_dump", []_C_int{4, 30, 1}},
255
+	{"net.key.spd_dump", []_C_int{4, 30, 2}},
256
+	{"net.mpls.ifq.congestion", []_C_int{4, 33, 3, 4}},
257
+	{"net.mpls.ifq.drops", []_C_int{4, 33, 3, 3}},
258
+	{"net.mpls.ifq.len", []_C_int{4, 33, 3, 1}},
259
+	{"net.mpls.ifq.maxlen", []_C_int{4, 33, 3, 2}},
260
+	{"net.mpls.mapttl_ip", []_C_int{4, 33, 5}},
261
+	{"net.mpls.mapttl_ip6", []_C_int{4, 33, 6}},
262
+	{"net.mpls.ttl", []_C_int{4, 33, 2}},
263
+	{"net.pflow.stats", []_C_int{4, 34, 1}},
264
+	{"net.pipex.enable", []_C_int{4, 35, 1}},
265
+	{"vm.anonmin", []_C_int{2, 7}},
266
+	{"vm.loadavg", []_C_int{2, 2}},
267
+	{"vm.malloc_conf", []_C_int{2, 12}},
268
+	{"vm.maxslp", []_C_int{2, 10}},
269
+	{"vm.nkmempages", []_C_int{2, 6}},
270
+	{"vm.psstrings", []_C_int{2, 3}},
271
+	{"vm.swapencrypt.enable", []_C_int{2, 5, 0}},
272
+	{"vm.swapencrypt.keyscreated", []_C_int{2, 5, 1}},
273
+	{"vm.swapencrypt.keysdeleted", []_C_int{2, 5, 2}},
274
+	{"vm.uspace", []_C_int{2, 11}},
275
+	{"vm.uvmexp", []_C_int{2, 4}},
276
+	{"vm.vmmeter", []_C_int{2, 1}},
277
+	{"vm.vnodemin", []_C_int{2, 9}},
278
+	{"vm.vtextmin", []_C_int{2, 8}},
279
+}

+ 220
- 0
vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go View File

@@ -0,0 +1,220 @@
1
+// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master
2
+// Code generated by the command above; see README.md. DO NOT EDIT.
3
+
4
+// +build mips64,openbsd
5
+
6
+package unix
7
+
8
+const (
9
+	SYS_EXIT           = 1   // { void sys_exit(int rval); }
10
+	SYS_FORK           = 2   // { int sys_fork(void); }
11
+	SYS_READ           = 3   // { ssize_t sys_read(int fd, void *buf, size_t nbyte); }
12
+	SYS_WRITE          = 4   // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); }
13
+	SYS_OPEN           = 5   // { int sys_open(const char *path, int flags, ... mode_t mode); }
14
+	SYS_CLOSE          = 6   // { int sys_close(int fd); }
15
+	SYS_GETENTROPY     = 7   // { int sys_getentropy(void *buf, size_t nbyte); }
16
+	SYS___TFORK        = 8   // { int sys___tfork(const struct __tfork *param, size_t psize); }
17
+	SYS_LINK           = 9   // { int sys_link(const char *path, const char *link); }
18
+	SYS_UNLINK         = 10  // { int sys_unlink(const char *path); }
19
+	SYS_WAIT4          = 11  // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); }
20
+	SYS_CHDIR          = 12  // { int sys_chdir(const char *path); }
21
+	SYS_FCHDIR         = 13  // { int sys_fchdir(int fd); }
22
+	SYS_MKNOD          = 14  // { int sys_mknod(const char *path, mode_t mode, dev_t dev); }
23
+	SYS_CHMOD          = 15  // { int sys_chmod(const char *path, mode_t mode); }
24
+	SYS_CHOWN          = 16  // { int sys_chown(const char *path, uid_t uid, gid_t gid); }
25
+	SYS_OBREAK         = 17  // { int sys_obreak(char *nsize); } break
26
+	SYS_GETDTABLECOUNT = 18  // { int sys_getdtablecount(void); }
27
+	SYS_GETRUSAGE      = 19  // { int sys_getrusage(int who, struct rusage *rusage); }
28
+	SYS_GETPID         = 20  // { pid_t sys_getpid(void); }
29
+	SYS_MOUNT          = 21  // { int sys_mount(const char *type, const char *path, int flags, void *data); }
30
+	SYS_UNMOUNT        = 22  // { int sys_unmount(const char *path, int flags); }
31
+	SYS_SETUID         = 23  // { int sys_setuid(uid_t uid); }
32
+	SYS_GETUID         = 24  // { uid_t sys_getuid(void); }
33
+	SYS_GETEUID        = 25  // { uid_t sys_geteuid(void); }
34
+	SYS_PTRACE         = 26  // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); }
35
+	SYS_RECVMSG        = 27  // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); }
36
+	SYS_SENDMSG        = 28  // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); }
37
+	SYS_RECVFROM       = 29  // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); }
38
+	SYS_ACCEPT         = 30  // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); }
39
+	SYS_GETPEERNAME    = 31  // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); }
40
+	SYS_GETSOCKNAME    = 32  // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); }
41
+	SYS_ACCESS         = 33  // { int sys_access(const char *path, int amode); }
42
+	SYS_CHFLAGS        = 34  // { int sys_chflags(const char *path, u_int flags); }
43
+	SYS_FCHFLAGS       = 35  // { int sys_fchflags(int fd, u_int flags); }
44
+	SYS_SYNC           = 36  // { void sys_sync(void); }
45
+	SYS_MSYSCALL       = 37  // { int sys_msyscall(void *addr, size_t len); }
46
+	SYS_STAT           = 38  // { int sys_stat(const char *path, struct stat *ub); }
47
+	SYS_GETPPID        = 39  // { pid_t sys_getppid(void); }
48
+	SYS_LSTAT          = 40  // { int sys_lstat(const char *path, struct stat *ub); }
49
+	SYS_DUP            = 41  // { int sys_dup(int fd); }
50
+	SYS_FSTATAT        = 42  // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); }
51
+	SYS_GETEGID        = 43  // { gid_t sys_getegid(void); }
52
+	SYS_PROFIL         = 44  // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); }
53
+	SYS_KTRACE         = 45  // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); }
54
+	SYS_SIGACTION      = 46  // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); }
55
+	SYS_GETGID         = 47  // { gid_t sys_getgid(void); }
56
+	SYS_SIGPROCMASK    = 48  // { int sys_sigprocmask(int how, sigset_t mask); }
57
+	SYS_SETLOGIN       = 50  // { int sys_setlogin(const char *namebuf); }
58
+	SYS_ACCT           = 51  // { int sys_acct(const char *path); }
59
+	SYS_SIGPENDING     = 52  // { int sys_sigpending(void); }
60
+	SYS_FSTAT          = 53  // { int sys_fstat(int fd, struct stat *sb); }
61
+	SYS_IOCTL          = 54  // { int sys_ioctl(int fd, u_long com, ... void *data); }
62
+	SYS_REBOOT         = 55  // { int sys_reboot(int opt); }
63
+	SYS_REVOKE         = 56  // { int sys_revoke(const char *path); }
64
+	SYS_SYMLINK        = 57  // { int sys_symlink(const char *path, const char *link); }
65
+	SYS_READLINK       = 58  // { ssize_t sys_readlink(const char *path, char *buf, size_t count); }
66
+	SYS_EXECVE         = 59  // { int sys_execve(const char *path, char * const *argp, char * const *envp); }
67
+	SYS_UMASK          = 60  // { mode_t sys_umask(mode_t newmask); }
68
+	SYS_CHROOT         = 61  // { int sys_chroot(const char *path); }
69
+	SYS_GETFSSTAT      = 62  // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); }
70
+	SYS_STATFS         = 63  // { int sys_statfs(const char *path, struct statfs *buf); }
71
+	SYS_FSTATFS        = 64  // { int sys_fstatfs(int fd, struct statfs *buf); }
72
+	SYS_FHSTATFS       = 65  // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); }
73
+	SYS_VFORK          = 66  // { int sys_vfork(void); }
74
+	SYS_GETTIMEOFDAY   = 67  // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); }
75
+	SYS_SETTIMEOFDAY   = 68  // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); }
76
+	SYS_SETITIMER      = 69  // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); }
77
+	SYS_GETITIMER      = 70  // { int sys_getitimer(int which, struct itimerval *itv); }
78
+	SYS_SELECT         = 71  // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); }
79
+	SYS_KEVENT         = 72  // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
80
+	SYS_MUNMAP         = 73  // { int sys_munmap(void *addr, size_t len); }
81
+	SYS_MPROTECT       = 74  // { int sys_mprotect(void *addr, size_t len, int prot); }
82
+	SYS_MADVISE        = 75  // { int sys_madvise(void *addr, size_t len, int behav); }
83
+	SYS_UTIMES         = 76  // { int sys_utimes(const char *path, const struct timeval *tptr); }
84
+	SYS_FUTIMES        = 77  // { int sys_futimes(int fd, const struct timeval *tptr); }
85
+	SYS_GETGROUPS      = 79  // { int sys_getgroups(int gidsetsize, gid_t *gidset); }
86
+	SYS_SETGROUPS      = 80  // { int sys_setgroups(int gidsetsize, const gid_t *gidset); }
87
+	SYS_GETPGRP        = 81  // { int sys_getpgrp(void); }
88
+	SYS_SETPGID        = 82  // { int sys_setpgid(pid_t pid, pid_t pgid); }
89
+	SYS_FUTEX          = 83  // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); }
90
+	SYS_UTIMENSAT      = 84  // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); }
91
+	SYS_FUTIMENS       = 85  // { int sys_futimens(int fd, const struct timespec *times); }
92
+	SYS_KBIND          = 86  // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); }
93
+	SYS_CLOCK_GETTIME  = 87  // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); }
94
+	SYS_CLOCK_SETTIME  = 88  // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); }
95
+	SYS_CLOCK_GETRES   = 89  // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); }
96
+	SYS_DUP2           = 90  // { int sys_dup2(int from, int to); }
97
+	SYS_NANOSLEEP      = 91  // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); }
98
+	SYS_FCNTL          = 92  // { int sys_fcntl(int fd, int cmd, ... void *arg); }
99
+	SYS_ACCEPT4        = 93  // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); }
100
+	SYS___THRSLEEP     = 94  // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); }
101
+	SYS_FSYNC          = 95  // { int sys_fsync(int fd); }
102
+	SYS_SETPRIORITY    = 96  // { int sys_setpriority(int which, id_t who, int prio); }
103
+	SYS_SOCKET         = 97  // { int sys_socket(int domain, int type, int protocol); }
104
+	SYS_CONNECT        = 98  // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); }
105
+	SYS_GETDENTS       = 99  // { int sys_getdents(int fd, void *buf, size_t buflen); }
106
+	SYS_GETPRIORITY    = 100 // { int sys_getpriority(int which, id_t who); }
107
+	SYS_PIPE2          = 101 // { int sys_pipe2(int *fdp, int flags); }
108
+	SYS_DUP3           = 102 // { int sys_dup3(int from, int to, int flags); }
109
+	SYS_SIGRETURN      = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); }
110
+	SYS_BIND           = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); }
111
+	SYS_SETSOCKOPT     = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); }
112
+	SYS_LISTEN         = 106 // { int sys_listen(int s, int backlog); }
113
+	SYS_CHFLAGSAT      = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); }
114
+	SYS_PLEDGE         = 108 // { int sys_pledge(const char *promises, const char *execpromises); }
115
+	SYS_PPOLL          = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); }
116
+	SYS_PSELECT        = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); }
117
+	SYS_SIGSUSPEND     = 111 // { int sys_sigsuspend(int mask); }
118
+	SYS_SENDSYSLOG     = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); }
119
+	SYS_UNVEIL         = 114 // { int sys_unveil(const char *path, const char *permissions); }
120
+	SYS___REALPATH     = 115 // { int sys___realpath(const char *pathname, char *resolved); }
121
+	SYS_GETSOCKOPT     = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); }
122
+	SYS_THRKILL        = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); }
123
+	SYS_READV          = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); }
124
+	SYS_WRITEV         = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); }
125
+	SYS_KILL           = 122 // { int sys_kill(int pid, int signum); }
126
+	SYS_FCHOWN         = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); }
127
+	SYS_FCHMOD         = 124 // { int sys_fchmod(int fd, mode_t mode); }
128
+	SYS_SETREUID       = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); }
129
+	SYS_SETREGID       = 127 // { int sys_setregid(gid_t rgid, gid_t egid); }
130
+	SYS_RENAME         = 128 // { int sys_rename(const char *from, const char *to); }
131
+	SYS_FLOCK          = 131 // { int sys_flock(int fd, int how); }
132
+	SYS_MKFIFO         = 132 // { int sys_mkfifo(const char *path, mode_t mode); }
133
+	SYS_SENDTO         = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); }
134
+	SYS_SHUTDOWN       = 134 // { int sys_shutdown(int s, int how); }
135
+	SYS_SOCKETPAIR     = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); }
136
+	SYS_MKDIR          = 136 // { int sys_mkdir(const char *path, mode_t mode); }
137
+	SYS_RMDIR          = 137 // { int sys_rmdir(const char *path); }
138
+	SYS_ADJTIME        = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); }
139
+	SYS_GETLOGIN_R     = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); }
140
+	SYS_SETSID         = 147 // { int sys_setsid(void); }
141
+	SYS_QUOTACTL       = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); }
142
+	SYS_NFSSVC         = 155 // { int sys_nfssvc(int flag, void *argp); }
143
+	SYS_GETFH          = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); }
144
+	SYS___TMPFD        = 164 // { int sys___tmpfd(int flags); }
145
+	SYS_SYSARCH        = 165 // { int sys_sysarch(int op, void *parms); }
146
+	SYS_PREAD          = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); }
147
+	SYS_PWRITE         = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); }
148
+	SYS_SETGID         = 181 // { int sys_setgid(gid_t gid); }
149
+	SYS_SETEGID        = 182 // { int sys_setegid(gid_t egid); }
150
+	SYS_SETEUID        = 183 // { int sys_seteuid(uid_t euid); }
151
+	SYS_PATHCONF       = 191 // { long sys_pathconf(const char *path, int name); }
152
+	SYS_FPATHCONF      = 192 // { long sys_fpathconf(int fd, int name); }
153
+	SYS_SWAPCTL        = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); }
154
+	SYS_GETRLIMIT      = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); }
155
+	SYS_SETRLIMIT      = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); }
156
+	SYS_MMAP           = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); }
157
+	SYS_LSEEK          = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); }
158
+	SYS_TRUNCATE       = 200 // { int sys_truncate(const char *path, int pad, off_t length); }
159
+	SYS_FTRUNCATE      = 201 // { int sys_ftruncate(int fd, int pad, off_t length); }
160
+	SYS_SYSCTL         = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); }
161
+	SYS_MLOCK          = 203 // { int sys_mlock(const void *addr, size_t len); }
162
+	SYS_MUNLOCK        = 204 // { int sys_munlock(const void *addr, size_t len); }
163
+	SYS_GETPGID        = 207 // { pid_t sys_getpgid(pid_t pid); }
164
+	SYS_UTRACE         = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); }
165
+	SYS_SEMGET         = 221 // { int sys_semget(key_t key, int nsems, int semflg); }
166
+	SYS_MSGGET         = 225 // { int sys_msgget(key_t key, int msgflg); }
167
+	SYS_MSGSND         = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); }
168
+	SYS_MSGRCV         = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
169
+	SYS_SHMAT          = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); }
170
+	SYS_SHMDT          = 230 // { int sys_shmdt(const void *shmaddr); }
171
+	SYS_MINHERIT       = 250 // { int sys_minherit(void *addr, size_t len, int inherit); }
172
+	SYS_POLL           = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); }
173
+	SYS_ISSETUGID      = 253 // { int sys_issetugid(void); }
174
+	SYS_LCHOWN         = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); }
175
+	SYS_GETSID         = 255 // { pid_t sys_getsid(pid_t pid); }
176
+	SYS_MSYNC          = 256 // { int sys_msync(void *addr, size_t len, int flags); }
177
+	SYS_PIPE           = 263 // { int sys_pipe(int *fdp); }
178
+	SYS_FHOPEN         = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); }
179
+	SYS_PREADV         = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); }
180
+	SYS_PWRITEV        = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); }
181
+	SYS_KQUEUE         = 269 // { int sys_kqueue(void); }
182
+	SYS_MLOCKALL       = 271 // { int sys_mlockall(int flags); }
183
+	SYS_MUNLOCKALL     = 272 // { int sys_munlockall(void); }
184
+	SYS_GETRESUID      = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
185
+	SYS_SETRESUID      = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); }
186
+	SYS_GETRESGID      = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
187
+	SYS_SETRESGID      = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
188
+	SYS_MQUERY         = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); }
189
+	SYS_CLOSEFROM      = 287 // { int sys_closefrom(int fd); }
190
+	SYS_SIGALTSTACK    = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); }
191
+	SYS_SHMGET         = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); }
192
+	SYS_SEMOP          = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); }
193
+	SYS_FHSTAT         = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); }
194
+	SYS___SEMCTL       = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); }
195
+	SYS_SHMCTL         = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); }
196
+	SYS_MSGCTL         = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); }
197
+	SYS_SCHED_YIELD    = 298 // { int sys_sched_yield(void); }
198
+	SYS_GETTHRID       = 299 // { pid_t sys_getthrid(void); }
199
+	SYS___THRWAKEUP    = 301 // { int sys___thrwakeup(const volatile void *ident, int n); }
200
+	SYS___THREXIT      = 302 // { void sys___threxit(pid_t *notdead); }
201
+	SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); }
202
+	SYS___GETCWD       = 304 // { int sys___getcwd(char *buf, size_t len); }
203
+	SYS_ADJFREQ        = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); }
204
+	SYS_SETRTABLE      = 310 // { int sys_setrtable(int rtableid); }
205
+	SYS_GETRTABLE      = 311 // { int sys_getrtable(void); }
206
+	SYS_FACCESSAT      = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); }
207
+	SYS_FCHMODAT       = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); }
208
+	SYS_FCHOWNAT       = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); }
209
+	SYS_LINKAT         = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); }
210
+	SYS_MKDIRAT        = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); }
211
+	SYS_MKFIFOAT       = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); }
212
+	SYS_MKNODAT        = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); }
213
+	SYS_OPENAT         = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); }
214
+	SYS_READLINKAT     = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); }
215
+	SYS_RENAMEAT       = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); }
216
+	SYS_SYMLINKAT      = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); }
217
+	SYS_UNLINKAT       = 325 // { int sys_unlinkat(int fd, const char *path, int flag); }
218
+	SYS___SET_TCB      = 329 // { void sys___set_tcb(void *tcb); }
219
+	SYS___GET_TCB      = 330 // { void *sys___get_tcb(void); }
220
+)

+ 565
- 0
vendor/golang.org/x/sys/unix/ztypes_openbsd_mips64.go View File

@@ -0,0 +1,565 @@
1
+// cgo -godefs -- -fsigned-char types_openbsd.go | go run mkpost.go
2
+// Code generated by the command above; see README.md. DO NOT EDIT.
3
+
4
+// +build mips64,openbsd
5
+
6
+package unix
7
+
8
+const (
9
+	SizeofPtr      = 0x8
10
+	SizeofShort    = 0x2
11
+	SizeofInt      = 0x4
12
+	SizeofLong     = 0x8
13
+	SizeofLongLong = 0x8
14
+)
15
+
16
+type (
17
+	_C_short     int16
18
+	_C_int       int32
19
+	_C_long      int64
20
+	_C_long_long int64
21
+)
22
+
23
+type Timespec struct {
24
+	Sec  int64
25
+	Nsec int64
26
+}
27
+
28
+type Timeval struct {
29
+	Sec  int64
30
+	Usec int64
31
+}
32
+
33
+type Rusage struct {
34
+	Utime    Timeval
35
+	Stime    Timeval
36
+	Maxrss   int64
37
+	Ixrss    int64
38
+	Idrss    int64
39
+	Isrss    int64
40
+	Minflt   int64
41
+	Majflt   int64
42
+	Nswap    int64
43
+	Inblock  int64
44
+	Oublock  int64
45
+	Msgsnd   int64
46
+	Msgrcv   int64
47
+	Nsignals int64
48
+	Nvcsw    int64
49
+	Nivcsw   int64
50
+}
51
+
52
+type Rlimit struct {
53
+	Cur uint64
54
+	Max uint64
55
+}
56
+
57
+type _Gid_t uint32
58
+
59
+type Stat_t struct {
60
+	Mode    uint32
61
+	Dev     int32
62
+	Ino     uint64
63
+	Nlink   uint32
64
+	Uid     uint32
65
+	Gid     uint32
66
+	Rdev    int32
67
+	Atim    Timespec
68
+	Mtim    Timespec
69
+	Ctim    Timespec
70
+	Size    int64
71
+	Blocks  int64
72
+	Blksize int32
73
+	Flags   uint32
74
+	Gen     uint32
75
+	_       Timespec
76
+}
77
+
78
+type Statfs_t struct {
79
+	F_flags       uint32
80
+	F_bsize       uint32
81
+	F_iosize      uint32
82
+	F_blocks      uint64
83
+	F_bfree       uint64
84
+	F_bavail      int64
85
+	F_files       uint64
86
+	F_ffree       uint64
87
+	F_favail      int64
88
+	F_syncwrites  uint64
89
+	F_syncreads   uint64
90
+	F_asyncwrites uint64
91
+	F_asyncreads  uint64
92
+	F_fsid        Fsid
93
+	F_namemax     uint32
94
+	F_owner       uint32
95
+	F_ctime       uint64
96
+	F_fstypename  [16]int8
97
+	F_mntonname   [90]int8
98
+	F_mntfromname [90]int8
99
+	F_mntfromspec [90]int8
100
+	_             [2]byte
101
+	Mount_info    [160]byte
102
+}
103
+
104
+type Flock_t struct {
105
+	Start  int64
106
+	Len    int64
107
+	Pid    int32
108
+	Type   int16
109
+	Whence int16
110
+}
111
+
112
+type Dirent struct {
113
+	Fileno uint64
114
+	Off    int64
115
+	Reclen uint16
116
+	Type   uint8
117
+	Namlen uint8
118
+	_      [4]uint8
119
+	Name   [256]int8
120
+}
121
+
122
+type Fsid struct {
123
+	Val [2]int32
124
+}
125
+
126
+const (
127
+	PathMax = 0x400
128
+)
129
+
130
+type RawSockaddrInet4 struct {
131
+	Len    uint8
132
+	Family uint8
133
+	Port   uint16
134
+	Addr   [4]byte /* in_addr */
135
+	Zero   [8]int8
136
+}
137
+
138
+type RawSockaddrInet6 struct {
139
+	Len      uint8
140
+	Family   uint8
141
+	Port     uint16
142
+	Flowinfo uint32
143
+	Addr     [16]byte /* in6_addr */
144
+	Scope_id uint32
145
+}
146
+
147
+type RawSockaddrUnix struct {
148
+	Len    uint8
149
+	Family uint8
150
+	Path   [104]int8
151
+}
152
+
153
+type RawSockaddrDatalink struct {
154
+	Len    uint8
155
+	Family uint8
156
+	Index  uint16
157
+	Type   uint8
158
+	Nlen   uint8
159
+	Alen   uint8
160
+	Slen   uint8
161
+	Data   [24]int8
162
+}
163
+
164
+type RawSockaddr struct {
165
+	Len    uint8
166
+	Family uint8
167
+	Data   [14]int8
168
+}
169
+
170
+type RawSockaddrAny struct {
171
+	Addr RawSockaddr
172
+	Pad  [92]int8
173
+}
174
+
175
+type _Socklen uint32
176
+
177
+type Linger struct {
178
+	Onoff  int32
179
+	Linger int32
180
+}
181
+
182
+type Iovec struct {
183
+	Base *byte
184
+	Len  uint64
185
+}
186
+
187
+type IPMreq struct {
188
+	Multiaddr [4]byte /* in_addr */
189
+	Interface [4]byte /* in_addr */
190
+}
191
+
192
+type IPv6Mreq struct {
193
+	Multiaddr [16]byte /* in6_addr */
194
+	Interface uint32
195
+}
196
+
197
+type Msghdr struct {
198
+	Name       *byte
199
+	Namelen    uint32
200
+	Iov        *Iovec
201
+	Iovlen     uint32
202
+	Control    *byte
203
+	Controllen uint32
204
+	Flags      int32
205
+}
206
+
207
+type Cmsghdr struct {
208
+	Len   uint32
209
+	Level int32
210
+	Type  int32
211
+}
212
+
213
+type Inet6Pktinfo struct {
214
+	Addr    [16]byte /* in6_addr */
215
+	Ifindex uint32
216
+}
217
+
218
+type IPv6MTUInfo struct {
219
+	Addr RawSockaddrInet6
220
+	Mtu  uint32
221
+}
222
+
223
+type ICMPv6Filter struct {
224
+	Filt [8]uint32
225
+}
226
+
227
+const (
228
+	SizeofSockaddrInet4    = 0x10
229
+	SizeofSockaddrInet6    = 0x1c
230
+	SizeofSockaddrAny      = 0x6c
231
+	SizeofSockaddrUnix     = 0x6a
232
+	SizeofSockaddrDatalink = 0x20
233
+	SizeofLinger           = 0x8
234
+	SizeofIPMreq           = 0x8
235
+	SizeofIPv6Mreq         = 0x14
236
+	SizeofMsghdr           = 0x30
237
+	SizeofCmsghdr          = 0xc
238
+	SizeofInet6Pktinfo     = 0x14
239
+	SizeofIPv6MTUInfo      = 0x20
240
+	SizeofICMPv6Filter     = 0x20
241
+)
242
+
243
+const (
244
+	PTRACE_TRACEME = 0x0
245
+	PTRACE_CONT    = 0x7
246
+	PTRACE_KILL    = 0x8
247
+)
248
+
249
+type Kevent_t struct {
250
+	Ident  uint64
251
+	Filter int16
252
+	Flags  uint16
253
+	Fflags uint32
254
+	Data   int64
255
+	Udata  *byte
256
+}
257
+
258
+type FdSet struct {
259
+	Bits [32]uint32
260
+}
261
+
262
+const (
263
+	SizeofIfMsghdr         = 0xa8
264
+	SizeofIfData           = 0x90
265
+	SizeofIfaMsghdr        = 0x18
266
+	SizeofIfAnnounceMsghdr = 0x1a
267
+	SizeofRtMsghdr         = 0x60
268
+	SizeofRtMetrics        = 0x38
269
+)
270
+
271
+type IfMsghdr struct {
272
+	Msglen  uint16
273
+	Version uint8
274
+	Type    uint8
275
+	Hdrlen  uint16
276
+	Index   uint16
277
+	Tableid uint16
278
+	Pad1    uint8
279
+	Pad2    uint8
280
+	Addrs   int32
281
+	Flags   int32
282
+	Xflags  int32
283
+	Data    IfData
284
+}
285
+
286
+type IfData struct {
287
+	Type         uint8
288
+	Addrlen      uint8
289
+	Hdrlen       uint8
290
+	Link_state   uint8
291
+	Mtu          uint32
292
+	Metric       uint32
293
+	Rdomain      uint32
294
+	Baudrate     uint64
295
+	Ipackets     uint64
296
+	Ierrors      uint64
297
+	Opackets     uint64
298
+	Oerrors      uint64
299
+	Collisions   uint64
300
+	Ibytes       uint64
301
+	Obytes       uint64
302
+	Imcasts      uint64
303
+	Omcasts      uint64
304
+	Iqdrops      uint64
305
+	Oqdrops      uint64
306
+	Noproto      uint64
307
+	Capabilities uint32
308
+	Lastchange   Timeval
309
+}
310
+
311
+type IfaMsghdr struct {
312
+	Msglen  uint16
313
+	Version uint8
314
+	Type    uint8
315
+	Hdrlen  uint16
316
+	Index   uint16
317
+	Tableid uint16
318
+	Pad1    uint8
319
+	Pad2    uint8
320
+	Addrs   int32
321
+	Flags   int32
322
+	Metric  int32
323
+}
324
+
325
+type IfAnnounceMsghdr struct {
326
+	Msglen  uint16
327
+	Version uint8
328
+	Type    uint8
329
+	Hdrlen  uint16
330
+	Index   uint16
331
+	What    uint16
332
+	Name    [16]int8
333
+}
334
+
335
+type RtMsghdr struct {
336
+	Msglen   uint16
337
+	Version  uint8
338
+	Type     uint8
339
+	Hdrlen   uint16
340
+	Index    uint16
341
+	Tableid  uint16
342
+	Priority uint8
343
+	Mpls     uint8
344
+	Addrs    int32
345
+	Flags    int32
346
+	Fmask    int32
347
+	Pid      int32
348
+	Seq      int32
349
+	Errno    int32
350
+	Inits    uint32
351
+	Rmx      RtMetrics
352
+}
353
+
354
+type RtMetrics struct {
355
+	Pksent   uint64
356
+	Expire   int64
357
+	Locks    uint32
358
+	Mtu      uint32
359
+	Refcnt   uint32
360
+	Hopcount uint32
361
+	Recvpipe uint32
362
+	Sendpipe uint32
363
+	Ssthresh uint32
364
+	Rtt      uint32
365
+	Rttvar   uint32
366
+	Pad      uint32
367
+}
368
+
369
+type Mclpool struct{}
370
+
371
+const (
372
+	SizeofBpfVersion = 0x4
373
+	SizeofBpfStat    = 0x8
374
+	SizeofBpfProgram = 0x10
375
+	SizeofBpfInsn    = 0x8
376
+	SizeofBpfHdr     = 0x14
377
+)
378
+
379
+type BpfVersion struct {
380
+	Major uint16
381
+	Minor uint16
382
+}
383
+
384
+type BpfStat struct {
385
+	Recv uint32
386
+	Drop uint32
387
+}
388
+
389
+type BpfProgram struct {
390
+	Len   uint32
391
+	Insns *BpfInsn
392
+}
393
+
394
+type BpfInsn struct {
395
+	Code uint16
396
+	Jt   uint8
397
+	Jf   uint8
398
+	K    uint32
399
+}
400
+
401
+type BpfHdr struct {
402
+	Tstamp  BpfTimeval
403
+	Caplen  uint32
404
+	Datalen uint32
405
+	Hdrlen  uint16
406
+	_       [2]byte
407
+}
408
+
409
+type BpfTimeval struct {
410
+	Sec  uint32
411
+	Usec uint32
412
+}
413
+
414
+type Termios struct {
415
+	Iflag  uint32
416
+	Oflag  uint32
417
+	Cflag  uint32
418
+	Lflag  uint32
419
+	Cc     [20]uint8
420
+	Ispeed int32
421
+	Ospeed int32
422
+}
423
+
424
+type Winsize struct {
425
+	Row    uint16
426
+	Col    uint16
427
+	Xpixel uint16
428
+	Ypixel uint16
429
+}
430
+
431
+const (
432
+	AT_FDCWD            = -0x64
433
+	AT_SYMLINK_FOLLOW   = 0x4
434
+	AT_SYMLINK_NOFOLLOW = 0x2
435
+)
436
+
437
+type PollFd struct {
438
+	Fd      int32
439
+	Events  int16
440
+	Revents int16
441
+}
442
+
443
+const (
444
+	POLLERR    = 0x8
445
+	POLLHUP    = 0x10
446
+	POLLIN     = 0x1
447
+	POLLNVAL   = 0x20
448
+	POLLOUT    = 0x4
449
+	POLLPRI    = 0x2
450
+	POLLRDBAND = 0x80
451
+	POLLRDNORM = 0x40
452
+	POLLWRBAND = 0x100
453
+	POLLWRNORM = 0x4
454
+)
455
+
456
+type Sigset_t uint32
457
+
458
+type Utsname struct {
459
+	Sysname  [256]byte
460
+	Nodename [256]byte
461
+	Release  [256]byte
462
+	Version  [256]byte
463
+	Machine  [256]byte
464
+}
465
+
466
+const SizeofUvmexp = 0x158
467
+
468
+type Uvmexp struct {
469
+	Pagesize           int32
470
+	Pagemask           int32
471
+	Pageshift          int32
472
+	Npages             int32
473
+	Free               int32
474
+	Active             int32
475
+	Inactive           int32
476
+	Paging             int32
477
+	Wired              int32
478
+	Zeropages          int32
479
+	Reserve_pagedaemon int32
480
+	Reserve_kernel     int32
481
+	Unused01           int32
482
+	Vnodepages         int32
483
+	Vtextpages         int32
484
+	Freemin            int32
485
+	Freetarg           int32
486
+	Inactarg           int32
487
+	Wiredmax           int32
488
+	Anonmin            int32
489
+	Vtextmin           int32
490
+	Vnodemin           int32
491
+	Anonminpct         int32
492
+	Vtextminpct        int32
493
+	Vnodeminpct        int32
494
+	Nswapdev           int32
495
+	Swpages            int32
496
+	Swpginuse          int32
497
+	Swpgonly           int32
498
+	Nswget             int32
499
+	Nanon              int32
500
+	Unused05           int32
501
+	Unused06           int32
502
+	Faults             int32
503
+	Traps              int32
504
+	Intrs              int32
505
+	Swtch              int32
506
+	Softs              int32
507
+	Syscalls           int32
508
+	Pageins            int32
509
+	Unused07           int32
510
+	Unused08           int32
511
+	Pgswapin           int32
512
+	Pgswapout          int32
513
+	Forks              int32
514
+	Forks_ppwait       int32
515
+	Forks_sharevm      int32
516
+	Pga_zerohit        int32
517
+	Pga_zeromiss       int32
518
+	Unused09           int32
519
+	Fltnoram           int32
520
+	Fltnoanon          int32
521
+	Fltnoamap          int32
522
+	Fltpgwait          int32
523
+	Fltpgrele          int32
524
+	Fltrelck           int32
525
+	Fltrelckok         int32
526
+	Fltanget           int32
527
+	Fltanretry         int32
528
+	Fltamcopy          int32
529
+	Fltnamap           int32
530
+	Fltnomap           int32
531
+	Fltlget            int32
532
+	Fltget             int32
533
+	Flt_anon           int32
534
+	Flt_acow           int32
535
+	Flt_obj            int32
536
+	Flt_prcopy         int32
537
+	Flt_przero         int32
538
+	Pdwoke             int32
539
+	Pdrevs             int32
540
+	Pdswout            int32
541
+	Pdfreed            int32
542
+	Pdscans            int32
543
+	Pdanscan           int32
544
+	Pdobscan           int32
545
+	Pdreact            int32
546
+	Pdbusy             int32
547
+	Pdpageouts         int32
548
+	Pdpending          int32
549
+	Pddeact            int32
550
+	Unused11           int32
551
+	Unused12           int32
552
+	Unused13           int32
553
+	Fpswtch            int32
554
+	Kmapent            int32
555
+}
556
+
557
+const SizeofClockinfo = 0x14
558
+
559
+type Clockinfo struct {
560
+	Hz      int32
561
+	Tick    int32
562
+	Tickadj int32
563
+	Stathz  int32
564
+	Profhz  int32
565
+}

Loading…
Cancel
Save