diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go index 27878a7..8facd69 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go | |||
@@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne | |||
214 | 214 | ||
215 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 215 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
216 | 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) { | 217 | func utimes(path string, timeval *[2]Timeval) (err error) { |
234 | var _p0 *byte | 218 | var _p0 *byte |
235 | _p0, err = BytePtrFromString(path) | 219 | _p0, err = BytePtrFromString(path) |
@@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { | |||
255 | 239 | ||
256 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 240 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
257 | 241 | ||
258 | func fcntl(fd int, cmd int, arg int) (val int, err error) { | ||
259 | r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) | ||
260 | val = int(r0) | ||
261 | if e1 != 0 { | ||
262 | err = errnoErr(e1) | ||
263 | } | ||
264 | return | ||
265 | } | ||
266 | |||
267 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
268 | |||
269 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | 242 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { |
270 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) | 243 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) |
271 | n = int(r0) | 244 | n = int(r0) |
@@ -377,8 +350,8 @@ func Munlockall() (err error) { | |||
377 | 350 | ||
378 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 351 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
379 | 352 | ||
380 | func pipe(p *[2]_C_int) (err error) { | 353 | func pipe2(p *[2]_C_int, flags int) (err error) { |
381 | _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) | 354 | _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) |
382 | if e1 != 0 { | 355 | if e1 != 0 { |
383 | err = errnoErr(e1) | 356 | err = errnoErr(e1) |
384 | } | 357 | } |
@@ -431,6 +404,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { | |||
431 | 404 | ||
432 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 405 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
433 | 406 | ||
407 | func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { | ||
408 | var _p0 unsafe.Pointer | ||
409 | if len(mib) > 0 { | ||
410 | _p0 = unsafe.Pointer(&mib[0]) | ||
411 | } else { | ||
412 | _p0 = unsafe.Pointer(&_zero) | ||
413 | } | ||
414 | _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) | ||
415 | if e1 != 0 { | ||
416 | err = errnoErr(e1) | ||
417 | } | ||
418 | return | ||
419 | } | ||
420 | |||
421 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
422 | |||
434 | func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | 423 | func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { |
435 | r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) | 424 | r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) |
436 | n = int(r0) | 425 | n = int(r0) |
@@ -573,6 +562,16 @@ func Dup2(from int, to int) (err error) { | |||
573 | 562 | ||
574 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 563 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
575 | 564 | ||
565 | func Dup3(from int, to int, flags int) (err error) { | ||
566 | _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) | ||
567 | if e1 != 0 { | ||
568 | err = errnoErr(e1) | ||
569 | } | ||
570 | return | ||
571 | } | ||
572 | |||
573 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
574 | |||
576 | func Exit(code int) { | 575 | func Exit(code int) { |
577 | Syscall(SYS_EXIT, uintptr(code), 0, 0) | 576 | Syscall(SYS_EXIT, uintptr(code), 0, 0) |
578 | return | 577 | return |
@@ -1304,8 +1303,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { | |||
1304 | 1303 | ||
1305 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1304 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1306 | 1305 | ||
1307 | func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { | 1306 | func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { |
1308 | _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) | 1307 | r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) |
1308 | n = int(r0) | ||
1309 | if e1 != 0 { | 1309 | if e1 != 0 { |
1310 | err = errnoErr(e1) | 1310 | err = errnoErr(e1) |
1311 | } | 1311 | } |