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// +build illumos,amd64 5 6package unix 7 8import ( 9 "unsafe" 10) 11 12//go:cgo_import_dynamic libc_readv readv "libc.so" 13//go:cgo_import_dynamic libc_preadv preadv "libc.so" 14//go:cgo_import_dynamic libc_writev writev "libc.so" 15//go:cgo_import_dynamic libc_pwritev pwritev "libc.so" 16 17//go:linkname procreadv libc_readv 18//go:linkname procpreadv libc_preadv 19//go:linkname procwritev libc_writev 20//go:linkname procpwritev libc_pwritev 21 22var ( 23 procreadv, 24 procpreadv, 25 procwritev, 26 procpwritev syscallFunc 27) 28 29// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 30 31func readv(fd int, iovs []Iovec) (n int, err error) { 32 var _p0 *Iovec 33 if len(iovs) > 0 { 34 _p0 = &iovs[0] 35 } 36 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procreadv)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0) 37 n = int(r0) 38 if e1 != 0 { 39 err = e1 40 } 41 return 42} 43 44// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 45 46func preadv(fd int, iovs []Iovec, off int64) (n int, err error) { 47 var _p0 *Iovec 48 if len(iovs) > 0 { 49 _p0 = &iovs[0] 50 } 51 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpreadv)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0) 52 n = int(r0) 53 if e1 != 0 { 54 err = e1 55 } 56 return 57} 58 59// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 60 61func writev(fd int, iovs []Iovec) (n int, err error) { 62 var _p0 *Iovec 63 if len(iovs) > 0 { 64 _p0 = &iovs[0] 65 } 66 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwritev)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0) 67 n = int(r0) 68 if e1 != 0 { 69 err = e1 70 } 71 return 72} 73 74// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 75 76func pwritev(fd int, iovs []Iovec, off int64) (n int, err error) { 77 var _p0 *Iovec 78 if len(iovs) > 0 { 79 _p0 = &iovs[0] 80 } 81 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpwritev)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0) 82 n = int(r0) 83 if e1 != 0 { 84 err = e1 85 } 86 return 87} 88