From 65cd3fa81ff48cd44bcb3d9baf646dade15b9131 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Sat, 12 Jun 2010 00:19:46 +0200 Subject: Add basic errno support. Needed for hash table support; probably useful in a lot of other places as well. Signed-off-by: Wolfgang Denk --- include/errno.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 include/errno.h (limited to 'include') 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 + +extern int errno; + +#define __set_errno(val) do { errno = val; } while (0) + +#endif /* _ERRNO_H */ -- cgit v1.1