]> Git Repo - J-u-boot.git/blame - include/errno.h
lib: errno: sync error codes
[J-u-boot.git] / include / errno.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
00e9e6d1
SG
2/*
3 * Copyright (C) 2014 Samsung Electronics
4 * Przemyslaw Marczak <[email protected]>
00e9e6d1 5 */
65cd3fa8 6#ifndef _ERRNO_H
00e9e6d1 7#define _ERRNO_H
65cd3fa8 8
5d97dff0 9#include <linux/errno.h>
65cd3fa8
WD
10
11extern int errno;
12
13#define __set_errno(val) do { errno = val; } while (0)
14
59345b1f
PM
15#ifdef CONFIG_ERRNO_STR
16const char *errno_str(int errno);
862887d8
SG
17#else
18static inline const char *errno_str(int errno)
19{
20 return 0;
21}
59345b1f 22#endif
65cd3fa8 23#endif /* _ERRNO_H */
This page took 0.506349 seconds and 4 git commands to generate.