Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,190 for utimes (0.11 sec)

  1. src/os/file_posix.go

    	var utimes [2]syscall.Timespec
    	set := func(i int, t time.Time) {
    		if t.IsZero() {
    			utimes[i] = syscall.Timespec{Sec: _UTIME_OMIT, Nsec: _UTIME_OMIT}
    		} else {
    			utimes[i] = syscall.NsecToTimespec(t.UnixNano())
    		}
    	}
    	set(0, atime)
    	set(1, mtime)
    	if e := syscall.UtimesNano(fixLongPath(name), utimes[0:]); e != nil {
    		return &PathError{Op: "chtimes", Path: name, Err: e}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_bsd.go

    	}
    	if n != unsafe.Sizeof(tv) {
    		return nil, EIO
    	}
    	return &tv, nil
    }
    
    //sys	utimes(path string, timeval *[2]Timeval) (err error)
    
    func Utimes(path string, tv []Timeval) error {
    	if tv == nil {
    		return utimes(path, nil)
    	}
    	if len(tv) != 2 {
    		return EINVAL
    	}
    	return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
    }
    
    func UtimesNano(path string, ts []Timespec) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 15K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go

    }
    
    func Time(t *Time_t) (Time_t, error) {
    	var tv Timeval
    	err := Gettimeofday(&tv)
    	if err != nil {
    		return 0, err
    	}
    	if t != nil {
    		*t = Time_t(tv.Sec)
    	}
    	return Time_t(tv.Sec), nil
    }
    
    func Utime(path string, buf *Utimbuf) error {
    	tv := []Timeval{
    		{Sec: buf.Actime},
    		{Sec: buf.Modtime},
    	}
    	return Utimes(path, tv)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go

    }
    
    func Time(t *Time_t) (Time_t, error) {
    	var tv Timeval
    	err := Gettimeofday(&tv)
    	if err != nil {
    		return 0, err
    	}
    	if t != nil {
    		*t = Time_t(tv.Sec)
    	}
    	return Time_t(tv.Sec), nil
    }
    
    func Utime(path string, buf *Utimbuf) error {
    	tv := []Timeval{
    		{Sec: buf.Actime},
    		{Sec: buf.Modtime},
    	}
    	return Utimes(path, tv)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_arm.go

    		{Sec: buf.Modtime},
    	}
    	return Utimes(path, tv)
    }
    
    //sys	utimes(path string, times *[2]Timeval) (err error)
    
    //sys	pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
    //sys	pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
    //sys	Truncate(path string, length int64) (err error) = SYS_TRUNCATE64
    //sys	Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  6. src/syscall/syscall_bsd.go

    		NsecToTimeval(TimespecToNsec(ts[0])),
    		NsecToTimeval(TimespecToNsec(ts[1])),
    	}
    	return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
    }
    
    //sys	futimes(fd int, timeval *[2]Timeval) (err error)
    
    func Futimes(fd int, tv []Timeval) (err error) {
    	if len(tv) != 2 {
    		return EINVAL
    	}
    	return futimes(fd, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
    }
    
    //sys	fcntl(fd int, cmd int, arg int) (val int, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 10:34:48 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  7. src/syscall/syscall_linux_arm64.go

    }
    
    func Time(t *Time_t) (Time_t, error) {
    	var tv Timeval
    	err := Gettimeofday(&tv)
    	if err != nil {
    		return 0, err
    	}
    	if t != nil {
    		*t = Time_t(tv.Sec)
    	}
    	return Time_t(tv.Sec), nil
    }
    
    func Utime(path string, buf *Utimbuf) error {
    	tv := []Timeval{
    		{Sec: buf.Actime},
    		{Sec: buf.Modtime},
    	}
    	return Utimes(path, tv)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  8. src/syscall/syscall_linux_riscv64.go

    }
    
    func Time(t *Time_t) (Time_t, error) {
    	var tv Timeval
    	err := Gettimeofday(&tv)
    	if err != nil {
    		return 0, err
    	}
    	if t != nil {
    		*t = Time_t(tv.Sec)
    	}
    	return Time_t(tv.Sec), nil
    }
    
    func Utime(path string, buf *Utimbuf) error {
    	tv := []Timeval{
    		{Sec: buf.Actime},
    		{Sec: buf.Modtime},
    	}
    	return Utimes(path, tv)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  9. src/syscall/syscall_linux_loong64.go

    }
    
    func Time(t *Time_t) (Time_t, error) {
    	var tv Timeval
    	err := Gettimeofday(&tv)
    	if err != nil {
    		return 0, err
    	}
    	if t != nil {
    		*t = Time_t(tv.Sec)
    	}
    	return Time_t(tv.Sec), nil
    }
    
    func Utime(path string, buf *Utimbuf) error {
    	tv := []Timeval{
    		{Sec: buf.Actime},
    		{Sec: buf.Modtime},
    	}
    	return Utimes(path, tv)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go

    }
    
    func Time(t *Time_t) (Time_t, error) {
    	var tv Timeval
    	err := Gettimeofday(&tv)
    	if err != nil {
    		return 0, err
    	}
    	if t != nil {
    		*t = Time_t(tv.Sec)
    	}
    	return Time_t(tv.Sec), nil
    }
    
    func Utime(path string, buf *Utimbuf) error {
    	tv := []Timeval{
    		{Sec: buf.Actime},
    		{Sec: buf.Modtime},
    	}
    	return Utimes(path, tv)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top