Source File
futimens.go
Belonging Package
github.com/tetratelabs/wazero/internal/sysfs
//go:build (linux || darwin) && !tinygopackage sysfsimport ()func timesToPtr( *[2]syscall.Timespec) unsafe.Pointer { //nolint:unusedif != nil {return unsafe.Pointer(&[0])}return unsafe.Pointer(nil)}func timesToTimespecs( int64, int64) ( *[2]syscall.Timespec) {// When both inputs are omitted, there is nothing to change.if == sys.UTIME_OMIT && == sys.UTIME_OMIT {return}= &[2]syscall.Timespec{}if == sys.UTIME_OMIT {[0] = syscall.Timespec{Nsec: _UTIME_OMIT}[1] = syscall.NsecToTimespec()} else if == sys.UTIME_OMIT {[0] = syscall.NsecToTimespec()[1] = syscall.Timespec{Nsec: _UTIME_OMIT}} else {[0] = syscall.NsecToTimespec()[1] = syscall.NsecToTimespec()}return}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |