diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go')
| -rw-r--r-- | vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go new file mode 100644 index 0000000..b57c705 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go | |||
| @@ -0,0 +1,102 @@ | |||
| 1 | // go run mksyscall_solaris.go -illumos -tags illumos,amd64 syscall_illumos.go | ||
| 2 | // Code generated by the command above; see README.md. DO NOT EDIT. | ||
| 3 | |||
| 4 | //go:build illumos && amd64 | ||
| 5 | // +build illumos,amd64 | ||
| 6 | |||
| 7 | package unix | ||
| 8 | |||
| 9 | import ( | ||
| 10 | "unsafe" | ||
| 11 | ) | ||
| 12 | |||
| 13 | //go:cgo_import_dynamic libc_readv readv "libc.so" | ||
| 14 | //go:cgo_import_dynamic libc_preadv preadv "libc.so" | ||
| 15 | //go:cgo_import_dynamic libc_writev writev "libc.so" | ||
| 16 | //go:cgo_import_dynamic libc_pwritev pwritev "libc.so" | ||
| 17 | //go:cgo_import_dynamic libc_accept4 accept4 "libsocket.so" | ||
| 18 | |||
| 19 | //go:linkname procreadv libc_readv | ||
| 20 | //go:linkname procpreadv libc_preadv | ||
| 21 | //go:linkname procwritev libc_writev | ||
| 22 | //go:linkname procpwritev libc_pwritev | ||
| 23 | //go:linkname procaccept4 libc_accept4 | ||
| 24 | |||
| 25 | var ( | ||
| 26 | procreadv, | ||
| 27 | procpreadv, | ||
| 28 | procwritev, | ||
| 29 | procpwritev, | ||
| 30 | procaccept4 syscallFunc | ||
| 31 | ) | ||
| 32 | |||
| 33 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
| 34 | |||
| 35 | func readv(fd int, iovs []Iovec) (n int, err error) { | ||
| 36 | var _p0 *Iovec | ||
| 37 | if len(iovs) > 0 { | ||
| 38 | _p0 = &iovs[0] | ||
| 39 | } | ||
| 40 | r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procreadv)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0) | ||
| 41 | n = int(r0) | ||
| 42 | if e1 != 0 { | ||
| 43 | err = e1 | ||
| 44 | } | ||
| 45 | return | ||
| 46 | } | ||
| 47 | |||
| 48 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
| 49 | |||
| 50 | func preadv(fd int, iovs []Iovec, off int64) (n int, err error) { | ||
| 51 | var _p0 *Iovec | ||
| 52 | if len(iovs) > 0 { | ||
| 53 | _p0 = &iovs[0] | ||
| 54 | } | ||
| 55 | r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpreadv)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0) | ||
| 56 | n = int(r0) | ||
| 57 | if e1 != 0 { | ||
| 58 | err = e1 | ||
| 59 | } | ||
| 60 | return | ||
| 61 | } | ||
| 62 | |||
| 63 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
| 64 | |||
| 65 | func writev(fd int, iovs []Iovec) (n int, err error) { | ||
| 66 | var _p0 *Iovec | ||
| 67 | if len(iovs) > 0 { | ||
| 68 | _p0 = &iovs[0] | ||
| 69 | } | ||
| 70 | r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwritev)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0) | ||
| 71 | n = int(r0) | ||
| 72 | if e1 != 0 { | ||
| 73 | err = e1 | ||
| 74 | } | ||
| 75 | return | ||
| 76 | } | ||
| 77 | |||
| 78 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
| 79 | |||
| 80 | func pwritev(fd int, iovs []Iovec, off int64) (n int, err error) { | ||
| 81 | var _p0 *Iovec | ||
| 82 | if len(iovs) > 0 { | ||
| 83 | _p0 = &iovs[0] | ||
| 84 | } | ||
| 85 | r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpwritev)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0) | ||
| 86 | n = int(r0) | ||
| 87 | if e1 != 0 { | ||
| 88 | err = e1 | ||
| 89 | } | ||
| 90 | return | ||
| 91 | } | ||
| 92 | |||
| 93 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
| 94 | |||
| 95 | func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { | ||
| 96 | r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept4)), 4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) | ||
| 97 | fd = int(r0) | ||
| 98 | if e1 != 0 { | ||
| 99 | err = e1 | ||
| 100 | } | ||
| 101 | return | ||
| 102 | } | ||
