Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,857 for Eaccess (0.11 sec)

  1. src/cmd/go/internal/toolchain/path_unix.go

    	if v == "" {
    		return "", false
    	}
    
    	// Mimicking exec.findExecutable here.
    	// ENOSYS means Eaccess is not available or not implemented.
    	// EPERM can be returned by Linux containers employing seccomp.
    	// In both cases, fall back to checking the permission bits.
    	err := unix.Eaccess(filepath.Join(dir, de.Name()), unix.X_OK)
    	if (err == syscall.ENOSYS || err == syscall.EPERM) && info.Mode()&0111 != 0 {
    		err = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 31 15:15:19 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. src/os/exec/lp_unix.go

    func findExecutable(file string) error {
    	d, err := os.Stat(file)
    	if err != nil {
    		return err
    	}
    	m := d.Mode()
    	if m.IsDir() {
    		return syscall.EISDIR
    	}
    	err = unix.Eaccess(file, unix.X_OK)
    	// ENOSYS means Eaccess is not available or not implemented.
    	// EPERM can be returned by Linux containers employing seccomp.
    	// In both cases, fall back to checking the permission bits.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/internal/syscall/unix/eaccess_other.go

    // license that can be found in the LICENSE file.
    
    //go:build unix && !darwin && !dragonfly && !freebsd && !linux && !openbsd && !netbsd
    
    package unix
    
    import "syscall"
    
    func Eaccess(path string, mode uint32) error {
    	return syscall.ENOSYS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 15:02:38 UTC 2024
    - 351 bytes
    - Viewed (0)
  4. src/internal/syscall/unix/eaccess_linux.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // 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)
  5. src/internal/syscall/unix/eaccess_darwin.go

    	_, _, errno := syscall_syscall6(abi.FuncPCABI0(libc_faccessat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(p)), uintptr(mode), uintptr(flags), 0, 0)
    	if errno != 0 {
    		return errno
    	}
    	return nil
    }
    
    func Eaccess(path string, mode uint32) error {
    	return faccessat(AT_FDCWD, path, mode, AT_EACCESS)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 15:02:38 UTC 2024
    - 791 bytes
    - Viewed (0)
  6. src/internal/syscall/unix/eaccess_openbsd.go

    	_, _, errno := syscall_syscall6(abi.FuncPCABI0(libc_faccessat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(p)), uintptr(mode), uintptr(flags), 0, 0)
    	if errno != 0 {
    		return errno
    	}
    	return err
    }
    
    func Eaccess(path string, mode uint32) error {
    	return faccessat(AT_FDCWD, path, mode, AT_EACCESS)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:36:52 UTC 2024
    - 946 bytes
    - Viewed (0)
  7. src/internal/syscall/unix/eaccess_bsd.go

    		return err
    	}
    	_, _, errno := syscall.Syscall6(syscall.SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(p)), uintptr(mode), uintptr(flags), 0, 0)
    	if errno != 0 {
    		return errno
    	}
    	return err
    }
    
    func Eaccess(path string, mode uint32) error {
    	return faccessat(AT_FDCWD, path, mode, AT_EACCESS)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:36:52 UTC 2024
    - 708 bytes
    - Viewed (0)
  8. src/syscall/zsysnum_freebsd_amd64.go

    	SYS_EXTATTR_DELETE_FD        = 373 // { int extattr_delete_fd(int fd, \
    	SYS___SETUGID                = 374 // { int __setugid(int flag); }
    	SYS_EACCESS                  = 376 // { int eaccess(char *path, int amode); }
    	SYS_NMOUNT                   = 378 // { int nmount(struct iovec *iovp, \
    	SYS___MAC_GET_PROC           = 384 // { int __mac_get_proc(struct mac *mac_p); }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 01:17:28 UTC 2022
    - 25.5K bytes
    - Viewed (0)
  9. src/syscall/zsysnum_freebsd_arm.go

    	SYS_EXTATTR_DELETE_FD        = 373 // { int extattr_delete_fd(int fd, \
    	SYS___SETUGID                = 374 // { int __setugid(int flag); }
    	SYS_EACCESS                  = 376 // { int eaccess(char *path, int amode); }
    	SYS_NMOUNT                   = 378 // { int nmount(struct iovec *iovp, \
    	SYS___MAC_GET_PROC           = 384 // { int __mac_get_proc(struct mac *mac_p); }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 01:17:28 UTC 2022
    - 25.5K bytes
    - Viewed (0)
  10. src/syscall/zsysnum_freebsd_386.go

    	SYS_EXTATTR_DELETE_FD        = 373 // { int extattr_delete_fd(int fd, \
    	SYS___SETUGID                = 374 // { int __setugid(int flag); }
    	SYS_EACCESS                  = 376 // { int eaccess(char *path, int amode); }
    	SYS_NMOUNT                   = 378 // { int nmount(struct iovec *iovp, \
    	SYS___MAC_GET_PROC           = 384 // { int __mac_get_proc(struct mac *mac_p); }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 01:17:28 UTC 2022
    - 25.5K bytes
    - Viewed (0)
Back to top