2020-04-30 17:46:06 +01:00
|
|
|
#ifndef ERRNO_H_
|
|
|
|
|
#define ERRNO_H_
|
|
|
|
|
|
|
|
|
|
#include <sys/_errno.h>
|
|
|
|
|
|
2021-12-23 16:41:53 +00:00
|
|
|
#define errno (__get_errno())
|
2020-04-30 17:46:06 +01:00
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-12-23 16:41:53 +00:00
|
|
|
extern void __set_errno(int v);
|
|
|
|
|
extern int __get_errno(void);
|
2020-04-30 17:46:06 +01:00
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|