Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Faccessat (0.24 sec)

  1. src/syscall/syscall_linux_test.go

    	defer chtmpdir(t)()
    	touch(t, "file1")
    
    	err := syscall.Faccessat(_AT_FDCWD, "file1", _R_OK, 0)
    	if err != nil {
    		t.Errorf("Faccessat: unexpected error: %v", err)
    	}
    
    	err = syscall.Faccessat(_AT_FDCWD, "file1", _R_OK, 2)
    	if err != syscall.EINVAL {
    		t.Errorf("Faccessat: unexpected error: %v, want EINVAL", err)
    	}
    
    	err = syscall.Faccessat(_AT_FDCWD, "file1", _R_OK, _AT_EACCESS)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. src/syscall/syscall_linux.go

    	// The Linux kernel faccessat system call does not take any flags.
    	// The glibc faccessat implements the flags itself; see
    	// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/faccessat.c;hb=HEAD
    	// Because people naturally expect syscall.Faccessat to act
    	// like C faccessat, we do the same.
    
    	if flags & ^(_AT_SYMLINK_NOFOLLOW|_AT_EACCESS) != 0 {
    		return EINVAL
    	}
    
    	var st Stat_t
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  3. src/syscall/syscall_aix.go

    }
    
    func (ts *StTimespec_t) Nano() int64 {
    	return int64(ts.Sec)*1e9 + int64(ts.Nsec)
    }
    
    /*
     * Wrapped
     */
    
    func Access(path string, mode uint32) (err error) {
    	return Faccessat(_AT_FDCWD, path, mode, 0)
    }
    
    // fcntl must never be called with cmd=F_DUP2FD because it doesn't work on AIX
    // There is no way to create a custom fcntl and to keep //sys fcntl easily,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd.go

    //sys	ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
    //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_POSIX_FADVISE
    //sys	Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
    //sys	Fchdir(fd int) (err error)
    //sys	Fchflags(fd int, flags int) (err error)
    //sys	Fchmod(fd int, mode uint32) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  5. src/syscall/zsyscall_aix_ppc64.go

    //go:cgo_import_dynamic libc_Chroot chroot "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_Close close "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_Dup dup "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_Faccessat faccessat "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_Fchdir fchdir "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_Fchmod fchmod "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_Fchmodat fchmodat "libc.a/shr_64.o"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 41.7K bytes
    - Viewed (0)
Back to top