summaryrefslogtreecommitdiff
path: root/include/errno.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2010-06-11 22:19:46 (GMT)
committerWolfgang Denk <wd@denx.de>2010-09-19 17:29:47 (GMT)
commit65cd3fa81ff48cd44bcb3d9baf646dade15b9131 (patch)
tree93b87979aa8ca6b200923a1f18eabc4381e313d8 /include/errno.h
parenta2a649d73cc24c306b66cd53d939d1776e6f4e41 (diff)
downloadu-boot-65cd3fa81ff48cd44bcb3d9baf646dade15b9131.tar.xz
Add basic errno support.
Needed for hash table support; probably useful in a lot of other places as well. Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'include/errno.h')
-rw-r--r--include/errno.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/errno.h b/include/errno.h
new file mode 100644
index 0000000..e24a33b
--- /dev/null
+++ b/include/errno.h
@@ -0,0 +1,9 @@
+#ifndef _ERRNO_H
+
+#include <asm-generic/errno.h>
+
+extern int errno;
+
+#define __set_errno(val) do { errno = val; } while (0)
+
+#endif /* _ERRNO_H */