blob: 10090504c88b74517f28bd0f7322413794f09af8 [file] [log] [blame] [edit]
// Copyright 2016 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.
package syscall
import "internal/itoa"
const (
S_ISUID = 0
S_ISGID = 0
S_ISVTX = 0
)
type Errno uintptr
func (e Errno) Error() string {
return "errno(" + itoa.Itoa(int(e)) + ")"
}
type Timespec struct {
Sec int64
Nsec int64
}
type Timeval struct {
Sec int64
Usec int64
}
func setTimespec(sec, nsec int64) Timespec {
return Timespec{Sec: sec, Nsec: nsec}
}
func setTimeval(sec, usec int64) Timeval {
return Timeval{Sec: sec, Usec: usec}
}