metal-cos/include/errno.h
2023-08-21 17:00:37 -04:00

40 lines
883 B
C

#ifndef __ERRNO_H__
#define __ERRNO_H__
#ifndef _KERNEL
int *__error();
#define errno (* __error())
#endif
#define EIO 0x1BAD0001
#define EBADF 0x1BAD0002
#define EINVAL 0x1BAD0003
#define EFAULT 0x1BAD0004
#define ENOMEM 0x1BAD0005
#define ENOENT 0x1BAD0006
#define ENOTDIR 0x1BAD0007
#define ENAMETOOLONG 0x1BAD0008
#define ENOSYS 0x1BAD0009
#define EAGAIN 0x1BAD000A
#define EBUSY 0x1BAD000B
#define EWOULDBLOCK 0x1BAD000C
#define EALREADY 0x1BAD000D
#define EINPROGRESS 0x1BAD000E
#define ENFILE 0x1BAD000F
#define ETIMEDOUT 0x1BAD0010
#define EACCES 0x1BAD0011
#define EAFNOSUPPORT 0x1BAD0020
#define ENOPROTOOPT 0x1BAD0021
#define EOPNOTSUPP 0x1BAD0022
#define EHOSTUNREACH 0x1BAD0023
#define ECONNABORTED 0x1BAD0024
#define ECONNRESET 0x1BAD0025
#define ENOTCONN 0x1BAD0026
#define ENOBUFS 0x1BAD0027
#define EADDRINUSE 0x1BAD0028
#endif /* __ERRNO_H__ */