Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TimespecToNsec (0.12 sec)

  1. src/syscall/fs_wasip1.go

    	// UTIME_OMIT value must match internal/syscall/unix/at_wasip1.go
    	const UTIME_OMIT = -0x2
    	if path == "" {
    		return EINVAL
    	}
    	dirFd, pathPtr, pathLen := preparePath(path)
    	atime := TimespecToNsec(ts[0])
    	mtime := TimespecToNsec(ts[1])
    	if ts[0].Nsec == UTIME_OMIT || ts[1].Nsec == UTIME_OMIT {
    		var st Stat_t
    		if err := Stat(path, &st); err != nil {
    			return err
    		}
    		if ts[0].Nsec == UTIME_OMIT {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    		return EINVAL
    	}
    	// Not as efficient as it could be because Timespec and
    	// Timeval have different types in the different OSes
    	tv := [2]Timeval{
    		NsecToTimeval(TimespecToNsec(ts[0])),
    		NsecToTimeval(TimespecToNsec(ts[1])),
    	}
    	return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
    }
    
    // End UtimesNano
    
    // Begin UtimesNanoAt
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
Back to top