1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-29 06:35:53 +00:00
gitea/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go

29 lines
617 B
Go
Raw Normal View History

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
2021-02-28 23:08:33 +00:00
//go:build amd64 && solaris
// +build amd64,solaris
package unix
2018-10-26 23:18:40 +00:00
func setTimespec(sec, nsec int64) Timespec {
return Timespec{Sec: sec, Nsec: nsec}
}
2018-10-26 23:18:40 +00:00
func setTimeval(sec, usec int64) Timeval {
return Timeval{Sec: sec, Usec: usec}
}
func (iov *Iovec) SetLen(length int) {
iov.Len = uint64(length)
}
func (msghdr *Msghdr) SetIovlen(length int) {
msghdr.Iovlen = int32(length)
}
func (cmsg *Cmsghdr) SetLen(length int) {
cmsg.Len = uint32(length)
}