diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go | 71 |
1 files changed, 31 insertions, 40 deletions
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go index f8caece..cea04e0 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go | |||
@@ -1,4 +1,4 @@ | |||
1 | // go run mksyscall.go -l32 -tags darwin,arm,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm.go | 1 | // go run mksyscall.go -l32 -tags darwin,arm,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm.1_11.go syscall_darwin_arm.go |
2 | // Code generated by the command above; see README.md. DO NOT EDIT. | 2 | // Code generated by the command above; see README.md. DO NOT EDIT. |
3 | 3 | ||
4 | // +build darwin,arm,!go1.12 | 4 | // +build darwin,arm,!go1.12 |
@@ -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,16 +350,6 @@ 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 ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { | ||
381 | _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) | ||
382 | if e1 != 0 { | ||
383 | err = errnoErr(e1) | ||
384 | } | ||
385 | return | ||
386 | } | ||
387 | |||
388 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
389 | |||
390 | func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { | 353 | func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { |
391 | _, _, e1 := Syscall6(SYS_GETATTRLIST, uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) | 354 | _, _, e1 := Syscall6(SYS_GETATTRLIST, uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) |
392 | if e1 != 0 { | 355 | if e1 != 0 { |
@@ -553,6 +516,17 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp | |||
553 | 516 | ||
554 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 517 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
555 | 518 | ||
519 | func fcntl(fd int, cmd int, arg int) (val int, err error) { | ||
520 | r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) | ||
521 | val = int(r0) | ||
522 | if e1 != 0 { | ||
523 | err = errnoErr(e1) | ||
524 | } | ||
525 | return | ||
526 | } | ||
527 | |||
528 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
529 | |||
556 | func kill(pid int, signum int, posix int) (err error) { | 530 | func kill(pid int, signum int, posix int) (err error) { |
557 | _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) | 531 | _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) |
558 | if e1 != 0 { | 532 | if e1 != 0 { |
@@ -573,6 +547,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { | |||
573 | 547 | ||
574 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 548 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
575 | 549 | ||
550 | func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { | ||
551 | var _p0 unsafe.Pointer | ||
552 | if len(mib) > 0 { | ||
553 | _p0 = unsafe.Pointer(&mib[0]) | ||
554 | } else { | ||
555 | _p0 = unsafe.Pointer(&_zero) | ||
556 | } | ||
557 | _, _, e1 := Syscall6(SYS_SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) | ||
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 | |||
576 | func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { | 566 | func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { |
577 | _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(offset>>32), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags), 0, 0) | 567 | _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(offset>>32), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags), 0, 0) |
578 | if e1 != 0 { | 568 | if e1 != 0 { |
@@ -1352,8 +1342,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { | |||
1352 | 1342 | ||
1353 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1343 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1354 | 1344 | ||
1355 | func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { | 1345 | func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { |
1356 | _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) | 1346 | r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) |
1347 | n = int(r0) | ||
1357 | if e1 != 0 { | 1348 | if e1 != 0 { |
1358 | err = errnoErr(e1) | 1349 | err = errnoErr(e1) |
1359 | } | 1350 | } |