Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,361 for openat (0.09 sec)

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

    }
    
    func Openat(dirfd int, path string, flags int, perm uint32) (int, error) {
    	return openat(dirfd, path, flags, perm)
    }
    
    func Fstatat(dirfd int, path string, stat *syscall.Stat_t, flags int) error {
    	return fstatat(dirfd, path, stat, flags)
    }
    
    //go:linkname unlinkat syscall.unlinkat
    func unlinkat(dirfd int, path string, flags int) error
    
    //go:linkname openat syscall.openat
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 16:59:38 UTC 2022
    - 927 bytes
    - Viewed (0)
  2. src/internal/syscall/unix/constants.go

    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package unix
    
    const (
    	R_OK = 0x4
    	W_OK = 0x2
    	X_OK = 0x1
    
    	// NoFollowErrno is the error returned from open/openat called with
    	// O_NOFOLLOW flag, when the trailing component (basename) of the path
    	// is a symbolic link.
    	NoFollowErrno = noFollowErrno
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:26 UTC 2024
    - 434 bytes
    - Viewed (0)
  3. pkg/volume/util/subpath/subpath_linux.go

    		}
    		// Dive into the created directory
    		childFD, err = syscall.Openat(parentFD, dir, nofollowFlags|unix.O_CLOEXEC, 0)
    		if err != nil {
    			return fmt.Errorf("cannot open %s: %s", currentPath, err)
    		}
    		// We can be sure that childFD is safe to use. It could be changed
    		// by user after Mkdirat() and before Openat(), however:
    		// - it could not be changed to symlink - we use nofollowFlags
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 12 14:09:11 UTC 2022
    - 21.4K bytes
    - Viewed (0)
  4. src/syscall/linkname_darwin.go

    import _ "unsafe"
    
    // used by os
    //go:linkname closedir
    //go:linkname readdir_r
    
    // used by internal/poll
    //go:linkname fdopendir
    
    // used by internal/syscall/unix
    //go:linkname unlinkat
    //go:linkname openat
    //go:linkname fstatat
    
    // used by cmd/link
    //go:linkname msync
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 468 bytes
    - Viewed (0)
  5. src/internal/syscall/unix/at_solaris.go

    func rawSyscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
    
    //go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
    //go:cgo_import_dynamic libc_openat openat "libc.so"
    //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
    //go:cgo_import_dynamic libc_uname uname "libc.so"
    
    const (
    	AT_REMOVEDIR        = 0x1
    	AT_SYMLINK_NOFOLLOW = 0x1000
    
    	UTIME_OMIT = -0x2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 814 bytes
    - Viewed (0)
  6. src/syscall/linkname_openbsd.go

    // license that can be found in the LICENSE file.
    
    //go:build openbsd && !mips64
    
    package syscall
    
    import _ "unsafe"
    
    // used by internal/syscall/unix
    //go:linkname unlinkat
    //go:linkname openat
    //go:linkname fstatat
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 351 bytes
    - Viewed (0)
  7. src/internal/syscall/unix/at_libc.go

    	}
    
    	_, _, errno := syscall6(uintptr(unsafe.Pointer(&procUnlinkat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(p)), uintptr(flags), 0, 0, 0)
    	if errno != 0 {
    		return errno
    	}
    
    	return nil
    }
    
    func Openat(dirfd int, path string, flags int, perm uint32) (int, error) {
    	p, err := syscall.BytePtrFromString(path)
    	if err != nil {
    		return 0, err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  8. src/internal/syscall/unix/at_aix.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package unix
    
    //go:cgo_import_dynamic libc_fstatat fstatat "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_openat openat "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.a/shr_64.o"
    
    const (
    	AT_REMOVEDIR        = 0x1
    	AT_SYMLINK_NOFOLLOW = 0x1
    	UTIME_OMIT          = -0x3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 11 18:19:17 UTC 2023
    - 456 bytes
    - Viewed (0)
  9. src/internal/syscall/unix/at.go

    	if err != nil {
    		return err
    	}
    
    	_, _, errno := syscall.Syscall(unlinkatTrap, uintptr(dirfd), uintptr(unsafe.Pointer(p)), uintptr(flags))
    	if errno != 0 {
    		return errno
    	}
    
    	return nil
    }
    
    func Openat(dirfd int, path string, flags int, perm uint32) (int, error) {
    	p, err := syscall.BytePtrFromString(path)
    	if err != nil {
    		return 0, err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 19 15:51:18 UTC 2022
    - 917 bytes
    - Viewed (0)
  10. src/internal/syscall/unix/nofollow_posix.go

    //   - android: see linux
    //   - darwin: https://github.com/apple/darwin-xnu/blob/main/bsd/man/man2/open.2
    //   - hurd: who knows if it works at all (https://www.gnu.org/software/hurd/open_issues/open_symlink.html)
    //   - illumos: https://illumos.org/man/2/open
    //   - ios: see darwin
    //   - linux: https://man7.org/linux/man-pages/man2/openat.2.html
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:26 UTC 2024
    - 933 bytes
    - Viewed (0)
Back to top