123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef ZEPHYR_INCLUDE_SYS_ERRNO_PRIVATE_H_
- #define ZEPHYR_INCLUDE_SYS_ERRNO_PRIVATE_H_
- #include <toolchain.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifdef CONFIG_ERRNO_IN_TLS
- extern __thread int z_errno_var;
- static inline int *z_errno(void)
- {
- return &z_errno_var;
- }
- #else
- __syscall int *z_errno(void);
- #endif
- #ifdef __cplusplus
- }
- #endif
- #ifndef CONFIG_ERRNO_IN_TLS
- #include <syscalls/errno_private.h>
- #endif
- #endif
|