2007-07-05 16:01:30 +00:00
|
|
|
#ifndef __ERRNO_H
|
|
|
|
#define __ERRNO_H
|
|
|
|
|
2007-07-05 16:01:47 +00:00
|
|
|
#include <asm-generic/errno.h>
|
2015-09-10 10:04:02 +00:00
|
|
|
#include <linux/err.h>
|
2007-07-05 16:01:47 +00:00
|
|
|
|
2007-07-05 16:01:38 +00:00
|
|
|
extern int errno;
|
|
|
|
|
|
|
|
void perror(const char *s);
|
2007-07-05 16:01:55 +00:00
|
|
|
const char *errno_str(void);
|
2009-04-06 09:54:08 +00:00
|
|
|
const char *strerror(int errnum);
|
2007-07-05 16:01:30 +00:00
|
|
|
|
2015-09-10 10:04:02 +00:00
|
|
|
static inline const char *strerrorp(const void *errp)
|
|
|
|
{
|
|
|
|
return strerror(-PTR_ERR(errp));
|
|
|
|
}
|
|
|
|
|
2007-07-05 16:01:30 +00:00
|
|
|
#endif /* __ERRNO_H */
|