posix_nifs.h
Include dependency graph for posix_nifs.h:
This graph shows which files directly or indirectly include posix_nifs.h:
Declaration of NIFs based on POSIX functions.
Functions
-
term posix_errno_to_term(int err, GlobalContext *glb)
Convenient function to return posix errors as atom.
POSIX does not define the values of errno errors, so this function makes sure Erlang code can interpret error codes whatever the platform.
- Parameters:
err – the error code, typically obtained from
errno(3)
glb – the global context
- Returns:
an atom representing the error or an integer if the error number is not known.