xs_errno(3)

xs_errno3

Retrieve value of errno for the calling thread

Usage

int xs_errno (void);

Overview

The xs_errno() function shall retrieve the value of the errno variable for the calling thread.

The xs_errno() function is provided to assist users on non-POSIX systems who are experiencing issues with retrieving the correct value of errno directly. Specifically, users on Win32 systems whose application is using a different C run-time library from the C run-time library in use by Crossroads will need to use xs_errno() for correct operation.

Important

Users not experiencing issues with retrieving the correct value of errno should not use this function and should instead access the errno variable directly.

Return value

The xs_errno() function shall return the value of the errno variable for the calling thread.

Errors

No errors are defined.

Notes

Releases

Unchanged in 3 releases since Debian 8 (Jessie).

  1. 8–10

Authors

The Crossroads documentation was written by Martin Sustrik <[email protected][1]> and Martin Lucina <[email protected][2]>.

From libxs-dev 1.2.0-2 in Debian 10 (Buster). Parsed by carta from the page's man source.