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