Files
photon/libc/include/errno.h

20 lines
242 B
C
Raw Normal View History

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