home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / h.z / ERRNO.H < prev    next >
C/C++ Source or Header  |  1996-07-24  |  2KB  |  75 lines

  1. /*
  2.  *  errno.h    Error numbers
  3.  *
  4.  *  Copyright by WATCOM International Corp. 1988-1995.  All rights reserved.
  5.  */
  6. #ifndef _ERRNO_H_INCLUDED
  7. #define _ERRNO_H_INCLUDED
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. #ifndef _COMDEF_H_INCLUDED
  13.  #include <_comdef.h>
  14. #endif
  15.  
  16. #ifndef errno
  17. #define errno (*__get_errno_ptr())
  18. #endif
  19. _WCRTLINK extern int errno;
  20.  
  21. /*
  22.  * Error codes
  23.  */
  24. #define EZERO    0    /* No error */
  25. #define ENOENT    1    /* No such file or directory */
  26. #define E2BIG    2    /* Arg list too big */
  27. #define ENOEXEC 3    /* Exec format error */
  28. #define EBADF    4    /* Bad file number */
  29. #define ENOMEM    5    /* Not enough memory */
  30. #define EACCES    6    /* Permission denied */
  31. #define EEXIST    7    /* File exists */
  32. #define EXDEV    8    /* Cross-device link */
  33. #define EINVAL    9    /* Invalid argument */
  34. #define ENFILE    10    /* File table overflow */
  35. #define EMFILE    11    /* Too many open files */
  36. #define ENOSPC    12    /* No space left on device */
  37. /* math errors */
  38. #define EDOM    13    /* Argument too large */
  39. #define ERANGE    14    /* Result too large */
  40. /* file locking error */
  41. #define EDEADLK 15    /* Resource deadlock would occur */
  42. #define EDEADLOCK 15    /* ... */
  43. #define EINTR    16    /* interrupt */
  44. #define ECHILD    17    /* Child does not exist */
  45. /* POSIX errors */
  46. #define EAGAIN    18    /* Resource unavailable, try again */
  47. #define EBUSY    19    /* Device or resource busy */
  48. #define EFBIG    20    /* File too large */
  49. #define EIO    21    /* I/O error */
  50. #define EISDIR    22    /* Is a directory */
  51. #define ENOTDIR    23    /* Not a directory */
  52. #define EMLINK    24    /* Too many links */
  53. #define ENOTBLK    25    /* Block device required */
  54. #define ENOTTY    26    /* Not a character device */
  55. #define ENXIO    27    /* No such device or address */
  56. #define EPERM    28    /* Not owner */
  57. #define EPIPE    29    /* Broken pipe */
  58. #define EROFS    30    /* Read-only file system */
  59. #define ESPIPE    31    /* Illegal seek */
  60. #define ESRCH    32    /* No such process */
  61. #define ETXTBSY    33    /* Text file busy */
  62. #define EFAULT    34    /* Bad address */
  63. #define ENAMETOOLONG 35    /* Name too long */
  64. #define ENODEV    36    /* No such device */
  65. #define ENOLCK    37    /* No locks available in system */
  66. #define ENOSYS    38    /* Unknown system call */
  67. #define ENOTEMPTY 39    /* Directory not empty */
  68. /* Normative Addendum error */
  69. #define EILSEQ  40    /* Multibyte/wide character encoding error */
  70.  
  71. #ifdef __cplusplus
  72. };
  73. #endif
  74. #endif
  75.