Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 132 for Dirfd (0.07 sec)

  1. src/syscall/syscall_aix.go

    }
    
    //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)
    }
    
    //sys	unlinkat(dirfd int, path string, flags int) (err error)
    
    func Unlinkat(dirfd int, path string) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go

    //sys	fstat(fd int, st *stat_t) (err error)
    //sys	fstatat(dirfd int, path string, st *stat_t, flags int) (err error) = SYS_NEWFSTATAT
    //sys	lstat(path string, st *stat_t) (err error)
    //sys	stat(path string, st *stat_t) (err error)
    
    func Fstat(fd int, s *Stat_t) (err error) {
    	st := &stat_t{}
    	err = fstat(fd, st)
    	fillStat_t(s, st)
    	return
    }
    
    func Fstatat(dirfd int, path string, s *Stat_t, flags int) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. pkg/util/procfs/procfs_linux.go

    	return getPids(re), nil
    }
    
    func getPids(re *regexp.Regexp) []int {
    	pids := []int{}
    
    	dirFD, err := os.Open("/proc")
    	if err != nil {
    		return nil
    	}
    	defer dirFD.Close()
    
    	for {
    		// Read a small number at a time in case there are many entries, we don't want to
    		// allocate a lot here.
    		ls, err := dirFD.Readdir(10)
    		if err == io.EOF {
    			break
    		}
    		if err != nil {
    			return nil
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 09:22:35 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go

    func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
    	_p0 := uintptr(unsafe.Pointer(C.CString(path)))
    	r0, er := C.fchmodat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(flags))
    	if r0 == -1 && er != nil {
    		err = er
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 35.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go

    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
    	var _p0 *byte
    	_p0, err = BytePtrFromString(path)
    	if err != nil {
    		return
    	}
    	_, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go

    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
    	var _p0 *byte
    	_p0, err = BytePtrFromString(path)
    	if err != nil {
    		return
    	}
    	_, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go

    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: usec}
    }
    
    func futimesat(dirfd int, path string, tv *[2]Timeval) (err error) {
    	if tv == nil {
    		return utimensat(dirfd, path, nil, 0)
    	}
    
    	ts := []Timespec{
    		NsecToTimespec(TimevalToNsec(tv[0])),
    		NsecToTimespec(TimevalToNsec(tv[1])),
    	}
    	return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
    }
    
    func Time(t *Time_t) (Time_t, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  8. src/os/removeall_at.go

    // the file descriptor dirfd. If name is anything but a directory (this
    // includes a symlink to one), it should return an error. Other than that this
    // should act like openFileNolog.
    //
    // This acts like openFileNolog rather than OpenFile because
    // we are going to (try to) remove the file.
    // The contents of this file are not relevant for test caching.
    func openDirAt(dirfd int, name string) (*File, error) {
    	var r int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go

    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: usec}
    }
    
    func futimesat(dirfd int, path string, tv *[2]Timeval) (err error) {
    	if tv == nil {
    		return utimensat(dirfd, path, nil, 0)
    	}
    
    	ts := []Timespec{
    		NsecToTimespec(TimevalToNsec(tv[0])),
    		NsecToTimespec(TimevalToNsec(tv[1])),
    	}
    	return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
    }
    
    func Time(t *Time_t) (Time_t, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go

    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
    	var _p0 *byte
    	_p0, err = BytePtrFromString(path)
    	if err != nil {
    		return
    	}
    	_, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 57.5K bytes
    - Viewed (0)
Back to top