Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenOperation ¶
OpenOperation type embodies any kind of function calls that will result in a call to an open(2) syscall
type OpenOperationArgs ¶
type OpenOperationArgs struct { // Path is the path to the file to be opened Path string // Flags are the flags passed to the open(2) syscall Flags int // Perms are the permissions passed to the open(2) syscall if the creation of a file is required Perms fs.FileMode }
OpenOperationArgs is the arguments for an open operation
func (OpenOperationArgs) IsArgOf ¶
func (OpenOperationArgs) IsArgOf(*OpenOperation)
type OpenOperationRes ¶
type OpenOperationRes[File any] struct { // File is the file descriptor returned by the open(2) syscall File *File // Err is the error returned by the function Err *error }
OpenOperationRes is the result of an open operation
func (OpenOperationRes[File]) IsResultOf ¶
func (OpenOperationRes[File]) IsResultOf(*OpenOperation)
Click to show internal directories.
Click to hide internal directories.