- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 204 for syscalls (0.12 sec)
-
src/os/user/lookup_windows.go
package user import ( "fmt" "internal/syscall/windows" "internal/syscall/windows/registry" "syscall" "unsafe" ) func isDomainJoined() (bool, error) { var domain *uint16 var status uint32 err := syscall.NetGetJoinInformation(nil, &domain, &status) if err != nil { return false, err } syscall.NetApiBufferFree((*byte)(unsafe.Pointer(domain))) return status == syscall.NetSetupDomainName, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 16:42:41 UTC 2023 - 11.8K bytes - Viewed (0) -
src/runtime/sys_linux_mips64x.s
// nanosleep(&ts, 0) ADDV $8, R29, R4 MOVW $0, R5 MOVV $SYS_nanosleep, R2 SYSCALL RET TEXT runtimeĀ·gettid(SB),NOSPLIT,$0-4 MOVV $SYS_gettid, R2 SYSCALL MOVW R2, ret+0(FP) RET TEXT runtimeĀ·raise(SB),NOSPLIT|NOFRAME,$0 MOVV $SYS_getpid, R2 SYSCALL MOVW R2, R16 MOVV $SYS_gettid, R2 SYSCALL MOVW R2, R5 // arg 2 tid MOVW R16, R4 // arg 1 pid MOVW sig+0(FP), R6 // arg 3
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 18 20:57:24 UTC 2022 - 12K bytes - Viewed (0) -
src/os/os_unix_test.go
t.Skipf("syscall.Pipe is not available on %s.", runtime.GOOS) } p := make([]int, 2) if err := syscall.Pipe(p); err != nil { t.Fatalf("pipe: %v", err) } defer syscall.Close(p[1]) // Set the read-side to non-blocking. if !blocking { if err := syscall.SetNonblock(p[0], true); err != nil { syscall.Close(p[0]) t.Fatalf("SetNonblock: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:32:43 UTC 2023 - 11.5K bytes - Viewed (0) -
src/net/unixsock.go
// This implements the [syscall.Conn] interface. func (c *UnixConn) SyscallConn() (syscall.RawConn, error) { if !c.ok() { return nil, syscall.EINVAL } return newRawConn(c.fd), nil } // CloseRead shuts down the reading side of the Unix domain connection. // Most callers should just use Close. func (c *UnixConn) CloseRead() error { if !c.ok() { return syscall.EINVAL }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 10.1K bytes - Viewed (0) -
src/runtime/sys_openbsd_riscv64.s
MOVW (X10), X10 MOV X10, (6*8)(X9) // 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: Wed Oct 04 02:55:17 UTC 2023 - 16.8K bytes - Viewed (0) -
src/runtime/runtime-gdb.py
status = ptr['atomicstatus']['value']&~G_SCAN # Goroutine is not running nor in syscall, so use the info in goroutine if status != G_RUNNING and status != G_SYSCALL: return pc.cast(vp), sp.cast(vp) # If the goroutine is in a syscall, use syscallpc/sp. pc, sp = ptr['syscallpc'], ptr['syscallsp'] if sp != 0: return pc.cast(vp), sp.cast(vp) # Otherwise, the goroutine is running, so it doesn't have
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 10 12:59:20 UTC 2023 - 15.4K bytes - Viewed (0) -
src/vendor/golang.org/x/net/route/address.go
func parseAddrs(attrs uint, fn func(int, []byte) (int, Addr, error), b []byte) ([]Addr, error) { var as [syscall.RTAX_MAX]Addr af := int(syscall.AF_UNSPEC) for i := uint(0); i < syscall.RTAX_MAX && len(b) >= roundup(0); i++ { if attrs&(1<<i) == 0 { continue } if i <= syscall.RTAX_BRD { switch b[1] { case syscall.AF_LINK: a, err := parseLinkAddr(b) if err != nil { return nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 9.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_netbsd.go
Slen uint8 Data [12]int8 raw RawSockaddrDatalink } func anyToSockaddrGOOS(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { return nil, EAFNOSUPPORT } func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) func sysctlNodes(mib []_C_int) (nodes []Sysctlnode, err error) { var olen uintptr // Get a list of all sysctl nodes below the given MIB by performing
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 10 16:32:44 UTC 2023 - 12.3K bytes - Viewed (0) -
src/os/os_windows_test.go
header windows.REPARSE_DATA_BUFFER_HEADER detail [syscall.MAXIMUM_REPARSE_DATA_BUFFER_SIZE]byte } func createDirLink(link string, rdb *_REPARSE_DATA_BUFFER) error { err := os.Mkdir(link, 0777) if err != nil { return err } linkp := syscall.StringToUTF16(link) fd, err := syscall.CreateFile(&linkp[0], syscall.GENERIC_WRITE, 0, nil, syscall.OPEN_EXISTING,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 41.8K bytes - Viewed (0) -
src/runtime/sys_openbsd_amd64.s
ok: XORL AX, AX // no error (it's ignored anyway) 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 Jun 06 18:49:01 UTC 2023 - 15.5K bytes - Viewed (0)