chsvlib
chsv helper source code

◆ PosixErrorToChsvError()

chsverror_t Chusov::PosixErrorToChsvError ( errno_t  nError)
noexcept

Translates a POSIX error code to the corresponding chsvlib error code.

Parameters
[in]nErrorA POSIX error code to be translated.
Returns
The function returns a value of the chsvlib error code, which corresponds to the specified POSIX error code. If the correspondence is not established, the returned value is CHSVERROR_PLATFORM_ERROR.

Possible chsvlib error codes to be returned are defined in the Error handling group.