chez-libs

(system errno)
Login

System Error Status Binding

Synopsis

(import (system errno))

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

Conditions

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.

Operations

parameter: current-errno

The current numeric system error status.

procedure: (errno->string errno)

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