#ifndef __ERRNO_H #define __ERRNO_H #include #include extern int errno; void perror(const char *s); const char *errno_str(void); const char *strerror(int errnum); static inline const char *strerrorp(const void *errp) { return strerror(-PTR_ERR(errp)); } #endif /* __ERRNO_H */