Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 132 for Dirfd (0.14 sec)

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

    	procUnlinkat uintptr
    )
    
    func Unlinkat(dirfd int, path string, flags int) error {
    	p, err := syscall.BytePtrFromString(path)
    	if err != nil {
    		return err
    	}
    
    	_, _, 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) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  2. src/internal/syscall/unix/at_libc2.go

    import (
    	"syscall"
    	_ "unsafe" // for linkname
    )
    
    func Unlinkat(dirfd int, path string, flags int) error {
    	return unlinkat(dirfd, path, flags)
    }
    
    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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 16:59:38 UTC 2022
    - 927 bytes
    - Viewed (0)
  3. src/internal/syscall/unix/at.go

    import (
    	"syscall"
    	"unsafe"
    )
    
    func Unlinkat(dirfd int, path string, flags int) error {
    	p, err := syscall.BytePtrFromString(path)
    	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) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 19 15:51:18 UTC 2022
    - 917 bytes
    - Viewed (0)
  4. src/syscall/fs_wasip1.go

    func Unlink(path string) error {
    	if path == "" {
    		return EINVAL
    	}
    	dirFd, pathPtr, pathLen := preparePath(path)
    	errno := path_unlink_file(dirFd, pathPtr, pathLen)
    	return errnoErr(errno)
    }
    
    func Rmdir(path string) error {
    	if path == "" {
    		return EINVAL
    	}
    	dirFd, pathPtr, pathLen := preparePath(path)
    	errno := path_remove_directory(dirFd, pathPtr, pathLen)
    	return errnoErr(errno)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go

    	runtime.ExitSyscall()
    	if int64(r0) == -1 {
    		err = errnoErr2(e1, e2)
    	}
    	return
    }
    
    //go:nosplit
    func get_FutimesatAddr() *(func(dirfd int, path string, tv []Timeval) (err error))
    
    var Futimesat = enter_Futimesat
    
    func enter_Futimesat(dirfd int, path string, tv []Timeval) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 88.2K bytes
    - Viewed (0)
  6. src/runtime/env_plan9.go

    // os.WriteFile("/env/" + key, value, 0666) respectively.
    //
    //go:nosplit
    func goenvs() {
    	buf := make([]byte, envBufSize)
    	copy(buf, envDir)
    	dirfd := open(&buf[0], _OREAD, 0)
    	if dirfd < 0 {
    		return
    	}
    	defer closefd(dirfd)
    	dofiles(dirfd, func(name []byte) {
    		name = append(name, 0)
    		buf = buf[:len(envDir)]
    		copy(buf, envDir)
    		buf = append(buf, name...)
    		fd := open(&buf[0], _OREAD, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 02:39:39 UTC 2022
    - 3K bytes
    - Viewed (0)
  7. src/internal/syscall/unix/at_fstatat.go

    package unix
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    func Fstatat(dirfd int, path string, stat *syscall.Stat_t, flags int) error {
    	var p *byte
    	p, err := syscall.BytePtrFromString(path)
    	if err != nil {
    		return err
    	}
    
    	_, _, errno := syscall.Syscall6(fstatatTrap, uintptr(dirfd), uintptr(unsafe.Pointer(p)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
    	if errno != 0 {
    		return errno
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 646 bytes
    - Viewed (0)
  8. src/internal/syscall/unix/eaccess_darwin.go

    //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
    	}
    	_, _, 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
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 15:02:38 UTC 2024
    - 791 bytes
    - Viewed (0)
  9. src/internal/syscall/unix/eaccess_openbsd.go

    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
    	}
    	_, _, 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
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:36:52 UTC 2024
    - 946 bytes
    - Viewed (0)
  10. src/syscall/zsyscall_linux_s390x.go

    func fchmodat(dirfd int, path string, mode uint32) (err error) {
    	var _p0 *byte
    	_p0, err = BytePtrFromString(path)
    	if err != nil {
    		return
    	}
    	_, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func fchmodat2(dirfd int, path string, mode uint32, flags int) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 35.3K bytes
    - Viewed (0)
Back to top