home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s038 / 10.ddi / 017.LIF / ERRNO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-02  |  2.7 KB  |  67 lines

  1. /* errno.h - error number definitions
  2.  * $Version: 1.1 $
  3.  * Copyright (c) 1988-91 Intel Corporation, ALL RIGHTS RESERVED.
  4.  */
  5.  
  6. #ifndef _errnoh
  7. #define _errnoh
  8. /*lint -library */
  9.  
  10. #ifndef _reenth
  11. #include <reent.h>
  12. #endif
  13.  
  14. #define errno (_thread_ptr()->_errno)
  15.  
  16. #ifndef EBUSY        /*  These mnemonics are also defined in RMXERR.H  */
  17.  
  18. #define EBUSY           3  /* system resource busy */
  19. #define EEXIST          6  /* file already exists */
  20. #define EIO            43  /* I/O error  */
  21. #endif
  22.  
  23. #define E2BIG           1  /* size of argument list too long */
  24. #define EACCES          2  /* file access denied */
  25. #define EAGAIN          4  /* system resource temporarily unavailable */
  26. #define EBADF           5  /* invalid file descriptor */
  27. #define ECHILD          7  /* no child process  */
  28. #define EDEADLK         8  /* resource deadlock avoided */
  29. #define EDEADLOCK       9  /* locking violation */
  30. #define EDOM           10  /* math arg out of domain of func */
  31. #define EFAULT         11  /* bad address  */
  32. #define EFBIG          12  /* file too large */
  33. #define EFREE          13  /* bad free pointer */
  34. #define EINTR          14  /* interrupted function call */
  35. #define EINVAL         15  /* invalid argument or operation */
  36. #define EISDIR         16  /* is a directory */
  37. #define EMFILE         17  /* too many open files for process */
  38. #define EMLINK         18  /* too many links */
  39. #define ENAMETOOLONG   19  /* filename too long */
  40. #define ENFILE         20  /* system file table overflow */
  41. #define ENODEV         21  /* no such device */
  42. #define ENOENT         22  /* file or path not found */
  43. #define ENOEXEC        23  /* file not executable */
  44. #define ENOLCK         24  /* no locks available */
  45. #define ENOMEM         25  /* not enough space */
  46. #define ENOSPC         26  /* no space left on device */
  47. #define ENOSYS         27  /* function not implemented */
  48. #define ENOTBLK        28  /* block device required */
  49. #define ENOTDIR        29  /* not a directory */
  50. #define ENOTEMPTY      30  /* directory not empty */
  51. #define ENOTTY         31  /* inappropriate I/O control */
  52. #define ENXIO          32  /* no such device or address */
  53. #define EPERM          33  /* operation not permitted */
  54. #define EPIPE          34  /* broken pipe  */
  55. #define ERANGE         35  /* math functon result not representable */
  56. #define EROFS          36  /* read only file system */
  57. #define ESIGNAL        37  /* bad signal vector */
  58. #define ESPIPE         38  /* illegal seek  */
  59. #define ESRCH          39  /* no such process */
  60. #define ETXTBSY        40  /* text file busy */
  61. #define EXDEV          41  /* improper link */
  62.  
  63. #define _NUM_ERR_NUMS  44  /* for strerror() */
  64.  
  65. #endif /* _errnoh */
  66.  
  67.