summaryrefslogtreecommitdiffstats
path: root/include/errno.h
blob: 496ccab0ee6d7e2d578489a4435003bdb73a9bef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __ERRNO_H
#define __ERRNO_H

#include <asm-generic/errno.h>
#include <linux/err.h>

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 */