//go:build linux || darwin

package sysfs

import (
	

	
)

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
}