diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go | 83 |
1 files changed, 54 insertions, 29 deletions
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go index cf5bf3d..1153fe6 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.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) |
@@ -433,6 +406,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { | |||
433 | 406 | ||
434 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 407 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
435 | 408 | ||
409 | func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { | ||
410 | var _p0 unsafe.Pointer | ||
411 | if len(mib) > 0 { | ||
412 | _p0 = unsafe.Pointer(&mib[0]) | ||
413 | } else { | ||
414 | _p0 = unsafe.Pointer(&_zero) | ||
415 | } | ||
416 | _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) | ||
417 | if e1 != 0 { | ||
418 | err = errnoErr(e1) | ||
419 | } | ||
420 | return | ||
421 | } | ||
422 | |||
423 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
424 | |||
436 | func Access(path string, mode uint32) (err error) { | 425 | func Access(path string, mode uint32) (err error) { |
437 | var _p0 *byte | 426 | var _p0 *byte |
438 | _p0, err = BytePtrFromString(path) | 427 | _p0, err = BytePtrFromString(path) |
@@ -564,6 +553,16 @@ func Dup2(from int, to int) (err error) { | |||
564 | 553 | ||
565 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 554 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
566 | 555 | ||
556 | func Dup3(from int, to int, flags int) (err error) { | ||
557 | _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) | ||
558 | if e1 != 0 { | ||
559 | err = errnoErr(e1) | ||
560 | } | ||
561 | return | ||
562 | } | ||
563 | |||
564 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
565 | |||
567 | func Exit(code int) { | 566 | func Exit(code int) { |
568 | Syscall(SYS_EXIT, uintptr(code), 0, 0) | 567 | Syscall(SYS_EXIT, uintptr(code), 0, 0) |
569 | return | 568 | return |
@@ -926,6 +925,16 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { | |||
926 | 925 | ||
927 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 926 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
928 | 927 | ||
928 | func Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) { | ||
929 | _, _, e1 := Syscall(SYS_FSTATVFS1, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(flags)) | ||
930 | if e1 != 0 { | ||
931 | err = errnoErr(e1) | ||
932 | } | ||
933 | return | ||
934 | } | ||
935 | |||
936 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
937 | |||
929 | func Fsync(fd int) (err error) { | 938 | func Fsync(fd int) (err error) { |
930 | _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) | 939 | _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) |
931 | if e1 != 0 { | 940 | if e1 != 0 { |
@@ -1498,8 +1507,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { | |||
1498 | 1507 | ||
1499 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1508 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1500 | 1509 | ||
1501 | func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { | 1510 | func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { |
1502 | _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) | 1511 | r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) |
1512 | n = int(r0) | ||
1503 | if e1 != 0 { | 1513 | if e1 != 0 { |
1504 | err = errnoErr(e1) | 1514 | err = errnoErr(e1) |
1505 | } | 1515 | } |
@@ -1634,6 +1644,21 @@ func Stat(path string, stat *Stat_t) (err error) { | |||
1634 | 1644 | ||
1635 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1645 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1636 | 1646 | ||
1647 | func Statvfs1(path string, buf *Statvfs_t, flags int) (err error) { | ||
1648 | var _p0 *byte | ||
1649 | _p0, err = BytePtrFromString(path) | ||
1650 | if err != nil { | ||
1651 | return | ||
1652 | } | ||
1653 | _, _, e1 := Syscall(SYS_STATVFS1, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), uintptr(flags)) | ||
1654 | if e1 != 0 { | ||
1655 | err = errnoErr(e1) | ||
1656 | } | ||
1657 | return | ||
1658 | } | ||
1659 | |||
1660 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1661 | |||
1637 | func Symlink(path string, link string) (err error) { | 1662 | func Symlink(path string, link string) (err error) { |
1638 | var _p0 *byte | 1663 | var _p0 *byte |
1639 | _p0, err = BytePtrFromString(path) | 1664 | _p0, err = BytePtrFromString(path) |