Documentation ¶ Overview ¶ Package errno provide utilities to use C errno from the Go side. Index ¶ func Get() error func Lock() func Unlock() type Error func (errno Error) Error() string 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 Source Files ¶ View all Source files errno_c.go Click to show internal directories. Click to hide internal directories.