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.
4 // +build illumos,amd64
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 //go:cgo_import_dynamic libc_accept4 accept4 "libsocket.so"
18 //go:linkname procreadv libc_readv
19 //go:linkname procpreadv libc_preadv
20 //go:linkname procwritev libc_writev
21 //go:linkname procpwritev libc_pwritev
22 //go:linkname procaccept4 libc_accept4
29 procaccept4 syscallFunc
32 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
34 func readv(fd int, iovs []Iovec) (n int, err error) {
39 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procreadv)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0)
47 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
49 func preadv(fd int, iovs []Iovec, off int64) (n int, err error) {
54 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpreadv)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0)
62 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
64 func writev(fd int, iovs []Iovec) (n int, err error) {
69 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwritev)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0)
77 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
79 func pwritev(fd int, iovs []Iovec, off int64) (n int, err error) {
84 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpwritev)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0)
92 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
94 func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
95 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept4)), 4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)