blob: 12e526a0d7ed0ba0ebc25ac307cd90f7aa1e3abe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __ERRNO_H
#define __ERRNO_H
#include <linux/errno.h>
#include <linux/err.h>
extern int errno;
void perror(const char *s);
const char *strerror(int errnum);
static inline int errno_set(int err)
{
if (err < 0)
errno = -err;
return err;
}
#endif /* __ERRNO_H */
|