xref: /rk3399_rockchip-uboot/include/errno.h (revision 59345b1f0f9941d32b45d0e27401355b34106357)
165cd3fa8SWolfgang Denk #ifndef _ERRNO_H
265cd3fa8SWolfgang Denk 
365cd3fa8SWolfgang Denk #include <asm-generic/errno.h>
465cd3fa8SWolfgang Denk 
565cd3fa8SWolfgang Denk extern int errno;
665cd3fa8SWolfgang Denk 
765cd3fa8SWolfgang Denk #define __set_errno(val) do { errno = val; } while (0)
865cd3fa8SWolfgang Denk 
9*59345b1fSPrzemyslaw Marczak #ifdef CONFIG_ERRNO_STR
10*59345b1fSPrzemyslaw Marczak const char *errno_str(int errno);
11*59345b1fSPrzemyslaw Marczak #endif
1265cd3fa8SWolfgang Denk #endif /* _ERRNO_H */
13