author | Mikael Berthe <mikael@lilotux.net> |
Sat, 04 Feb 2023 12:58:35 +0100 | |
changeset 265 | 05c40b36d3b2 |
parent 256 | 6d9efbef00a9 |
permissions | -rw-r--r-- |
256 | 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, |
|
265
05c40b36d3b2
Bump to version 3.0.0-dev, using madon v3
Mikael Berthe <mikael@lilotux.net>
parents:
256
diff
changeset
|
30 |
procaccept4 syscallFunc |
256 | 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 |
} |