rawfile_block

package
v0.0.0-...-ee0ced5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockingPoll

func BlockingPoll(fds *PollEvent, nfds int, timeout *syscall.Timespec) (int, syscall.Errno)

BlockingPoll on amd64/arm64 makes the ppoll() syscall while calling the version of entersyscall that relinquishes the P so that other Gs can run. This is meant to be called in cases when the syscall is expected to block. On non amd64/arm64 platforms it just forwards to the ppoll() system call.

func TranslateErrno

func TranslateErrno(e syscall.Errno) *tcpip.Error

TranslateErrno translate an errno from the syscall package into a *tcpip.Error.

Valid, but unrecognized errnos will be translated to tcpip.ErrInvalidEndpointState (EINVAL). Panics on invalid errnos.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL