]>
Commit | Line | Data |
---|---|---|
00e9e6d1 SG |
1 | /* |
2 | * Copyright (C) 2014 Samsung Electronics | |
3 | * Przemyslaw Marczak <[email protected]> | |
4 | * | |
5 | * SPDX-License-Identifier: GPL-2.0+ | |
6 | */ | |
65cd3fa8 | 7 | #ifndef _ERRNO_H |
00e9e6d1 | 8 | #define _ERRNO_H |
65cd3fa8 | 9 | |
5d97dff0 | 10 | #include <linux/errno.h> |
65cd3fa8 WD |
11 | |
12 | extern int errno; | |
13 | ||
14 | #define __set_errno(val) do { errno = val; } while (0) | |
15 | ||
59345b1f PM |
16 | #ifdef CONFIG_ERRNO_STR |
17 | const char *errno_str(int errno); | |
862887d8 SG |
18 | #else |
19 | static inline const char *errno_str(int errno) | |
20 | { | |
21 | return 0; | |
22 | } | |
59345b1f | 23 | #endif |
65cd3fa8 | 24 | #endif /* _ERRNO_H */ |