Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,033 for syscall2 (0.1 sec)

  1. src/internal/trace/testdata/generators/go122-create-syscall-reuse-thread-id.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Tests a G being created from within a syscall.
    //
    // Specifically, it tests a scenerio wherein a C
    // thread is calling into Go, creating a goroutine in
    // a syscall (in the tracer's model). The system is free
    // to reuse thread IDs, so first a thread ID is used to
    // call into Go, and then is used for a Go-created thread.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. src/internal/runtime/syscall/asm_linux_s390x.s

    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    
    // func Syscall6(num, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, errno uintptr)
    TEXT ยทSyscall6(SB),NOSPLIT,$0-80
    	MOVD	num+0(FP), R1	// syscall entry
    	MOVD	a1+8(FP), R2
    	MOVD	a2+16(FP), R3
    	MOVD	a3+24(FP), R4
    	MOVD	a4+32(FP), R5
    	MOVD	a5+40(FP), R6
    	MOVD	a6+48(FP), R7
    	SYSCALL
    	MOVD	$0xfffffffffffff001, R8
    	CMPUBLT	R2, R8, ok
    	MOVD	$-1, r1+56(FP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 21:28:32 UTC 2024
    - 663 bytes
    - Viewed (0)
  3. src/os/wait6_dragonfly.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    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
    - 496 bytes
    - Viewed (0)
  4. src/internal/runtime/syscall/asm_linux_riscv64.s

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    
    // func Syscall6(num, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, errno uintptr)
    //
    // We need to convert to the syscall ABI.
    //
    // arg | ABIInternal | Syscall
    // ---------------------------
    // num | A0          | A7
    // a1  | A1          | A0
    // a2  | A2          | A1
    // a3  | A3          | A2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 21:28:32 UTC 2024
    - 969 bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_unix_gc.go

    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)
  6. src/vendor/golang.org/x/sys/cpu/syscall_aix_ppc64_gc.go

    func syscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err errno)
    
    func callgetsystemcfg(label int) (r1 uintptr, e1 errno) {
    	r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getsystemcfg)), 1, uintptr(label), 0, 0, 0, 0, 0)
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 988 bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. src/syscall/syscall_plan9_test.go

    func TestPlan9Syserr(t *testing.T) {
    	testalias(t,
    		"Syscall",
    		func() error {
    			return syscall.Mkdir("/", 0)
    		},
    		func() error {
    			return syscall.Mkdir("#", 0)
    		})
    	testalias(t,
    		"Syscall6",
    		func() error {
    			return syscall.Mount(0, 0, "", 0, "")
    		},
    		func() error {
    			return syscall.Mount(-1, 0, "", 0, "")
    		})
    	// originally failed only on plan9_arm
    	testalias(t,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 08 14:57:01 UTC 2018
    - 1.2K bytes
    - Viewed (0)
Back to top