chsvlib
chsv helper source code

◆ GetLastSystemErrorAsPosixCode()

errno_t Chusov::GetLastSystemErrorAsPosixCode ( )

Returns a platform-specific last-error code represented in POSIX error code space.

Returns
Returns a POSIX platform error code for the calling thread.

On Windows the function calls the system GetLastError function and translates the result into POSIX code via the Win32ErrorToPosixError function.

On Posix systems the function returns the value of errno.