Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 137 for futimens (1.06 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_arm.go

    		*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)
    }
    
    //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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  2. src/syscall/syscall_linux_riscv64.go

    		*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)
    }
    
    func utimes(path string, tv *[2]Timeval) (err error) {
    	if tv == nil {
    		return utimensat(_AT_FDCWD, path, nil, 0)
    	}
    
    	ts := []Timespec{
    		NsecToTimespec(TimevalToNsec(tv[0])),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. src/syscall/syscall_linux_loong64.go

    		*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)
    }
    
    func utimes(path string, tv *[2]Timeval) (err error) {
    	if tv == nil {
    		return utimensat(_AT_FDCWD, path, nil, 0)
    	}
    
    	ts := []Timespec{
    		NsecToTimespec(TimevalToNsec(tv[0])),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go

    		*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)
    }
    
    func utimes(path string, tv *[2]Timeval) (err error) {
    	if tv == nil {
    		return utimensat(AT_FDCWD, path, nil, 0)
    	}
    
    	ts := []Timespec{
    		NsecToTimespec(TimevalToNsec(tv[0])),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  5. src/syscall/exec_linux_test.go

    	}
    }
    
    func TestCloneTimeNamespace(t *testing.T) {
    	testenv.MustHaveExec(t)
    
    	if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" {
    		timens, err := os.Readlink("/proc/self/ns/time")
    		if err != nil {
    			fmt.Fprintln(os.Stderr, err)
    			os.Exit(2)
    		}
    		fmt.Print(string(timens))
    		os.Exit(0)
    	}
    
    	exe, err := os.Executable()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  6. src/syscall/zsyscall_openbsd_arm.go

    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func libc_utimes_trampoline()
    
    //go:cgo_import_dynamic libc_utimes utimes "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func futimes(fd int, timeval *[2]Timeval) (err error) {
    	_, _, e1 := syscall(abi.FuncPCABI0(libc_futimes_trampoline), uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
    	if e1 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    	err = pipe(&pp)
    	p[0] = int(pp[0])
    	p[1] = int(pp[1])
    	return
    }
    
    //sys	utimes(path string, timeval *[2]Timeval) (err error) = SYS___UTIMES_A
    
    func Utimes(path string, tv []Timeval) (err error) {
    	if tv == nil {
    		return utimes(path, nil)
    	}
    	if len(tv) != 2 {
    		return EINVAL
    	}
    	return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  8. src/syscall/syscall_linux.go

    	if len(tv) != 2 {
    		return EINVAL
    	}
    	return futimesat(dirfd, path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
    }
    
    func Futimes(fd int, tv []Timeval) (err error) {
    	// Believe it or not, this is the best we can do on Linux
    	// (and is what glibc does).
    	return Utimes("/proc/self/fd/"+itoa.Itoa(fd), tv)
    }
    
    const ImplementsGetwd = true
    
    //sys	Getcwd(buf []byte) (n int, err error)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_aix.go

    }
    
    func Creat(path string, mode uint32) (fd int, err error) {
    	return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode)
    }
    
    //sys	utimes(path string, times *[2]Timeval) (err error)
    
    func Utimes(path string, tv []Timeval) error {
    	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)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  10. src/syscall/syscall_solaris.go

    	return mapper.Mmap(fd, offset, length, prot, flags)
    }
    
    func Munmap(b []byte) (err error) {
    	return mapper.Munmap(b)
    }
    
    func Utimes(path string, tv []Timeval) error {
    	if len(tv) != 2 {
    		return EINVAL
    	}
    	return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[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)
Back to top