Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 92 for sysvicall6 (0.32 sec)

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

    	"syscall"
    	"unsafe"
    )
    
    const (
    	_CTL_KERN = 1
    
    	_KERN_ARND = 81
    )
    
    func GetEntropy(p []byte) error {
    	mib := [2]uint32{_CTL_KERN, _KERN_ARND}
    	n := uintptr(len(p))
    	_, _, errno := syscall.Syscall6(
    		syscall.SYS___SYSCTL,
    		uintptr(unsafe.Pointer(&mib[0])),
    		uintptr(len(mib)),
    		uintptr(unsafe.Pointer(&p[0])), // olddata
    		uintptr(unsafe.Pointer(&n)),    // &oldlen
    		uintptr(unsafe.Pointer(nil)),   // newdata
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 19:42:54 UTC 2023
    - 779 bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_unix_gc.go

    //go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc
    
    package unix
    
    import "syscall"
    
    func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
    func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
    func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 640 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s

    //
    
    // Just jump to package syscall's implementation for all these functions.
    // The runtime may know about them.
    
    TEXT	·Syscall(SB),NOSPLIT,$0-56
    	JMP	syscall·Syscall(SB)
    
    TEXT	·Syscall6(SB),NOSPLIT,$0-80
    	JMP	syscall·Syscall6(SB)
    
    TEXT	·Syscall9(SB),NOSPLIT,$0-104
    	JMP	syscall·Syscall9(SB)
    
    TEXT	·RawSyscall(SB),NOSPLIT,$0-56
    	JMP	syscall·RawSyscall(SB)
    
    TEXT	·RawSyscall6(SB),NOSPLIT,$0-80
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 716 bytes
    - Viewed (0)
  4. src/syscall/flock_aix.go

    import "unsafe"
    
    // On AIX, there is no flock() system call.
    
    // FcntlFlock performs a fcntl syscall for the [F_GETLK], [F_SETLK] or [F_SETLKW] command.
    func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) (err error) {
    	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_fcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(unsafe.Pointer(lk)), 0, 0, 0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 570 bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/asm_bsd_arm64.s

    // System call support for ARM64 BSD
    
    // Just jump to package syscall's implementation for all these functions.
    // The runtime may know about them.
    
    TEXT	·Syscall(SB),NOSPLIT,$0-56
    	JMP	syscall·Syscall(SB)
    
    TEXT	·Syscall6(SB),NOSPLIT,$0-80
    	JMP	syscall·Syscall6(SB)
    
    TEXT	·Syscall9(SB),NOSPLIT,$0-104
    	JMP	syscall·Syscall9(SB)
    
    TEXT	·RawSyscall(SB),NOSPLIT,$0-56
    	JMP	syscall·RawSyscall(SB)
    
    TEXT	·RawSyscall6(SB),NOSPLIT,$0-80
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 709 bytes
    - Viewed (0)
  6. src/internal/syscall/unix/eaccess_bsd.go

    import (
    	"syscall"
    	"unsafe"
    )
    
    func faccessat(dirfd int, path string, mode uint32, flags int) error {
    	p, err := syscall.BytePtrFromString(path)
    	if err != nil {
    		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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:36:52 UTC 2024
    - 708 bytes
    - Viewed (0)
  7. src/internal/syscall/unix/eaccess_openbsd.go

    // license that can be found in the LICENSE file.
    
    //go:build openbsd && !mips64
    
    package unix
    
    import (
    	"internal/abi"
    	"syscall"
    	"unsafe"
    )
    
    //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"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:36:52 UTC 2024
    - 946 bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go

    	"unsafe"
    )
    
    func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
    	var newoffset int64
    	offsetLow := uint32(offset & 0xffffffff)
    	offsetHigh := uint32((offset >> 32) & 0xffffffff)
    	_, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0)
    	return newoffset, err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 986 bytes
    - Viewed (0)
  9. src/internal/syscall/unix/at.go

    	}
    
    	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
    	}
    
    	fd, _, errno := syscall.Syscall6(openatTrap, uintptr(dirfd), uintptr(unsafe.Pointer(p)), uintptr(flags), uintptr(perm), 0, 0)
    	if errno != 0 {
    		return 0, errno
    	}
    
    	return int(fd), nil
    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/os/pidfd_linux.go

    	case statusReleased:
    		return nil, syscall.EINVAL
    	}
    	defer p.handleTransientRelease()
    
    	var (
    		info   unix.SiginfoChild
    		rusage syscall.Rusage
    		e      syscall.Errno
    	)
    	for {
    		_, _, e = syscall.Syscall6(syscall.SYS_WAITID, _P_PIDFD, handle, uintptr(unsafe.Pointer(&info)), syscall.WEXITED, uintptr(unsafe.Pointer(&rusage)), 0)
    		if e != syscall.EINTR {
    			break
    		}
    	}
    	if e != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top