errno

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package errno provide utilities to use C errno from the Go side.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() error

Get gets the current errno as Error.

func Lock

func Lock()

Lock the usage of errno.

func Unlock

func Unlock()

Unlock unlocks the errno package for being re-used.

Types

type Error

type Error C.int

Error is the type for the errno error.

const (
	// ErrNoEnt is the errno ENOENT.
	ErrNoEnt Error = C.ENOENT
	// ErrSrch is the errno ESRCH.
	ErrSrch Error = C.ESRCH
	// ErrBadf is the errno EBADF.
	ErrBadf Error = C.EBADF
	// ErrPerm is the errno EPERM.
	ErrPerm Error = C.EPERM
)

func (Error) Error

func (errno Error) Error() string

Jump to

Keyboard shortcuts

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