Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 152 for RawSyscall (0.37 sec)

  1. src/syscall/syscall_netbsd.go

    func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno)
    func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    
    const (
    	_SYS_DUP3         = SYS_DUP3
    	_F_DUP2FD_CLOEXEC = 0
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  2. src/syscall/syscall_linux_mipsx.go

    		return EINVAL
    	}
    	if rlim.Max == rlimInf64 {
    		rl.Max = rlimInf32
    	} else if rlim.Max < uint64(rlimInf32) {
    		rl.Max = uint32(rlim.Max)
    	} else {
    		return EINVAL
    	}
    
    	_, _, errno = RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    	return errno
    }
    
    func (r *PtraceRegs) PC() uint64 { return uint64(r.Regs[64]) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  3. src/syscall/syscall_wasip1.go

    func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) {
    	return 0, 0, ENOSYS
    }
    
    func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) {
    	return 0, 0, ENOSYS
    }
    
    func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) {
    	return 0, 0, ENOSYS
    }
    
    func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) {
    	return 0, 0, ENOSYS
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. src/syscall/exec_libc.go

    // ../runtime/syscall_solaris.go, rather than generated libc wrappers
    // because we need to avoid lazy-loading the functions (might malloc,
    // split the stack, or acquire mutexes). We can't call RawSyscall
    // because it's not safe even for BSD-subsystem calls.
    //
    //go:norace
    func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr *ProcAttr, sys *SysProcAttr, pipe int) (pid int, err Errno) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/README.md

    call dispatch. There are three entry points:
    ```
      func Syscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr)
      func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr)
      func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr)
    ```
    The first and second are the standard ones; they differ only in how many
    arguments can be passed to the kernel. The third is for low-level use by the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 06 14:32:58 UTC 2021
    - 8.5K bytes
    - Viewed (0)
  6. src/syscall/syscall_linux_test.go

    		}
    	}
    }
    
    func TestSyscallNoError(t *testing.T) {
    	// On Linux there are currently no syscalls which don't fail and return
    	// a value larger than 0xfffffffffffff001 so we could test RawSyscall
    	// vs. RawSyscallNoError on 64bit architectures.
    	if unsafe.Sizeof(uintptr(0)) != 4 {
    		t.Skip("skipping on non-32bit architecture")
    	}
    
    	// See https://golang.org/issue/35422
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  7. src/syscall/syscall_freebsd.go

    package syscall
    
    import "unsafe"
    
    func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    
    type SockaddrDatalink struct {
    	Len    uint8
    	Family uint8
    	Index  uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  8. src/syscall/syscall_linux_386.go

    		return EINVAL
    	}
    	if rlim.Max == rlimInf64 {
    		rl.Max = rlimInf32
    	} else if rlim.Max < uint64(rlimInf32) {
    		rl.Max = uint32(rlim.Max)
    	} else {
    		return EINVAL
    	}
    
    	_, _, errno = RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    	return errno
    }
    
    // Underlying system call writes to newoffset via pointer.
    // Implemented in assembly to avoid allocation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  9. src/syscall/syscall_linux_s390x.go

    	_, e := socketcall(_SHUTDOWN, uintptr(s), uintptr(how), 0, 0, 0, 0)
    	if e != 0 {
    		err = e
    	}
    	return
    }
    
    //go:nosplit
    func rawSetrlimit(resource int, rlim *Rlimit) Errno {
    	_, _, errno := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    	return errno
    }
    
    func (r *PtraceRegs) PC() uint64 { return r.Psw.Addr }
    
    func (r *PtraceRegs) SetPC(pc uint64) { r.Psw.Addr = pc }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. src/syscall/mksyscall.pl

    	}
    
    	# Determine which form to use; pad args with zeros.
    	my $asm = "Syscall";
    	if ($nonblock) {
    		if ($errvar eq "" && $ENV{'GOOS'} eq "linux") {
    			$asm = "rawSyscallNoError";
    		} else {
    			$asm = "RawSyscall";
    		}
    	}
    	if ($libc) {
    		# Call unexported syscall functions (which take
    		# libc functions instead of syscall numbers).
    		$asm = lcfirst($asm);
    	}
    	if(@args <= 3) {
    		while(@args < 3) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:15:02 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top