metal-cos/include/errno.h

42 lines
936 B
C
Raw Normal View History

2014-09-05 06:26:02 +00:00
#ifndef __ERRNO_H__
#define __ERRNO_H__
2015-12-17 01:38:31 +00:00
#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
2015-02-03 22:06:17 +00:00
#define ETIMEDOUT 0x1BAD0010
2023-08-21 21:00:37 +00:00
#define EACCES 0x1BAD0011
2023-08-27 20:56:13 +00:00
#define EPERM 0x1BAD0012
#define ENOSPC 0x1BAD0013
#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
2014-09-05 06:26:02 +00:00
#endif /* __ERRNO_H__ */