diff options
author | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:22 -0500 |
---|---|---|
committer | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:22 -0500 |
commit | 07971ca38143c5faf951d152fba370ddcbe26ad5 (patch) | |
tree | 09af1ef91c782de921efc83113907184c8adecee /vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go | |
parent | 9b6f05970a001f683b9c886c652de81f00cd5f00 (diff) | |
download | terraform-provider-statuscake-07971ca38143c5faf951d152fba370ddcbe26ad5.tar.gz terraform-provider-statuscake-07971ca38143c5faf951d152fba370ddcbe26ad5.tar.zst terraform-provider-statuscake-07971ca38143c5faf951d152fba370ddcbe26ad5.zip |
deps: use go modules for dep mgmt
run go mod tidy
remove govendor from makefile and travis config
set appropriate env vars for go modules
Diffstat (limited to 'vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go')
-rw-r--r-- | vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go | 1326 |
1 files changed, 0 insertions, 1326 deletions
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go deleted file mode 100644 index 03f31b9..0000000 --- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go +++ /dev/null | |||
@@ -1,1326 +0,0 @@ | |||
1 | // mksyscall.pl -netbsd syscall_bsd.go syscall_netbsd.go syscall_netbsd_amd64.go | ||
2 | // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT | ||
3 | |||
4 | // +build amd64,netbsd | ||
5 | |||
6 | package unix | ||
7 | |||
8 | import ( | ||
9 | "syscall" | ||
10 | "unsafe" | ||
11 | ) | ||
12 | |||
13 | var _ syscall.Errno | ||
14 | |||
15 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
16 | |||
17 | func getgroups(ngid int, gid *_Gid_t) (n int, err error) { | ||
18 | r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) | ||
19 | n = int(r0) | ||
20 | if e1 != 0 { | ||
21 | err = errnoErr(e1) | ||
22 | } | ||
23 | return | ||
24 | } | ||
25 | |||
26 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
27 | |||
28 | func setgroups(ngid int, gid *_Gid_t) (err error) { | ||
29 | _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) | ||
30 | if e1 != 0 { | ||
31 | err = errnoErr(e1) | ||
32 | } | ||
33 | return | ||
34 | } | ||
35 | |||
36 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
37 | |||
38 | func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { | ||
39 | r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) | ||
40 | wpid = int(r0) | ||
41 | if e1 != 0 { | ||
42 | err = errnoErr(e1) | ||
43 | } | ||
44 | return | ||
45 | } | ||
46 | |||
47 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
48 | |||
49 | func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { | ||
50 | r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | ||
51 | fd = int(r0) | ||
52 | if e1 != 0 { | ||
53 | err = errnoErr(e1) | ||
54 | } | ||
55 | return | ||
56 | } | ||
57 | |||
58 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
59 | |||
60 | func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { | ||
61 | _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) | ||
62 | if e1 != 0 { | ||
63 | err = errnoErr(e1) | ||
64 | } | ||
65 | return | ||
66 | } | ||
67 | |||
68 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
69 | |||
70 | func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { | ||
71 | _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) | ||
72 | if e1 != 0 { | ||
73 | err = errnoErr(e1) | ||
74 | } | ||
75 | return | ||
76 | } | ||
77 | |||
78 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
79 | |||
80 | func socket(domain int, typ int, proto int) (fd int, err error) { | ||
81 | r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) | ||
82 | fd = int(r0) | ||
83 | if e1 != 0 { | ||
84 | err = errnoErr(e1) | ||
85 | } | ||
86 | return | ||
87 | } | ||
88 | |||
89 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
90 | |||
91 | func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { | ||
92 | _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) | ||
93 | if e1 != 0 { | ||
94 | err = errnoErr(e1) | ||
95 | } | ||
96 | return | ||
97 | } | ||
98 | |||
99 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
100 | |||
101 | func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { | ||
102 | _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) | ||
103 | if e1 != 0 { | ||
104 | err = errnoErr(e1) | ||
105 | } | ||
106 | return | ||
107 | } | ||
108 | |||
109 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
110 | |||
111 | func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { | ||
112 | _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | ||
113 | if e1 != 0 { | ||
114 | err = errnoErr(e1) | ||
115 | } | ||
116 | return | ||
117 | } | ||
118 | |||
119 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
120 | |||
121 | func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { | ||
122 | _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | ||
123 | if e1 != 0 { | ||
124 | err = errnoErr(e1) | ||
125 | } | ||
126 | return | ||
127 | } | ||
128 | |||
129 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
130 | |||
131 | func Shutdown(s int, how int) (err error) { | ||
132 | _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) | ||
133 | if e1 != 0 { | ||
134 | err = errnoErr(e1) | ||
135 | } | ||
136 | return | ||
137 | } | ||
138 | |||
139 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
140 | |||
141 | func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { | ||
142 | _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) | ||
143 | if e1 != 0 { | ||
144 | err = errnoErr(e1) | ||
145 | } | ||
146 | return | ||
147 | } | ||
148 | |||
149 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
150 | |||
151 | func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { | ||
152 | var _p0 unsafe.Pointer | ||
153 | if len(p) > 0 { | ||
154 | _p0 = unsafe.Pointer(&p[0]) | ||
155 | } else { | ||
156 | _p0 = unsafe.Pointer(&_zero) | ||
157 | } | ||
158 | r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) | ||
159 | n = int(r0) | ||
160 | if e1 != 0 { | ||
161 | err = errnoErr(e1) | ||
162 | } | ||
163 | return | ||
164 | } | ||
165 | |||
166 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
167 | |||
168 | func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { | ||
169 | var _p0 unsafe.Pointer | ||
170 | if len(buf) > 0 { | ||
171 | _p0 = unsafe.Pointer(&buf[0]) | ||
172 | } else { | ||
173 | _p0 = unsafe.Pointer(&_zero) | ||
174 | } | ||
175 | _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) | ||
176 | if e1 != 0 { | ||
177 | err = errnoErr(e1) | ||
178 | } | ||
179 | return | ||
180 | } | ||
181 | |||
182 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
183 | |||
184 | func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { | ||
185 | r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) | ||
186 | n = int(r0) | ||
187 | if e1 != 0 { | ||
188 | err = errnoErr(e1) | ||
189 | } | ||
190 | return | ||
191 | } | ||
192 | |||
193 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
194 | |||
195 | func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { | ||
196 | r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) | ||
197 | n = int(r0) | ||
198 | if e1 != 0 { | ||
199 | err = errnoErr(e1) | ||
200 | } | ||
201 | return | ||
202 | } | ||
203 | |||
204 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
205 | |||
206 | func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { | ||
207 | r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) | ||
208 | n = int(r0) | ||
209 | if e1 != 0 { | ||
210 | err = errnoErr(e1) | ||
211 | } | ||
212 | return | ||
213 | } | ||
214 | |||
215 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
216 | |||
217 | func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { | ||
218 | var _p0 unsafe.Pointer | ||
219 | if len(mib) > 0 { | ||
220 | _p0 = unsafe.Pointer(&mib[0]) | ||
221 | } else { | ||
222 | _p0 = unsafe.Pointer(&_zero) | ||
223 | } | ||
224 | _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) | ||
225 | if e1 != 0 { | ||
226 | err = errnoErr(e1) | ||
227 | } | ||
228 | return | ||
229 | } | ||
230 | |||
231 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
232 | |||
233 | func utimes(path string, timeval *[2]Timeval) (err error) { | ||
234 | var _p0 *byte | ||
235 | _p0, err = BytePtrFromString(path) | ||
236 | if err != nil { | ||
237 | return | ||
238 | } | ||
239 | _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) | ||
240 | use(unsafe.Pointer(_p0)) | ||
241 | if e1 != 0 { | ||
242 | err = errnoErr(e1) | ||
243 | } | ||
244 | return | ||
245 | } | ||
246 | |||
247 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
248 | |||
249 | func futimes(fd int, timeval *[2]Timeval) (err error) { | ||
250 | _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) | ||
251 | if e1 != 0 { | ||
252 | err = errnoErr(e1) | ||
253 | } | ||
254 | return | ||
255 | } | ||
256 | |||
257 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
258 | |||
259 | func fcntl(fd int, cmd int, arg int) (val int, err error) { | ||
260 | r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) | ||
261 | val = int(r0) | ||
262 | if e1 != 0 { | ||
263 | err = errnoErr(e1) | ||
264 | } | ||
265 | return | ||
266 | } | ||
267 | |||
268 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
269 | |||
270 | func pipe() (fd1 int, fd2 int, err error) { | ||
271 | r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) | ||
272 | fd1 = int(r0) | ||
273 | fd2 = int(r1) | ||
274 | if e1 != 0 { | ||
275 | err = errnoErr(e1) | ||
276 | } | ||
277 | return | ||
278 | } | ||
279 | |||
280 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
281 | |||
282 | func getdents(fd int, buf []byte) (n int, err error) { | ||
283 | var _p0 unsafe.Pointer | ||
284 | if len(buf) > 0 { | ||
285 | _p0 = unsafe.Pointer(&buf[0]) | ||
286 | } else { | ||
287 | _p0 = unsafe.Pointer(&_zero) | ||
288 | } | ||
289 | r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) | ||
290 | n = int(r0) | ||
291 | if e1 != 0 { | ||
292 | err = errnoErr(e1) | ||
293 | } | ||
294 | return | ||
295 | } | ||
296 | |||
297 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
298 | |||
299 | func Access(path string, mode uint32) (err error) { | ||
300 | var _p0 *byte | ||
301 | _p0, err = BytePtrFromString(path) | ||
302 | if err != nil { | ||
303 | return | ||
304 | } | ||
305 | _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | ||
306 | use(unsafe.Pointer(_p0)) | ||
307 | if e1 != 0 { | ||
308 | err = errnoErr(e1) | ||
309 | } | ||
310 | return | ||
311 | } | ||
312 | |||
313 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
314 | |||
315 | func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { | ||
316 | _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) | ||
317 | if e1 != 0 { | ||
318 | err = errnoErr(e1) | ||
319 | } | ||
320 | return | ||
321 | } | ||
322 | |||
323 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
324 | |||
325 | func Chdir(path string) (err error) { | ||
326 | var _p0 *byte | ||
327 | _p0, err = BytePtrFromString(path) | ||
328 | if err != nil { | ||
329 | return | ||
330 | } | ||
331 | _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
332 | use(unsafe.Pointer(_p0)) | ||
333 | if e1 != 0 { | ||
334 | err = errnoErr(e1) | ||
335 | } | ||
336 | return | ||
337 | } | ||
338 | |||
339 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
340 | |||
341 | func Chflags(path string, flags int) (err error) { | ||
342 | var _p0 *byte | ||
343 | _p0, err = BytePtrFromString(path) | ||
344 | if err != nil { | ||
345 | return | ||
346 | } | ||
347 | _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) | ||
348 | use(unsafe.Pointer(_p0)) | ||
349 | if e1 != 0 { | ||
350 | err = errnoErr(e1) | ||
351 | } | ||
352 | return | ||
353 | } | ||
354 | |||
355 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
356 | |||
357 | func Chmod(path string, mode uint32) (err error) { | ||
358 | var _p0 *byte | ||
359 | _p0, err = BytePtrFromString(path) | ||
360 | if err != nil { | ||
361 | return | ||
362 | } | ||
363 | _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | ||
364 | use(unsafe.Pointer(_p0)) | ||
365 | if e1 != 0 { | ||
366 | err = errnoErr(e1) | ||
367 | } | ||
368 | return | ||
369 | } | ||
370 | |||
371 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
372 | |||
373 | func Chown(path string, uid int, gid int) (err error) { | ||
374 | var _p0 *byte | ||
375 | _p0, err = BytePtrFromString(path) | ||
376 | if err != nil { | ||
377 | return | ||
378 | } | ||
379 | _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) | ||
380 | use(unsafe.Pointer(_p0)) | ||
381 | if e1 != 0 { | ||
382 | err = errnoErr(e1) | ||
383 | } | ||
384 | return | ||
385 | } | ||
386 | |||
387 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
388 | |||
389 | func Chroot(path string) (err error) { | ||
390 | var _p0 *byte | ||
391 | _p0, err = BytePtrFromString(path) | ||
392 | if err != nil { | ||
393 | return | ||
394 | } | ||
395 | _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
396 | use(unsafe.Pointer(_p0)) | ||
397 | if e1 != 0 { | ||
398 | err = errnoErr(e1) | ||
399 | } | ||
400 | return | ||
401 | } | ||
402 | |||
403 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
404 | |||
405 | func Close(fd int) (err error) { | ||
406 | _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) | ||
407 | if e1 != 0 { | ||
408 | err = errnoErr(e1) | ||
409 | } | ||
410 | return | ||
411 | } | ||
412 | |||
413 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
414 | |||
415 | func Dup(fd int) (nfd int, err error) { | ||
416 | r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) | ||
417 | nfd = int(r0) | ||
418 | if e1 != 0 { | ||
419 | err = errnoErr(e1) | ||
420 | } | ||
421 | return | ||
422 | } | ||
423 | |||
424 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
425 | |||
426 | func Dup2(from int, to int) (err error) { | ||
427 | _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) | ||
428 | if e1 != 0 { | ||
429 | err = errnoErr(e1) | ||
430 | } | ||
431 | return | ||
432 | } | ||
433 | |||
434 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
435 | |||
436 | func Exit(code int) { | ||
437 | Syscall(SYS_EXIT, uintptr(code), 0, 0) | ||
438 | return | ||
439 | } | ||
440 | |||
441 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
442 | |||
443 | func Fchdir(fd int) (err error) { | ||
444 | _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) | ||
445 | if e1 != 0 { | ||
446 | err = errnoErr(e1) | ||
447 | } | ||
448 | return | ||
449 | } | ||
450 | |||
451 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
452 | |||
453 | func Fchflags(fd int, flags int) (err error) { | ||
454 | _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) | ||
455 | if e1 != 0 { | ||
456 | err = errnoErr(e1) | ||
457 | } | ||
458 | return | ||
459 | } | ||
460 | |||
461 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
462 | |||
463 | func Fchmod(fd int, mode uint32) (err error) { | ||
464 | _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) | ||
465 | if e1 != 0 { | ||
466 | err = errnoErr(e1) | ||
467 | } | ||
468 | return | ||
469 | } | ||
470 | |||
471 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
472 | |||
473 | func Fchown(fd int, uid int, gid int) (err error) { | ||
474 | _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) | ||
475 | if e1 != 0 { | ||
476 | err = errnoErr(e1) | ||
477 | } | ||
478 | return | ||
479 | } | ||
480 | |||
481 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
482 | |||
483 | func Flock(fd int, how int) (err error) { | ||
484 | _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) | ||
485 | if e1 != 0 { | ||
486 | err = errnoErr(e1) | ||
487 | } | ||
488 | return | ||
489 | } | ||
490 | |||
491 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
492 | |||
493 | func Fpathconf(fd int, name int) (val int, err error) { | ||
494 | r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) | ||
495 | val = int(r0) | ||
496 | if e1 != 0 { | ||
497 | err = errnoErr(e1) | ||
498 | } | ||
499 | return | ||
500 | } | ||
501 | |||
502 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
503 | |||
504 | func Fstat(fd int, stat *Stat_t) (err error) { | ||
505 | _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) | ||
506 | if e1 != 0 { | ||
507 | err = errnoErr(e1) | ||
508 | } | ||
509 | return | ||
510 | } | ||
511 | |||
512 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
513 | |||
514 | func Fsync(fd int) (err error) { | ||
515 | _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) | ||
516 | if e1 != 0 { | ||
517 | err = errnoErr(e1) | ||
518 | } | ||
519 | return | ||
520 | } | ||
521 | |||
522 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
523 | |||
524 | func Ftruncate(fd int, length int64) (err error) { | ||
525 | _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length)) | ||
526 | if e1 != 0 { | ||
527 | err = errnoErr(e1) | ||
528 | } | ||
529 | return | ||
530 | } | ||
531 | |||
532 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
533 | |||
534 | func Getegid() (egid int) { | ||
535 | r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) | ||
536 | egid = int(r0) | ||
537 | return | ||
538 | } | ||
539 | |||
540 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
541 | |||
542 | func Geteuid() (uid int) { | ||
543 | r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) | ||
544 | uid = int(r0) | ||
545 | return | ||
546 | } | ||
547 | |||
548 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
549 | |||
550 | func Getgid() (gid int) { | ||
551 | r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) | ||
552 | gid = int(r0) | ||
553 | return | ||
554 | } | ||
555 | |||
556 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
557 | |||
558 | func Getpgid(pid int) (pgid int, err error) { | ||
559 | r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) | ||
560 | pgid = int(r0) | ||
561 | if e1 != 0 { | ||
562 | err = errnoErr(e1) | ||
563 | } | ||
564 | return | ||
565 | } | ||
566 | |||
567 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
568 | |||
569 | func Getpgrp() (pgrp int) { | ||
570 | r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) | ||
571 | pgrp = int(r0) | ||
572 | return | ||
573 | } | ||
574 | |||
575 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
576 | |||
577 | func Getpid() (pid int) { | ||
578 | r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) | ||
579 | pid = int(r0) | ||
580 | return | ||
581 | } | ||
582 | |||
583 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
584 | |||
585 | func Getppid() (ppid int) { | ||
586 | r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) | ||
587 | ppid = int(r0) | ||
588 | return | ||
589 | } | ||
590 | |||
591 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
592 | |||
593 | func Getpriority(which int, who int) (prio int, err error) { | ||
594 | r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) | ||
595 | prio = int(r0) | ||
596 | if e1 != 0 { | ||
597 | err = errnoErr(e1) | ||
598 | } | ||
599 | return | ||
600 | } | ||
601 | |||
602 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
603 | |||
604 | func Getrlimit(which int, lim *Rlimit) (err error) { | ||
605 | _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) | ||
606 | if e1 != 0 { | ||
607 | err = errnoErr(e1) | ||
608 | } | ||
609 | return | ||
610 | } | ||
611 | |||
612 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
613 | |||
614 | func Getrusage(who int, rusage *Rusage) (err error) { | ||
615 | _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) | ||
616 | if e1 != 0 { | ||
617 | err = errnoErr(e1) | ||
618 | } | ||
619 | return | ||
620 | } | ||
621 | |||
622 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
623 | |||
624 | func Getsid(pid int) (sid int, err error) { | ||
625 | r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) | ||
626 | sid = int(r0) | ||
627 | if e1 != 0 { | ||
628 | err = errnoErr(e1) | ||
629 | } | ||
630 | return | ||
631 | } | ||
632 | |||
633 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
634 | |||
635 | func Gettimeofday(tv *Timeval) (err error) { | ||
636 | _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) | ||
637 | if e1 != 0 { | ||
638 | err = errnoErr(e1) | ||
639 | } | ||
640 | return | ||
641 | } | ||
642 | |||
643 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
644 | |||
645 | func Getuid() (uid int) { | ||
646 | r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) | ||
647 | uid = int(r0) | ||
648 | return | ||
649 | } | ||
650 | |||
651 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
652 | |||
653 | func Issetugid() (tainted bool) { | ||
654 | r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) | ||
655 | tainted = bool(r0 != 0) | ||
656 | return | ||
657 | } | ||
658 | |||
659 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
660 | |||
661 | func Kill(pid int, signum syscall.Signal) (err error) { | ||
662 | _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) | ||
663 | if e1 != 0 { | ||
664 | err = errnoErr(e1) | ||
665 | } | ||
666 | return | ||
667 | } | ||
668 | |||
669 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
670 | |||
671 | func Kqueue() (fd int, err error) { | ||
672 | r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) | ||
673 | fd = int(r0) | ||
674 | if e1 != 0 { | ||
675 | err = errnoErr(e1) | ||
676 | } | ||
677 | return | ||
678 | } | ||
679 | |||
680 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
681 | |||
682 | func Lchown(path string, uid int, gid int) (err error) { | ||
683 | var _p0 *byte | ||
684 | _p0, err = BytePtrFromString(path) | ||
685 | if err != nil { | ||
686 | return | ||
687 | } | ||
688 | _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) | ||
689 | use(unsafe.Pointer(_p0)) | ||
690 | if e1 != 0 { | ||
691 | err = errnoErr(e1) | ||
692 | } | ||
693 | return | ||
694 | } | ||
695 | |||
696 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
697 | |||
698 | func Link(path string, link string) (err error) { | ||
699 | var _p0 *byte | ||
700 | _p0, err = BytePtrFromString(path) | ||
701 | if err != nil { | ||
702 | return | ||
703 | } | ||
704 | var _p1 *byte | ||
705 | _p1, err = BytePtrFromString(link) | ||
706 | if err != nil { | ||
707 | return | ||
708 | } | ||
709 | _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | ||
710 | use(unsafe.Pointer(_p0)) | ||
711 | use(unsafe.Pointer(_p1)) | ||
712 | if e1 != 0 { | ||
713 | err = errnoErr(e1) | ||
714 | } | ||
715 | return | ||
716 | } | ||
717 | |||
718 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
719 | |||
720 | func Listen(s int, backlog int) (err error) { | ||
721 | _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) | ||
722 | if e1 != 0 { | ||
723 | err = errnoErr(e1) | ||
724 | } | ||
725 | return | ||
726 | } | ||
727 | |||
728 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
729 | |||
730 | func Lstat(path string, stat *Stat_t) (err error) { | ||
731 | var _p0 *byte | ||
732 | _p0, err = BytePtrFromString(path) | ||
733 | if err != nil { | ||
734 | return | ||
735 | } | ||
736 | _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
737 | use(unsafe.Pointer(_p0)) | ||
738 | if e1 != 0 { | ||
739 | err = errnoErr(e1) | ||
740 | } | ||
741 | return | ||
742 | } | ||
743 | |||
744 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
745 | |||
746 | func Mkdir(path string, mode uint32) (err error) { | ||
747 | var _p0 *byte | ||
748 | _p0, err = BytePtrFromString(path) | ||
749 | if err != nil { | ||
750 | return | ||
751 | } | ||
752 | _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | ||
753 | use(unsafe.Pointer(_p0)) | ||
754 | if e1 != 0 { | ||
755 | err = errnoErr(e1) | ||
756 | } | ||
757 | return | ||
758 | } | ||
759 | |||
760 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
761 | |||
762 | func Mkfifo(path string, mode uint32) (err error) { | ||
763 | var _p0 *byte | ||
764 | _p0, err = BytePtrFromString(path) | ||
765 | if err != nil { | ||
766 | return | ||
767 | } | ||
768 | _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | ||
769 | use(unsafe.Pointer(_p0)) | ||
770 | if e1 != 0 { | ||
771 | err = errnoErr(e1) | ||
772 | } | ||
773 | return | ||
774 | } | ||
775 | |||
776 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
777 | |||
778 | func Mknod(path string, mode uint32, dev int) (err error) { | ||
779 | var _p0 *byte | ||
780 | _p0, err = BytePtrFromString(path) | ||
781 | if err != nil { | ||
782 | return | ||
783 | } | ||
784 | _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) | ||
785 | use(unsafe.Pointer(_p0)) | ||
786 | if e1 != 0 { | ||
787 | err = errnoErr(e1) | ||
788 | } | ||
789 | return | ||
790 | } | ||
791 | |||
792 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
793 | |||
794 | func Mlock(b []byte) (err error) { | ||
795 | var _p0 unsafe.Pointer | ||
796 | if len(b) > 0 { | ||
797 | _p0 = unsafe.Pointer(&b[0]) | ||
798 | } else { | ||
799 | _p0 = unsafe.Pointer(&_zero) | ||
800 | } | ||
801 | _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) | ||
802 | if e1 != 0 { | ||
803 | err = errnoErr(e1) | ||
804 | } | ||
805 | return | ||
806 | } | ||
807 | |||
808 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
809 | |||
810 | func Mlockall(flags int) (err error) { | ||
811 | _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) | ||
812 | if e1 != 0 { | ||
813 | err = errnoErr(e1) | ||
814 | } | ||
815 | return | ||
816 | } | ||
817 | |||
818 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
819 | |||
820 | func Mprotect(b []byte, prot int) (err error) { | ||
821 | var _p0 unsafe.Pointer | ||
822 | if len(b) > 0 { | ||
823 | _p0 = unsafe.Pointer(&b[0]) | ||
824 | } else { | ||
825 | _p0 = unsafe.Pointer(&_zero) | ||
826 | } | ||
827 | _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) | ||
828 | if e1 != 0 { | ||
829 | err = errnoErr(e1) | ||
830 | } | ||
831 | return | ||
832 | } | ||
833 | |||
834 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
835 | |||
836 | func Munlock(b []byte) (err error) { | ||
837 | var _p0 unsafe.Pointer | ||
838 | if len(b) > 0 { | ||
839 | _p0 = unsafe.Pointer(&b[0]) | ||
840 | } else { | ||
841 | _p0 = unsafe.Pointer(&_zero) | ||
842 | } | ||
843 | _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) | ||
844 | if e1 != 0 { | ||
845 | err = errnoErr(e1) | ||
846 | } | ||
847 | return | ||
848 | } | ||
849 | |||
850 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
851 | |||
852 | func Munlockall() (err error) { | ||
853 | _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) | ||
854 | if e1 != 0 { | ||
855 | err = errnoErr(e1) | ||
856 | } | ||
857 | return | ||
858 | } | ||
859 | |||
860 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
861 | |||
862 | func Nanosleep(time *Timespec, leftover *Timespec) (err error) { | ||
863 | _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) | ||
864 | if e1 != 0 { | ||
865 | err = errnoErr(e1) | ||
866 | } | ||
867 | return | ||
868 | } | ||
869 | |||
870 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
871 | |||
872 | func Open(path string, mode int, perm uint32) (fd int, err error) { | ||
873 | var _p0 *byte | ||
874 | _p0, err = BytePtrFromString(path) | ||
875 | if err != nil { | ||
876 | return | ||
877 | } | ||
878 | r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) | ||
879 | use(unsafe.Pointer(_p0)) | ||
880 | fd = int(r0) | ||
881 | if e1 != 0 { | ||
882 | err = errnoErr(e1) | ||
883 | } | ||
884 | return | ||
885 | } | ||
886 | |||
887 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
888 | |||
889 | func Pathconf(path string, name int) (val int, err error) { | ||
890 | var _p0 *byte | ||
891 | _p0, err = BytePtrFromString(path) | ||
892 | if err != nil { | ||
893 | return | ||
894 | } | ||
895 | r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) | ||
896 | use(unsafe.Pointer(_p0)) | ||
897 | val = int(r0) | ||
898 | if e1 != 0 { | ||
899 | err = errnoErr(e1) | ||
900 | } | ||
901 | return | ||
902 | } | ||
903 | |||
904 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
905 | |||
906 | func Pread(fd int, p []byte, offset int64) (n int, err error) { | ||
907 | var _p0 unsafe.Pointer | ||
908 | if len(p) > 0 { | ||
909 | _p0 = unsafe.Pointer(&p[0]) | ||
910 | } else { | ||
911 | _p0 = unsafe.Pointer(&_zero) | ||
912 | } | ||
913 | r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0) | ||
914 | n = int(r0) | ||
915 | if e1 != 0 { | ||
916 | err = errnoErr(e1) | ||
917 | } | ||
918 | return | ||
919 | } | ||
920 | |||
921 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
922 | |||
923 | func Pwrite(fd int, p []byte, offset int64) (n int, err error) { | ||
924 | var _p0 unsafe.Pointer | ||
925 | if len(p) > 0 { | ||
926 | _p0 = unsafe.Pointer(&p[0]) | ||
927 | } else { | ||
928 | _p0 = unsafe.Pointer(&_zero) | ||
929 | } | ||
930 | r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0) | ||
931 | n = int(r0) | ||
932 | if e1 != 0 { | ||
933 | err = errnoErr(e1) | ||
934 | } | ||
935 | return | ||
936 | } | ||
937 | |||
938 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
939 | |||
940 | func read(fd int, p []byte) (n int, err error) { | ||
941 | var _p0 unsafe.Pointer | ||
942 | if len(p) > 0 { | ||
943 | _p0 = unsafe.Pointer(&p[0]) | ||
944 | } else { | ||
945 | _p0 = unsafe.Pointer(&_zero) | ||
946 | } | ||
947 | r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) | ||
948 | n = int(r0) | ||
949 | if e1 != 0 { | ||
950 | err = errnoErr(e1) | ||
951 | } | ||
952 | return | ||
953 | } | ||
954 | |||
955 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
956 | |||
957 | func Readlink(path string, buf []byte) (n int, err error) { | ||
958 | var _p0 *byte | ||
959 | _p0, err = BytePtrFromString(path) | ||
960 | if err != nil { | ||
961 | return | ||
962 | } | ||
963 | var _p1 unsafe.Pointer | ||
964 | if len(buf) > 0 { | ||
965 | _p1 = unsafe.Pointer(&buf[0]) | ||
966 | } else { | ||
967 | _p1 = unsafe.Pointer(&_zero) | ||
968 | } | ||
969 | r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) | ||
970 | use(unsafe.Pointer(_p0)) | ||
971 | n = int(r0) | ||
972 | if e1 != 0 { | ||
973 | err = errnoErr(e1) | ||
974 | } | ||
975 | return | ||
976 | } | ||
977 | |||
978 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
979 | |||
980 | func Rename(from string, to string) (err error) { | ||
981 | var _p0 *byte | ||
982 | _p0, err = BytePtrFromString(from) | ||
983 | if err != nil { | ||
984 | return | ||
985 | } | ||
986 | var _p1 *byte | ||
987 | _p1, err = BytePtrFromString(to) | ||
988 | if err != nil { | ||
989 | return | ||
990 | } | ||
991 | _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | ||
992 | use(unsafe.Pointer(_p0)) | ||
993 | use(unsafe.Pointer(_p1)) | ||
994 | if e1 != 0 { | ||
995 | err = errnoErr(e1) | ||
996 | } | ||
997 | return | ||
998 | } | ||
999 | |||
1000 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1001 | |||
1002 | func Revoke(path string) (err error) { | ||
1003 | var _p0 *byte | ||
1004 | _p0, err = BytePtrFromString(path) | ||
1005 | if err != nil { | ||
1006 | return | ||
1007 | } | ||
1008 | _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
1009 | use(unsafe.Pointer(_p0)) | ||
1010 | if e1 != 0 { | ||
1011 | err = errnoErr(e1) | ||
1012 | } | ||
1013 | return | ||
1014 | } | ||
1015 | |||
1016 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1017 | |||
1018 | func Rmdir(path string) (err error) { | ||
1019 | var _p0 *byte | ||
1020 | _p0, err = BytePtrFromString(path) | ||
1021 | if err != nil { | ||
1022 | return | ||
1023 | } | ||
1024 | _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
1025 | use(unsafe.Pointer(_p0)) | ||
1026 | if e1 != 0 { | ||
1027 | err = errnoErr(e1) | ||
1028 | } | ||
1029 | return | ||
1030 | } | ||
1031 | |||
1032 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1033 | |||
1034 | func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { | ||
1035 | r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0) | ||
1036 | newoffset = int64(r0) | ||
1037 | if e1 != 0 { | ||
1038 | err = errnoErr(e1) | ||
1039 | } | ||
1040 | return | ||
1041 | } | ||
1042 | |||
1043 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1044 | |||
1045 | func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { | ||
1046 | _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) | ||
1047 | if e1 != 0 { | ||
1048 | err = errnoErr(e1) | ||
1049 | } | ||
1050 | return | ||
1051 | } | ||
1052 | |||
1053 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1054 | |||
1055 | func Setegid(egid int) (err error) { | ||
1056 | _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) | ||
1057 | if e1 != 0 { | ||
1058 | err = errnoErr(e1) | ||
1059 | } | ||
1060 | return | ||
1061 | } | ||
1062 | |||
1063 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1064 | |||
1065 | func Seteuid(euid int) (err error) { | ||
1066 | _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) | ||
1067 | if e1 != 0 { | ||
1068 | err = errnoErr(e1) | ||
1069 | } | ||
1070 | return | ||
1071 | } | ||
1072 | |||
1073 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1074 | |||
1075 | func Setgid(gid int) (err error) { | ||
1076 | _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) | ||
1077 | if e1 != 0 { | ||
1078 | err = errnoErr(e1) | ||
1079 | } | ||
1080 | return | ||
1081 | } | ||
1082 | |||
1083 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1084 | |||
1085 | func Setpgid(pid int, pgid int) (err error) { | ||
1086 | _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) | ||
1087 | if e1 != 0 { | ||
1088 | err = errnoErr(e1) | ||
1089 | } | ||
1090 | return | ||
1091 | } | ||
1092 | |||
1093 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1094 | |||
1095 | func Setpriority(which int, who int, prio int) (err error) { | ||
1096 | _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) | ||
1097 | if e1 != 0 { | ||
1098 | err = errnoErr(e1) | ||
1099 | } | ||
1100 | return | ||
1101 | } | ||
1102 | |||
1103 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1104 | |||
1105 | func Setregid(rgid int, egid int) (err error) { | ||
1106 | _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) | ||
1107 | if e1 != 0 { | ||
1108 | err = errnoErr(e1) | ||
1109 | } | ||
1110 | return | ||
1111 | } | ||
1112 | |||
1113 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1114 | |||
1115 | func Setreuid(ruid int, euid int) (err error) { | ||
1116 | _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) | ||
1117 | if e1 != 0 { | ||
1118 | err = errnoErr(e1) | ||
1119 | } | ||
1120 | return | ||
1121 | } | ||
1122 | |||
1123 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1124 | |||
1125 | func Setrlimit(which int, lim *Rlimit) (err error) { | ||
1126 | _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) | ||
1127 | if e1 != 0 { | ||
1128 | err = errnoErr(e1) | ||
1129 | } | ||
1130 | return | ||
1131 | } | ||
1132 | |||
1133 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1134 | |||
1135 | func Setsid() (pid int, err error) { | ||
1136 | r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) | ||
1137 | pid = int(r0) | ||
1138 | if e1 != 0 { | ||
1139 | err = errnoErr(e1) | ||
1140 | } | ||
1141 | return | ||
1142 | } | ||
1143 | |||
1144 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1145 | |||
1146 | func Settimeofday(tp *Timeval) (err error) { | ||
1147 | _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) | ||
1148 | if e1 != 0 { | ||
1149 | err = errnoErr(e1) | ||
1150 | } | ||
1151 | return | ||
1152 | } | ||
1153 | |||
1154 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1155 | |||
1156 | func Setuid(uid int) (err error) { | ||
1157 | _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) | ||
1158 | if e1 != 0 { | ||
1159 | err = errnoErr(e1) | ||
1160 | } | ||
1161 | return | ||
1162 | } | ||
1163 | |||
1164 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1165 | |||
1166 | func Stat(path string, stat *Stat_t) (err error) { | ||
1167 | var _p0 *byte | ||
1168 | _p0, err = BytePtrFromString(path) | ||
1169 | if err != nil { | ||
1170 | return | ||
1171 | } | ||
1172 | _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
1173 | use(unsafe.Pointer(_p0)) | ||
1174 | if e1 != 0 { | ||
1175 | err = errnoErr(e1) | ||
1176 | } | ||
1177 | return | ||
1178 | } | ||
1179 | |||
1180 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1181 | |||
1182 | func Symlink(path string, link string) (err error) { | ||
1183 | var _p0 *byte | ||
1184 | _p0, err = BytePtrFromString(path) | ||
1185 | if err != nil { | ||
1186 | return | ||
1187 | } | ||
1188 | var _p1 *byte | ||
1189 | _p1, err = BytePtrFromString(link) | ||
1190 | if err != nil { | ||
1191 | return | ||
1192 | } | ||
1193 | _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | ||
1194 | use(unsafe.Pointer(_p0)) | ||
1195 | use(unsafe.Pointer(_p1)) | ||
1196 | if e1 != 0 { | ||
1197 | err = errnoErr(e1) | ||
1198 | } | ||
1199 | return | ||
1200 | } | ||
1201 | |||
1202 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1203 | |||
1204 | func Sync() (err error) { | ||
1205 | _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) | ||
1206 | if e1 != 0 { | ||
1207 | err = errnoErr(e1) | ||
1208 | } | ||
1209 | return | ||
1210 | } | ||
1211 | |||
1212 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1213 | |||
1214 | func Truncate(path string, length int64) (err error) { | ||
1215 | var _p0 *byte | ||
1216 | _p0, err = BytePtrFromString(path) | ||
1217 | if err != nil { | ||
1218 | return | ||
1219 | } | ||
1220 | _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length)) | ||
1221 | use(unsafe.Pointer(_p0)) | ||
1222 | if e1 != 0 { | ||
1223 | err = errnoErr(e1) | ||
1224 | } | ||
1225 | return | ||
1226 | } | ||
1227 | |||
1228 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1229 | |||
1230 | func Umask(newmask int) (oldmask int) { | ||
1231 | r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) | ||
1232 | oldmask = int(r0) | ||
1233 | return | ||
1234 | } | ||
1235 | |||
1236 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1237 | |||
1238 | func Unlink(path string) (err error) { | ||
1239 | var _p0 *byte | ||
1240 | _p0, err = BytePtrFromString(path) | ||
1241 | if err != nil { | ||
1242 | return | ||
1243 | } | ||
1244 | _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
1245 | use(unsafe.Pointer(_p0)) | ||
1246 | if e1 != 0 { | ||
1247 | err = errnoErr(e1) | ||
1248 | } | ||
1249 | return | ||
1250 | } | ||
1251 | |||
1252 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1253 | |||
1254 | func Unmount(path string, flags int) (err error) { | ||
1255 | var _p0 *byte | ||
1256 | _p0, err = BytePtrFromString(path) | ||
1257 | if err != nil { | ||
1258 | return | ||
1259 | } | ||
1260 | _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) | ||
1261 | use(unsafe.Pointer(_p0)) | ||
1262 | if e1 != 0 { | ||
1263 | err = errnoErr(e1) | ||
1264 | } | ||
1265 | return | ||
1266 | } | ||
1267 | |||
1268 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1269 | |||
1270 | func write(fd int, p []byte) (n int, err error) { | ||
1271 | var _p0 unsafe.Pointer | ||
1272 | if len(p) > 0 { | ||
1273 | _p0 = unsafe.Pointer(&p[0]) | ||
1274 | } else { | ||
1275 | _p0 = unsafe.Pointer(&_zero) | ||
1276 | } | ||
1277 | r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) | ||
1278 | n = int(r0) | ||
1279 | if e1 != 0 { | ||
1280 | err = errnoErr(e1) | ||
1281 | } | ||
1282 | return | ||
1283 | } | ||
1284 | |||
1285 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1286 | |||
1287 | func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { | ||
1288 | r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0) | ||
1289 | ret = uintptr(r0) | ||
1290 | if e1 != 0 { | ||
1291 | err = errnoErr(e1) | ||
1292 | } | ||
1293 | return | ||
1294 | } | ||
1295 | |||
1296 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1297 | |||
1298 | func munmap(addr uintptr, length uintptr) (err error) { | ||
1299 | _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) | ||
1300 | if e1 != 0 { | ||
1301 | err = errnoErr(e1) | ||
1302 | } | ||
1303 | return | ||
1304 | } | ||
1305 | |||
1306 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1307 | |||
1308 | func readlen(fd int, buf *byte, nbuf int) (n int, err error) { | ||
1309 | r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) | ||
1310 | n = int(r0) | ||
1311 | if e1 != 0 { | ||
1312 | err = errnoErr(e1) | ||
1313 | } | ||
1314 | return | ||
1315 | } | ||
1316 | |||
1317 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1318 | |||
1319 | func writelen(fd int, buf *byte, nbuf int) (n int, err error) { | ||
1320 | r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) | ||
1321 | n = int(r0) | ||
1322 | if e1 != 0 { | ||
1323 | err = errnoErr(e1) | ||
1324 | } | ||
1325 | return | ||
1326 | } | ||