diff options
Diffstat (limited to 'nuttx/include/errno.h')
-rw-r--r-- | nuttx/include/errno.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/include/errno.h b/nuttx/include/errno.h index 50fddfc9f..d189ccaa0 100644 --- a/nuttx/include/errno.h +++ b/nuttx/include/errno.h @@ -188,8 +188,16 @@ extern "C" { #define EXTERN extern #endif +/* Return a pointer to the thread specifid errno */ + extern int *get_errno_ptr(void); +#ifndef CONFIG_CAN_CAST_POINTERS +/* Return the value ERROR cast to (void*) */ + +extern void *get_errorptr(void); +#endif + #undef EXTERN #if defined(__cplusplus) } |