chez-libs

Artifact Content
Login

Artifact cc74c903f03e5af7c3a559683a8fc59907273e48:

Wiki page [(system errno)] by murphy 2016-05-21 15:17:12.
D 2016-05-21T15:17:12.381
L (system\serrno)
P 9caa8f7cf2d7ebd932fc2446e23b618bf6641cb4
U murphy
W 1364
<h1>System Error Status Binding</h1>

<h2>Synopsis</h2>

<code>(import (system errno))</code>

Access the system error status through [http://linux.die.net/man/3/errno|errno(3)] or [https://msdn.microsoft.com/en-us/library/windows/desktop/ms679360(v=vs.85).aspx|GetLastError].

<h2>Conditions</h2>

<h3>condition: <code>&errno</code></h3>
<h3>procedure: <code>(errno-condition? <i>any</i>)</code></h3>
<h3>procedure: <code>(make-errno-condition <i>errno</i>)</code></h3>
<h3>procedure: <code>(condition-errno <i>condition</i>)</code></h3>

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

<h3>parameter: <code>current-errno-condition</code></h3>

When queried, the parameter returns a composite condition with the types <tt>&errno</tt> and <tt>&message</tt> 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 <tt>condition-errno</tt> of the condition object that was passed in.

<h2>Operations</h2>

<h3>parameter: <code>current-errno</code></h3>

The current numeric system error status.

<h3>procedure: <code>(errno->string <i>errno</i>)</code></h3>

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

Z c120c0e6459ae528479477c99ab6c93c