Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 87 for syscall2 (0.12 sec)

  1. src/internal/trace/event/go122/event.go

    	EvGoUnblock           // goroutine is unblocked [timestamp, goroutine ID, goroutine seq, stack ID]
    	EvGoSyscallBegin      // syscall enter [timestamp, P seq, stack ID]
    	EvGoSyscallEnd        // syscall exit [timestamp]
    	EvGoSyscallEndBlocked // syscall exit and it blocked at some point [timestamp]
    	EvGoStatus            // goroutine status at the start of a generation [timestamp, goroutine ID, thread ID, status]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  2. src/syscall/mksyscall.pl

    		}
    	}
    
    	# Determine which form to use; pad args with zeros.
    	my $asm = "Syscall";
    	if ($nonblock) {
    		if ($errvar eq "" && $ENV{'GOOS'} eq "linux") {
    			$asm = "rawSyscallNoError";
    		} else {
    			$asm = "RawSyscall";
    		}
    	}
    	if ($libc) {
    		# Call unexported syscall functions (which take
    		# libc functions instead of syscall numbers).
    		$asm = lcfirst($asm);
    	}
    	if(@args <= 3) {
    		while(@args < 3) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:15:02 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. src/runtime/mfinal.go

    // A very simplified example showing where KeepAlive is required:
    //
    //	type File struct { d int }
    //	d, err := syscall.Open("/file/path", syscall.O_RDONLY, 0)
    //	// ... do something if err != nil ...
    //	p := &File{d}
    //	runtime.SetFinalizer(p, func(p *File) { syscall.Close(p.d) })
    //	var buf [10]byte
    //	n, err := syscall.Read(p.d, buf[:])
    //	// Ensure p is not finalized until Read returns.
    //	runtime.KeepAlive(p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. src/os/readfrom_linux_test.go

    	// This bypasses the non-blocking support and is required
    	// to recreate the problem in the issue (#59041).
    	ttyFD, err := syscall.Open(ttyName, syscall.O_RDWR, 0)
    	if err != nil {
    		t.Skipf("skipping test because failed to open tty: %v", err)
    	}
    	defer syscall.Close(ttyFD)
    
    	tty := NewFile(uintptr(ttyFD), "tty")
    	defer tty.Close()
    
    	client, server := createSocketPair(t, proto)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. src/cmd/trace/goroutines.go

    		<td> <a href="/block?name={{.Name}}">graph</a> <a href="/block?name={{.Name}}&raw=1" download="block.profile">(download)</a></td>
    	</tr>
    	<tr>
    		<td>Syscall profile:</td>
    		<td> <a href="/syscall?name={{.Name}}">graph</a> <a href="/syscall?name={{.Name}}&raw=1" download="syscall.profile">(download)</a></td>
    		</tr>
    	<tr>
    		<td>Scheduler wait profile:</td>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. src/runtime/runtime.go

    		timeSleep(1_000_000)
    	}
    	return r
    }
    
    var envs []string
    var argslice []string
    
    //go:linkname syscall_runtime_envs syscall.runtime_envs
    func syscall_runtime_envs() []string { return append([]string{}, envs...) }
    
    //go:linkname syscall_Getpagesize syscall.Getpagesize
    func syscall_Getpagesize() int { return int(physPageSize) }
    
    //go:linkname os_runtime_args os.runtime_args
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/runtime/os_linux.go

    //go:nosplit
    func osyield_no_g() {
    	osyield()
    }
    
    func pipe2(flags int32) (r, w int32, errno int32)
    
    //go:nosplit
    func fcntl(fd, cmd, arg int32) (ret int32, errno int32) {
    	r, _, err := syscall.Syscall6(syscall.SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0)
    	return int32(r), int32(err)
    }
    
    const (
    	_si_max_size    = 128
    	_sigev_max_size = 64
    )
    
    //go:nosplit
    //go:nowritebarrierrec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  8. pkg/proxy/util/nfacct/nfacct_linux_test.go

    			counterName: "metric-2",
    			handler: &fakeHandler{
    				errs: []error{syscall.EBUSY},
    			},
    			err: ErrObjectAlreadyExists,
    			// expected calls: NFNL_MSG_ACCT_NEW
    			netlinkCalls: 1,
    		},
    		{
    			name:        "insufficient privilege",
    			counterName: "metric-2",
    			handler: &fakeHandler{
    				errs: []error{syscall.EPERM},
    			},
    			err: ErrUnexpected,
    			// expected calls: NFNL_MSG_ACCT_NEW
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  9. src/runtime/os_windows.go

    }
    
    //go:linkname windows_QueryPerformanceCounter internal/syscall/windows.QueryPerformanceCounter
    func windows_QueryPerformanceCounter() int64 {
    	var counter int64
    	stdcall1(_QueryPerformanceCounter, uintptr(unsafe.Pointer(&counter)))
    	return counter
    }
    
    //go:linkname windows_QueryPerformanceFrequency internal/syscall/windows.QueryPerformanceFrequency
    func windows_QueryPerformanceFrequency() int64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/main.go

    			*flagOutfile += ".exe"
    		}
    	}
    
    	interpreter = *flagInterpreter
    
    	if *flagBuildid == "" && ctxt.Target.IsOpenbsd() {
    		// TODO(jsing): Remove once direct syscalls are no longer in use.
    		// OpenBSD 6.7 onwards will not permit direct syscalls from a
    		// dynamically linked binary unless it identifies the binary
    		// contains a .note.go.buildid ELF note. See issue #36435.
    		*flagBuildid = "go-openbsd"
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top