Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 531 for syscall3 (0.13 sec)

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

    // license that can be found in the LICENSE file.
    
    package unix
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    // getentropy(2)'s syscall number, from /usr/src/sys/kern/syscalls.master
    const entropyTrap uintptr = 7
    
    // GetEntropy calls the OpenBSD getentropy system call.
    func GetEntropy(p []byte) error {
    	_, _, errno := syscall.Syscall(entropyTrap,
    		uintptr(unsafe.Pointer(&p[0])),
    		uintptr(len(p)),
    		0)
    	if errno != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 16:59:38 UTC 2022
    - 554 bytes
    - Viewed (0)
  2. src/os/wait6_freebsd64.go

    //go:build freebsd && (amd64 || arm64 || riscv64)
    
    package os
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    const _P_PID = 0
    
    func wait6(idtype, id, options int) (status int, errno syscall.Errno) {
    	var status32 int32 // C.int
    	_, _, errno = syscall.Syscall6(syscall.SYS_WAIT6, uintptr(idtype), uintptr(id), uintptr(unsafe.Pointer(&status32)), uintptr(options), 0, 0)
    	return int(status32), errno
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 21:25:45 UTC 2022
    - 547 bytes
    - Viewed (0)
  3. src/internal/syscall/unix/at.go

    //go:build dragonfly || freebsd || linux || netbsd || (openbsd && mips64)
    
    package unix
    
    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
    	}
    
    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/internal/syscall/unix/eaccess_openbsd.go

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

    	var writtenOut uint64 = 0
    	_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
    
    	written = int(writtenOut)
    
    	if e1 != 0 {
    		err = e1
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. src/internal/syscall/unix/eaccess_bsd.go

    //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
    	}
    	_, _, errno := syscall.Syscall6(syscall.SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(p)), uintptr(mode), uintptr(flags), 0, 0)
    	if errno != 0 {
    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/os/wait_waitid.go

    	// We don't care about the values it returns.
    	var siginfo [16]uint64
    	psig := &siginfo[0]
    	var e syscall.Errno
    	for {
    		_, _, e = syscall.Syscall6(syscall.SYS_WAITID, _P_PID, uintptr(p.Pid), uintptr(unsafe.Pointer(psig)), syscall.WEXITED|syscall.WNOWAIT, 0, 0)
    		if e != syscall.EINTR {
    			break
    		}
    	}
    	runtime.KeepAlive(p)
    	if e != 0 {
    		// waitid has been available since Linux 2.6.9, but
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:27:57 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/plan9/zsyscall_plan9_amd64.go

    	} else {
    		_p0 = unsafe.Pointer(&_zero)
    	}
    	r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0)
    	n = int(r0)
    	if int32(r0) == -1 {
    		err = e1
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Close(fd int) (err error) {
    	r0, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
    	if int32(r0) == -1 {
    		err = e1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go

    func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    
    //go:linkname syscall_syscall syscall.syscall
    //go:linkname syscall_syscall6 syscall.syscall6
    //go:linkname syscall_syscall10 syscall.syscall10
    //go:linkname syscall_rawSyscall syscall.rawSyscall
    //go:linkname syscall_rawSyscall6 syscall.rawSyscall6
    
    func syscall_syscall9(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go

    //go:build linux && gccgo && 386
    
    package unix
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
    	var newoffset int64
    	offsetLow := uint32(offset & 0xffffffff)
    	offsetHigh := uint32((offset >> 32) & 0xffffffff)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 986 bytes
    - Viewed (0)
Back to top