blob: 50f00de5d636ab9d854c52daaf088529422b180a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* SPDX-License-Identifier: GPL-2.0-only */
#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 */
|