fxlibc/include/errno.h
Lephenixnoir 5f48a6b4e0
errno: add the errno variable and base macros
A <bits/errno.h> file will likely by added later on for each target to
add more specific values.
2021-05-16 18:12:46 +02:00

12 lines
251 B
C

#ifndef __ERRNO_H__
# define __ERRNO_H__
/* Initialized to 0 at startup. Currently not TLS, maybe in the future if
threads are supported. */
extern int errno;
#define EDOM 1
#define EILSEQ 2
#define ERANGE 3
#endif /*__ERRNO_H__*/