Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 176 for syscalls (0.79 sec)

  1. src/internal/trace/testdata/generators/go122-syscall-steal-proc-reacquire-new-proc.go

    // license that can be found in the LICENSE file.
    
    // Tests syscall P stealing.
    
    package main
    
    import (
    	"internal/trace"
    	"internal/trace/event/go122"
    	testgen "internal/trace/internal/testgen/go122"
    )
    
    func main() {
    	testgen.Main(gen)
    }
    
    func gen(t *testgen.Trace) {
    	g := t.Generation(1)
    
    	// One goroutine enters a syscall, grabs a P, and starts running.
    	b0 := g.Batch(trace.ThreadID(0), 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. src/syscall/zsyscall_openbsd_386.go

    func Close(fd int) (err error) {
    	_, _, e1 := syscall(abi.FuncPCABI0(libc_close_trampoline), uintptr(fd), 0, 0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func libc_close_trampoline()
    
    //go:cgo_import_dynamic libc_close close "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Dup(fd int) (nfd int, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  3. 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)
  4. src/internal/syscall/unix/eaccess_openbsd.go

    package unix
    
    import (
    	"internal/abi"
    	"syscall"
    	"unsafe"
    )
    
    //go:linkname syscall_syscall6 syscall.syscall6
    func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
    
    func libc_faccessat_trampoline()
    
    //go:cgo_import_dynamic libc_faccessat faccessat "libc.so"
    
    func faccessat(dirfd int, path string, mode uint32, flags int) error {
    	p, err := syscall.BytePtrFromString(path)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:36:52 UTC 2024
    - 946 bytes
    - Viewed (0)
  5. src/internal/syscall/windows/syscall_windows.go

    		var s syscall.Handle
    		s, sendRecvMsgFunc.err = syscall.Socket(syscall.AF_INET, syscall.SOCK_DGRAM, syscall.IPPROTO_UDP)
    		if sendRecvMsgFunc.err != nil {
    			return
    		}
    		defer syscall.CloseHandle(s)
    		var n uint32
    		sendRecvMsgFunc.err = syscall.WSAIoctl(s,
    			syscall.SIO_GET_EXTENSION_FUNCTION_POINTER,
    			(*byte)(unsafe.Pointer(&WSAID_WSARECVMSG)),
    			uint32(unsafe.Sizeof(WSAID_WSARECVMSG)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary-reacquire-new-proc-bare-m.go

    // license that can be found in the LICENSE file.
    
    // Tests syscall P stealing at a generation boundary.
    
    package main
    
    import (
    	"internal/trace"
    	"internal/trace/event/go122"
    	testgen "internal/trace/internal/testgen/go122"
    )
    
    func main() {
    	testgen.Main(gen)
    }
    
    func gen(t *testgen.Trace) {
    	g := t.Generation(1)
    
    	// One goroutine is exiting with a syscall. It already
    	// acquired a new P.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1009 bytes
    - Viewed (0)
  7. src/runtime/syscall_windows.go

    // must be kept 16-byte aligned on syscall entry.
    //
    // Although it only permits maximum 42 parameters, it
    // is arguably large enough.
    const maxArgs = 42
    
    //go:linkname syscall_SyscallN syscall.SyscallN
    //go:nosplit
    func syscall_SyscallN(fn uintptr, args ...uintptr) (r1, r2, err uintptr) {
    	if len(args) > maxArgs {
    		panic("runtime: SyscallN has too many arguments")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. src/internal/trace/testdata/tests/go122-syscall-steal-proc-sitting-in-syscall.test

    Carlos Amedee <******@****.***> 1715265901 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 429 bytes
    - Viewed (0)
  9. src/os/os_test.go

    	}
    	if perr, ok := err.(*PathError); !ok || perr.Err != syscall.ESPIPE {
    		t.Errorf("Seek returned error %v, want &PathError{Err: syscall.ESPIPE}", err)
    	}
    	_, err = w.Seek(0, 0)
    	if err == nil {
    		t.Fatal("Seek on pipe should fail")
    	}
    	if perr, ok := err.(*PathError); !ok || perr.Err != syscall.ESPIPE {
    		t.Errorf("Seek returned error %v, want &PathError{Err: syscall.ESPIPE}", err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    // Do the interface allocations only once for common
    // Errno values.
    var (
    	errEAGAIN error = syscall.EAGAIN
    	errEINVAL error = syscall.EINVAL
    	errENOENT error = syscall.ENOENT
    )
    
    var ZosTraceLevel int
    var ZosTracefile *os.File
    
    var (
    	signalNameMapOnce sync.Once
    	signalNameMap     map[string]syscall.Signal
    )
    
    // errnoErr returns common boxed Errno values, to prevent
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
Back to top