Update module golang.org/x/sys to v0.21.0

This commit is contained in:
Renovate Bot
2024-06-04 16:16:33 +00:00
parent 4a86315749
commit b2b6c22cc8
342 changed files with 57598 additions and 20035 deletions

View File

@@ -3,13 +3,12 @@
// license that can be found in the LICENSE file.
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
package unix
import "time"
// TimespecToNSec returns the time stored in ts as nanoseconds.
// TimespecToNsec returns the time stored in ts as nanoseconds.
func TimespecToNsec(ts Timespec) int64 { return ts.Nano() }
// NsecToTimespec converts a number of nanoseconds into a Timespec.