Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 472 for syscall1 (0.14 sec)

  1. 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)
  2. src/runtime/syscall_aix.go

    	_, err = syscall3(&libc_ioctl, fd, req, arg)
    	return
    }
    
    //go:linkname syscall_setgid syscall.setgid
    //go:nosplit
    func syscall_setgid(gid uintptr) (err uintptr) {
    	_, err = syscall1(&libc_setgid, gid)
    	return
    }
    
    //go:linkname syscall_setgroups1 syscall.setgroups1
    //go:nosplit
    func syscall_setgroups1(ngid, gid uintptr) (err uintptr) {
    	_, err = syscall2(&libc_setgroups, ngid, gid)
    	return
    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/syscall/dll_windows.go

    func Syscall12(trap, nargs, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12 uintptr) (r1, r2 uintptr, err Errno)
    
    // Deprecated: Use [SyscallN] instead.
    func Syscall15(trap, nargs, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15 uintptr) (r1, r2 uintptr, err Errno)
    
    // Deprecated: Use [SyscallN] instead.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 7.7K 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/zsyscall_windows.go

    	r0, _, e1 := Syscall(procGetCurrentProcess.Addr(), 0, 0, 0, 0)
    	pseudoHandle = Handle(r0)
    	if pseudoHandle == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func getCurrentProcessId() (pid uint32) {
    	r0, _, _ := Syscall(procGetCurrentProcessId.Addr(), 0, 0, 0, 0)
    	pid = uint32(r0)
    	return
    }
    
    func GetEnvironmentStrings() (envs *uint16, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 56.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    func RegCloseKey(key Handle) (regerrno error) {
    	r0, _, _ := syscall.Syscall(procRegCloseKey.Addr(), 1, uintptr(key), 0, 0)
    	if r0 != 0 {
    		regerrno = syscall.Errno(r0)
    	}
    	return
    }
    
    func RegEnumKeyEx(key Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, class *uint16, classLen *uint32, lastWriteTime *Filetime) (regerrno error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/vendor/golang.org/x/sys/windows/syscall.go

    // holds a value of type syscall.Errno.
    package windows // import "golang.org/x/sys/windows"
    
    import (
    	"bytes"
    	"strings"
    	"syscall"
    	"unsafe"
    )
    
    // ByteSliceFromString returns a NUL-terminated slice of bytes
    // containing the text of s. If s contains a NUL byte at any
    // location, it returns (nil, syscall.EINVAL).
    func ByteSliceFromString(s string) ([]byte, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  10. 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)
Back to top