dmi_file_stat
Description
The dmi_file_stat function is a cross-platform wrapper around fstat(2)
that retries automatically if interrupted by a signal (EINTR).
Return value
Returns 0 on success, or -1 on error with errno set accordingly.
A missing argument is not an error of the system: -1 is returned, and
errno is left as it was.
Errors
DMI_ERROR_ARGUMENT_NULL-
stisnullptr. The error reaches no error queue, since the function takes no context to hold it.
See also
dmi_file_read,
dmi_file_seek,
dmi_file_close,
fstat(2)