---
name: "xs_errno"
section: "3"
platform: "linux"
package: "libxs-dev"
version: "1.2.0-2"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/xs_errno"
---

# xs\_errno(3)

retrieve value of errno for the calling thread

## NAME

xs\_errno - retrieve value of errno for the calling thread

## SYNOPSIS

**int xs\_errno (void);**

## DESCRIPTION

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.

## SEE ALSO

[**xs**(7)](/xs/7.md)

## AUTHORS

The Crossroads documentation was written by Martin Sustrik \<**sustrik@250bpm.com**\[1\]\> and Martin Lucina \<**martin@lucina.net**\[2\]\>.

## NOTES

- 1\.

  sustrik@250bpm.com

  mailto:sustrik@250bpm.com

- 2\.

  martin@lucina.net

  mailto:martin@lucina.net
