Subversion Repositories Kolibri OS

Rev

Rev 8793 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef _ERRNO_H_
  2. #define _ERRNO_H_
  3.  
  4. #include <stddef.h>
  5.  
  6. #ifdef _BUILD_LIBC
  7. #define errno __errno
  8. extern int __errno;
  9. #else
  10. extern int* __errno;
  11. #define errno *__errno
  12. #endif
  13.  
  14. #define ENOTSUP   2  // Function is not supported
  15. #define EUNKNFS   3  // Unknown file system
  16. #define ENOTFOUND 5  // File not found
  17. #define EEOF      6  // End of file
  18. #define EFAULT    7  // Pointer lies outside of application memory
  19. #define EDQUOT    8  // Disk is full
  20. #define EFS       9  // File system error
  21. #define EACCES    10 // Access denied
  22. #define EDEV      11 // Device error
  23. #define ENOMEMFS  12 // File system requires more memory
  24.  
  25. #define ENOMEM   30 // Not enough memory
  26. #define ENOEXEC  31 // Is not executable
  27. #define EPROCLIM 32 // Too many processes
  28. #define EINVAL   33 // Invalid argument
  29.  
  30. #define EDOM   50 // Numerical argument out of domain
  31. #define ERANGE 51 // Result too large
  32. #define EILSEQ 52 // Illegal byte sequence
  33.  
  34. #define ENOBUFS      60 // Broken buffer
  35. #define EINPROGRESS  61 // Operation now in progress
  36. #define EOPNOTSUPP   62 // Operation not supported on transport endpoint
  37. #define EWOULDBLOCK  63 // Operation would block
  38. #define ENOTCONN     64 // Transport endpoint is not connected
  39. #define EALREADY     65 // Operation already in progress
  40. #define EMSGSIZE     66 // Message too long
  41. #define EADDRINUSE   67 // Address already in use
  42. #define ECONNREFUSED 68 // Connection refused
  43. #define ECONNRESET   69 // Connection reset by peer
  44. #define EISCONN      70 // Transport endpoint is already connected
  45. #define ETIMEDOUT    71 // Connection timed out
  46. #define ECONNABORTED 72 // Software caused connection abort
  47.  
  48. /*
  49. * UNIX-like errno
  50. * Will be removed after changing STDIO.
  51. */
  52.  
  53. #define ENOTDIR   80
  54. #define EBADF     81
  55. #define EIO       82
  56. #define EISDIR    83
  57. #define ENOENT    84
  58. #define EOVERFLOW 85
  59.  
  60. #endif // _ERRNO_H_
  61.