Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for UtimesNano (0.12 sec)

  1. src/syscall/fs_js.go

    		// TODO(neelance): remove when we require at least this Node.js version
    		return ENOSYS
    	}
    	_, err := fsCall("lchown", path, uint32(uid), uint32(gid))
    	return err
    }
    
    func UtimesNano(path string, ts []Timespec) error {
    	// UTIME_OMIT value must match internal/syscall/unix/at_js.go
    	const UTIME_OMIT = -0x2
    	if err := checkPath(path); err != nil {
    		return err
    	}
    	if len(ts) != 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 11 18:19:17 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  2. src/syscall/syscall_bsd.go

    func Utimes(path string, tv []Timeval) (err error) {
    	if len(tv) != 2 {
    		return EINVAL
    	}
    	return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
    }
    
    func UtimesNano(path string, ts []Timespec) error {
    	if len(ts) != 2 {
    		return EINVAL
    	}
    	err := utimensat(_AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
    	if err != ENOSYS {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 10:34:48 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_bsd.go

    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 {
    	if ts == nil {
    		err := utimensat(AT_FDCWD, path, nil, 0)
    		if err != ENOSYS {
    			return err
    		}
    		return utimes(path, nil)
    	}
    	if len(ts) != 2 {
    		return EINVAL
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 15K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/syscall_aix.go

    	if len(tv) != 2 {
    		return EINVAL
    	}
    	return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
    }
    
    //sys	utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error)
    
    func UtimesNano(path string, ts []Timespec) error {
    	if len(ts) != 2 {
    		return EINVAL
    	}
    	return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  5. src/syscall/syscall_solaris.go

    }
    
    func gethostname() (name string, err uintptr)
    
    func Gethostname() (name string, err error) {
    	name, e1 := gethostname()
    	if e1 != 0 {
    		err = Errno(e1)
    	}
    	return name, err
    }
    
    func UtimesNano(path string, ts []Timespec) error {
    	if len(ts) != 2 {
    		return EINVAL
    	}
    	return utimensat(_AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  6. src/syscall/syscall_aix.go

    	if len(tv) != 2 {
    		return EINVAL
    	}
    	return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
    }
    
    //sys	utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error)
    
    func UtimesNano(path string, ts []Timespec) error {
    	if len(ts) != 2 {
    		return EINVAL
    	}
    	return utimensat(_AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. src/syscall/fs_wasip1.go

    	return ENOSYS
    }
    
    func Fchown(fd int, uid, gid int) error {
    	return ENOSYS
    }
    
    func Lchown(path string, uid, gid int) error {
    	return ENOSYS
    }
    
    func UtimesNano(path string, ts []Timespec) error {
    	// UTIME_OMIT value must match internal/syscall/unix/at_wasip1.go
    	const UTIME_OMIT = -0x2
    	if path == "" {
    		return EINVAL
    	}
    	dirFd, pathPtr, pathLen := preparePath(path)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_solaris.go

    	}
    	if len(tv) != 2 {
    		return EINVAL
    	}
    	return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
    }
    
    //sys	utimensat(fd int, path string, times *[2]Timespec, flag int) (err error)
    
    func UtimesNano(path string, ts []Timespec) error {
    	if ts == nil {
    		return utimensat(AT_FDCWD, path, nil, 0)
    	}
    	if len(ts) != 2 {
    		return EINVAL
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 31.1K bytes
    - Viewed (0)
  9. src/syscall/syscall_linux.go

    	if len(tv) != 2 {
    		return EINVAL
    	}
    	return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
    }
    
    //sys	utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error)
    
    func UtimesNano(path string, ts []Timespec) (err error) {
    	if len(ts) != 2 {
    		return EINVAL
    	}
    	return utimensat(_AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
Back to top