Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 82 for Faccessat (0.47 sec)

  1. src/internal/syscall/unix/eaccess_darwin.go

    package unix
    
    import (
    	"internal/abi"
    	"syscall"
    	"unsafe"
    )
    
    func libc_faccessat_trampoline()
    
    //go:cgo_import_dynamic libc_faccessat faccessat "/usr/lib/libSystem.B.dylib"
    
    func faccessat(dirfd int, path string, mode uint32, flags int) error {
    	p, err := syscall.BytePtrFromString(path)
    	if err != nil {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 15:02:38 UTC 2024
    - 791 bytes
    - Viewed (0)
  2. src/internal/syscall/unix/eaccess_openbsd.go

    //go:linkname syscall_syscall6 syscall.syscall6
    func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
    
    func libc_faccessat_trampoline()
    
    //go:cgo_import_dynamic libc_faccessat faccessat "libc.so"
    
    func faccessat(dirfd int, path string, mode uint32, flags int) error {
    	p, err := syscall.BytePtrFromString(path)
    	if err != nil {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:36:52 UTC 2024
    - 946 bytes
    - Viewed (0)
  3. src/internal/syscall/unix/eaccess_bsd.go

    // license that can be found in the LICENSE file.
    
    //go:build dragonfly || freebsd || netbsd || (openbsd && mips64)
    
    package unix
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    func faccessat(dirfd int, path string, mode uint32, flags int) error {
    	p, err := syscall.BytePtrFromString(path)
    	if err != nil {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:36:52 UTC 2024
    - 708 bytes
    - Viewed (0)
  4. 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)
  5. src/internal/syscall/unix/eaccess_linux.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package unix
    
    import "syscall"
    
    func Eaccess(path string, mode uint32) error {
    	return syscall.Faccessat(AT_FDCWD, path, mode, AT_EACCESS)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:09:45 UTC 2022
    - 301 bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/vendor/golang.org/x/sys/unix/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: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_aix.go

    // wrap it in our own nicer implementation.
    
    package unix
    
    import "unsafe"
    
    /*
     * Wrapped
     */
    
    func Access(path string, mode uint32) (err error) {
    	return Faccessat(AT_FDCWD, path, mode, 0)
    }
    
    func Chmod(path string, mode uint32) (err error) {
    	return Fchmodat(AT_FDCWD, path, mode, 0)
    }
    
    func Chown(path string, uid int, gid 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)
  9. 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)
  10. src/cmd/vendor/golang.org/x/sys/unix/zsymaddr_zos_s390x.s

    	MOVD $·Eventfd(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    TEXT ·get_FaccessatAddr(SB), NOSPLIT|NOFRAME, $0-8
    	MOVD $·Faccessat(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    TEXT ·get_FchmodatAddr(SB), NOSPLIT|NOFRAME, $0-8
    	MOVD $·Fchmodat(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top