all repos

rss-tools @ master

get rss feed from sources that(i need and) dont provide one

rss-tools/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
we're vendoring now, 7 days ago
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
6
package unix
7
8
import (
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
//go:cgo_import_dynamic libc_accept4 accept4 "libsocket.so"
17
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
23
24
var (
25
	procreadv,
26
	procpreadv,
27
	procwritev,
28
	procpwritev,
29
	procaccept4 syscallFunc
30
)
31
32
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
33
34
func readv(fd int, iovs []Iovec) (n int, err error) {
35
	var _p0 *Iovec
36
	if len(iovs) > 0 {
37
		_p0 = &iovs[0]
38
	}
39
	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procreadv)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0)
40
	n = int(r0)
41
	if e1 != 0 {
42
		err = errnoErr(e1)
43
	}
44
	return
45
}
46
47
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48
49
func preadv(fd int, iovs []Iovec, off int64) (n int, err error) {
50
	var _p0 *Iovec
51
	if len(iovs) > 0 {
52
		_p0 = &iovs[0]
53
	}
54
	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpreadv)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0)
55
	n = int(r0)
56
	if e1 != 0 {
57
		err = errnoErr(e1)
58
	}
59
	return
60
}
61
62
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
63
64
func writev(fd int, iovs []Iovec) (n int, err error) {
65
	var _p0 *Iovec
66
	if len(iovs) > 0 {
67
		_p0 = &iovs[0]
68
	}
69
	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwritev)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0)
70
	n = int(r0)
71
	if e1 != 0 {
72
		err = errnoErr(e1)
73
	}
74
	return
75
}
76
77
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
78
79
func pwritev(fd int, iovs []Iovec, off int64) (n int, err error) {
80
	var _p0 *Iovec
81
	if len(iovs) > 0 {
82
		_p0 = &iovs[0]
83
	}
84
	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpwritev)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0)
85
	n = int(r0)
86
	if e1 != 0 {
87
		err = errnoErr(e1)
88
	}
89
	return
90
}
91
92
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
93
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)
96
	fd = int(r0)
97
	if e1 != 0 {
98
		err = errnoErr(e1)
99
	}
100
	return
101
}