(system errno)

System Error Status Binding


(import (system errno))

Access the system error status through errno(3) or GetLastError.


condition: &errno

procedure: (errno-condition? any)

procedure: (make-errno-condition errno)

procedure: (condition-errno condition)

The &errno condition type is derived from &condition and stores a numeric error code that may be extracted using condition-errno.

parameter: current-errno-condition

When queried, the parameter returns a composite condition with the types &errno and &message that contains the current system error status and a human-readable string describing the status.

When set, the parameter sets the system error status to the condition-errno of the condition object that was passed in.


parameter: current-errno

The current numeric system error status.

procedure: (errno->string errno)

Returns a human-readable description of a system error status.