2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2016-05-08 22:55:17 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Samsung Electronics
|
|
|
|
* Przemyslaw Marczak <p.marczak@samsung.com>
|
|
|
|
*/
|
2010-06-11 22:19:46 +00:00
|
|
|
#ifndef _ERRNO_H
|
2016-05-08 22:55:17 +00:00
|
|
|
#define _ERRNO_H
|
2010-06-11 22:19:46 +00:00
|
|
|
|
2016-09-21 02:28:57 +00:00
|
|
|
#include <linux/errno.h>
|
2010-06-11 22:19:46 +00:00
|
|
|
|
|
|
|
extern int errno;
|
|
|
|
|
|
|
|
#define __set_errno(val) do { errno = val; } while (0)
|
|
|
|
|
2014-10-08 20:48:37 +00:00
|
|
|
#ifdef CONFIG_ERRNO_STR
|
|
|
|
const char *errno_str(int errno);
|
2016-05-08 22:55:18 +00:00
|
|
|
#else
|
|
|
|
static inline const char *errno_str(int errno)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2014-10-08 20:48:37 +00:00
|
|
|
#endif
|
2010-06-11 22:19:46 +00:00
|
|
|
#endif /* _ERRNO_H */
|