1
0
mirror of https://github.com/beego/bee.git synced 2024-06-30 06:54:14 +00:00
bee/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go

24 lines
509 B
Go
Raw Normal View History

2016-12-20 09:02:58 +00:00
// 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.
// +build amd64,solaris
package unix
2018-10-13 13:45:53 +00:00
func setTimespec(sec, nsec int64) Timespec {
return Timespec{Sec: sec, Nsec: nsec}
2016-12-20 09:02:58 +00:00
}
2018-10-13 13:45:53 +00:00
func setTimeval(sec, usec int64) Timeval {
return Timeval{Sec: sec, Usec: usec}
2016-12-20 09:02:58 +00:00
}
func (iov *Iovec) SetLen(length int) {
iov.Len = uint64(length)
}
func (cmsg *Cmsghdr) SetLen(length int) {
cmsg.Len = uint32(length)
}