home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_01 / LATTIC_3.LZH / HEADERS / ERRNO.H < prev    next >
C/C++ Source or Header  |  1990-09-24  |  2KB  |  52 lines

  1. /*
  2.  * assert.h - define errors and error symbols
  3.  *
  4.  * Copyright (c) 1990 HiSoft
  5.  */
  6.  
  7. #ifndef _ERRNO_H
  8. #define _ERRNO_H
  9.  
  10. #define EOSERR -1    /* Operating system error */
  11.  
  12. #define EPERM 1        /* User is not owner */
  13. #define ENOENT 2    /* No such file or directory */
  14. #define ESRCH 3        /* No such process */
  15. #define EINTR 4        /* Interrupted system call */
  16. #define EIO 5        /* I/O error */
  17. #define ENXIO 6        /* No such device or address */
  18. #define E2BIG 7        /* Arg list is too long */
  19. #define ENOEXEC 8    /* Exec format error */
  20. #define EBADF 9        /* Bad file number */
  21. #define ECHILD 10    /* No child process */
  22. #define EAGAIN 11    /* No more processes allowed */
  23. #define ENOMEM 12    /* No memory available */
  24. #define EACCES 13    /* Access denied */
  25. #define EFAULT 14    /* Bad address */
  26. #define ENOTBLK 15    /* Bulk device required */
  27. #define EBUSY 16    /* Resource is busy */
  28. #define EEXIST 17    /* File already exists */
  29. #define EXDEV 18    /* Cross-device link */
  30. #define ENODEV 19    /* No such device */
  31. #define ENOTDIR 20    /* Not a directory */
  32. #define EISDIR 21    /* Is a directory */
  33. #define EINVAL 22    /* Invalid argument */
  34. #define ENFILE 23    /* No more files (units) allowed */
  35. #define EMFILE 24    /* No more files (units) allowed for this process */
  36. #define ENOTTY 25    /* Not a terminal */
  37. #define ETXTBSY 26    /* Text file is busy */
  38. #define EFBIG 27    /* File is too large */
  39. #define ENOSPC 28    /* No space left */
  40. #define ESPIPE 29    /* Seek issued to pipe */
  41. #define EROFS 30    /* Read-only file system */
  42. #define EMLINK 31    /* Too many links */
  43. #define EPIPE 32    /* Broken pipe */
  44. #define EDOM 33        /* Math function argument error */
  45. #define ERANGE 34    /* Math function result is out of range */
  46.  
  47.  
  48. extern int errno;
  49. extern int sys_nerr;
  50. extern char *sys_errlist[];
  51. #endif
  52.