mirror of
https://gitea.com/Sirherobrine23/tea.git
synced 2024-08-21 16:47:25 +00:00
update go min version Update Vendors: * code.gitea.io/gitea-vet v0.2.0 -> v0.2.1 * code.gitea.io/sdk/gitea v0.13.0 -> v0.13.1 * github.com/AlecAivazis/survey v2.1.1 -> v2.2.2 * github.com/adrg/xdg v0.2.1 -> v0.2.2 * github.com/araddon/dateparse d820a6159ab1 -> 8aadafed4dc4 * github.com/go-git/go-git v5.1.0 -> v5.2.0 * github.com/muesli/termenv v0.7.2 -> v0.7.4 * github.com/stretchr/testify v1.5.1 -> v1.6.1 * github.com/urfave/cli v2.2.0 -> v2.3.0 Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/250 Reviewed-by: Andrew Thornton <art27@cantab.net> Reviewed-by: mrsdizzie <info@mrsdizzie.com> Co-Authored-By: 6543 <6543@noreply.gitea.io> Co-Committed-By: 6543 <6543@noreply.gitea.io>
115 lines
2.9 KiB
Go
115 lines
2.9 KiB
Go
// go run mksyscall_solaris.go -illumos -tags illumos,amd64 syscall_illumos.go
|
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
|
|
// +build illumos,amd64
|
|
|
|
package unix
|
|
|
|
import (
|
|
"unsafe"
|
|
)
|
|
|
|
//go:cgo_import_dynamic libc_readv readv "libc.so"
|
|
//go:cgo_import_dynamic libc_preadv preadv "libc.so"
|
|
//go:cgo_import_dynamic libc_writev writev "libc.so"
|
|
//go:cgo_import_dynamic libc_pwritev pwritev "libc.so"
|
|
//go:cgo_import_dynamic libc_accept4 accept4 "libsocket.so"
|
|
//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so"
|
|
|
|
//go:linkname procreadv libc_readv
|
|
//go:linkname procpreadv libc_preadv
|
|
//go:linkname procwritev libc_writev
|
|
//go:linkname procpwritev libc_pwritev
|
|
//go:linkname procaccept4 libc_accept4
|
|
//go:linkname procpipe2 libc_pipe2
|
|
|
|
var (
|
|
procreadv,
|
|
procpreadv,
|
|
procwritev,
|
|
procpwritev,
|
|
procaccept4,
|
|
procpipe2 syscallFunc
|
|
)
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
func readv(fd int, iovs []Iovec) (n int, err error) {
|
|
var _p0 *Iovec
|
|
if len(iovs) > 0 {
|
|
_p0 = &iovs[0]
|
|
}
|
|
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procreadv)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0)
|
|
n = int(r0)
|
|
if e1 != 0 {
|
|
err = e1
|
|
}
|
|
return
|
|
}
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
func preadv(fd int, iovs []Iovec, off int64) (n int, err error) {
|
|
var _p0 *Iovec
|
|
if len(iovs) > 0 {
|
|
_p0 = &iovs[0]
|
|
}
|
|
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpreadv)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0)
|
|
n = int(r0)
|
|
if e1 != 0 {
|
|
err = e1
|
|
}
|
|
return
|
|
}
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
func writev(fd int, iovs []Iovec) (n int, err error) {
|
|
var _p0 *Iovec
|
|
if len(iovs) > 0 {
|
|
_p0 = &iovs[0]
|
|
}
|
|
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwritev)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0)
|
|
n = int(r0)
|
|
if e1 != 0 {
|
|
err = e1
|
|
}
|
|
return
|
|
}
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
func pwritev(fd int, iovs []Iovec, off int64) (n int, err error) {
|
|
var _p0 *Iovec
|
|
if len(iovs) > 0 {
|
|
_p0 = &iovs[0]
|
|
}
|
|
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpwritev)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0)
|
|
n = int(r0)
|
|
if e1 != 0 {
|
|
err = e1
|
|
}
|
|
return
|
|
}
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
|
|
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept4)), 4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
|
|
fd = int(r0)
|
|
if e1 != 0 {
|
|
err = e1
|
|
}
|
|
return
|
|
}
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
func pipe2(p *[2]_C_int, flags int) (err error) {
|
|
_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procpipe2)), 2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0, 0, 0, 0)
|
|
if e1 != 0 {
|
|
err = e1
|
|
}
|
|
return
|
|
}
|