]> git.ipfire.org Git - thirdparty/u-boot.git/blame - include/errno.h
errno: Add copyright header and header guard
[thirdparty/u-boot.git] / include / errno.h
CommitLineData
00e9e6d1
SG
1/*
2 * Copyright (C) 2014 Samsung Electronics
3 * Przemyslaw Marczak <p.marczak@samsung.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
65cd3fa8 7#ifndef _ERRNO_H
00e9e6d1 8#define _ERRNO_H
65cd3fa8
WD
9
10#include <asm-generic/errno.h>
11
12extern int errno;
13
14#define __set_errno(val) do { errno = val; } while (0)
15
59345b1f
PM
16#ifdef CONFIG_ERRNO_STR
17const char *errno_str(int errno);
18#endif
65cd3fa8 19#endif /* _ERRNO_H */