Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,033 for syscall0 (0.12 sec)

  1. src/runtime/os_aix.go

    	throw("runPerThreadSyscall only valid on linux")
    }
    
    //go:nosplit
    func getuid() int32 {
    	r, errno := syscall0(&libc_getuid)
    	if errno != 0 {
    		print("getuid failed ", errno)
    		throw("getuid")
    	}
    	return int32(r)
    }
    
    //go:nosplit
    func geteuid() int32 {
    	r, errno := syscall0(&libc_geteuid)
    	if errno != 0 {
    		print("geteuid failed ", errno)
    		throw("geteuid")
    	}
    	return int32(r)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. src/runtime/syscall_aix.go

    	return
    }
    
    //go:linkname syscall_forkx syscall.forkx
    //go:nosplit
    func syscall_forkx(flags uintptr) (pid uintptr, err uintptr) {
    	pid, err = syscall1(&libc_fork, flags)
    	return
    }
    
    //go:linkname syscall_getpid syscall.getpid
    //go:nosplit
    func syscall_getpid() (pid, err uintptr) {
    	pid, err = syscall0(&libc_getpid)
    	return
    }
    
    //go:linkname syscall_ioctl syscall.ioctl
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. src/runtime/os2_aix.go

    	pid, err := syscall0(&libc_getpid)
    	if int32(pid) == -1 {
    		println("syscall getpid failed: ", hex(err))
    		throw("syscall raiseproc")
    	}
    
    	syscall2(&libc_kill, pid, uintptr(sig))
    }
    
    func osyield1()
    
    //go:nosplit
    func osyield_no_g() {
    	osyield1()
    }
    
    //go:nosplit
    func osyield() {
    	r, err := syscall0(&libc_sched_yield)
    	if int32(r) == -1 {
    		println("syscall osyield failed: ", hex(err))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  4. src/syscall/syscall_openbsd_libc.go

    }
    
    // Implemented in the runtime package (runtime/sys_openbsd3.go)
    func syscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    func syscallX(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    func syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    func syscall6X(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    func syscall10(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 uintptr) (r1, r2 uintptr, err Errno)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. src/runtime/sys_openbsd_ppc64.s

    	MOVW	(R3), R3
    	MOVD	R3, (6*8)(R14)		// err
    
    ok:
    	RET
    
    // syscallX calls a function in libc on behalf of the syscall package.
    // syscallX takes a pointer to a struct like:
    // struct {
    //	fn    uintptr
    //	a1    uintptr
    //	a2    uintptr
    //	a3    uintptr
    //	r1    uintptr
    //	r2    uintptr
    //	err   uintptr
    // }
    // syscallX must be called on the g0 stack with the
    // C calling convention (use libcCall).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:48:11 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  6. src/syscall/mkall.sh

    # let it know that a system call is running.
    #
    # * syscall_${GOOS}.go
    #
    # This hand-written Go file implements system calls that need
    # special handling and lists "//sys" comments giving prototypes
    # for ones that can be auto-generated.  Mksyscall reads those
    # comments to generate the stubs.
    #
    # * syscall_${GOOS}_${GOARCH}.go
    #
    # Same as syscall_${GOOS}.go except that it contains code specific
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 18:22:23 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  7. src/syscall/asm_freebsd_arm64.s

    	RET
    ok:
    	MOVD	R0, r1+56(FP)
    	MOVD	R1, r2+64(FP)
    	MOVD	ZR, err+72(FP)
    	RET
    
    // Actually Syscall7
    // func Syscall9(num uintptr, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2, err uintptr)
    TEXT ·Syscall9(SB),NOSPLIT,$0-104
    	BL	runtime·entersyscall<ABIInternal>(SB)
    	MOVD	num+0(FP), R8	// syscall entry
    	MOVD	a1+8(FP), R0
    	MOVD	a2+16(FP), R1
    	MOVD	a3+24(FP), R2
    	MOVD	a4+32(FP), R3
    	MOVD	a5+40(FP), R4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:40:39 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/plan9/mkall.sh

    # let it know that a system call is running.
    #
    # * syscall_${GOOS}.go
    #
    # This hand-written Go file implements system calls that need
    # special handling and lists "//sys" comments giving prototypes
    # for ones that can be auto-generated.  Mksyscall reads those
    # comments to generate the stubs.
    #
    # * syscall_${GOOS}_${GOARCH}.go
    #
    # Same as syscall_${GOOS}.go except that it contains code specific
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 4.4K bytes
    - Viewed (0)
  9. src/internal/syscall/windows/registry/syscall.go

    //go:build windows
    
    package registry
    
    import "syscall"
    
    const (
    	_REG_OPTION_NON_VOLATILE = 0
    
    	_REG_CREATED_NEW_KEY     = 1
    	_REG_OPENED_EXISTING_KEY = 2
    
    	_ERROR_NO_MORE_ITEMS syscall.Errno = 259
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 07:20:34 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. src/syscall/asm_freebsd_riscv64.s

    	MOV	A0, err+48(FP)	// errno
    	CALL	runtime·exitsyscall(SB)
    	RET
    
    
    // func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr)
    TEXT ·Syscall6(SB),NOSPLIT,$0-80
    	CALL	runtime·entersyscall(SB)
    	MOV	a1+8(FP), A0
    	MOV	a2+16(FP), A1
    	MOV	a3+24(FP), A2
    	MOV	a4+32(FP), A3
    	MOV	a5+40(FP), A4
    	MOV	a6+48(FP), A5
    	MOV	trap+0(FP), T0	// syscall entry
    	ECALL
    	BNE	T0, ZERO, err
    	MOV	A0, r1+56(FP)	// r1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:39:46 UTC 2022
    - 2.8K bytes
    - Viewed (0)
Back to top