Template Struct PosixCallResult

Struct Documentation

template<typename T>
struct PosixCallResult

result of a posix call

Public Functions

PosixCallResult() noexcept = default
cxx::string<POSIX_CALL_ERROR_STRING_SIZE> getHumanReadableErrnum() const noexcept

returns the result of std::strerror(errnum) which acquires a human readable error string

Public Members

T value = {}

the return value of the posix function call

int32_t errnum = POSIX_CALL_INVALID_ERRNO

the errno value which was set by the posix function call