ERRNO.DEF 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. (* Release 3.10 *)
  2. (*-------------------------------------------------------------------------*
  3. * *
  4. * ERRNO.DEF - Modula-2 interface to ERRNO.H *
  5. * *
  6. * COPYRIGHT (C) 1989..1992 Clarion Software Corporation. *
  7. * All Rights Reserved *
  8. * *
  9. *--------------------------------------------------------------------------*)
  10. (*# project("#set tsc='on'") *)
  11. (*# call(o_a_size=>off, o_a_copy=>off, c_conv=>on, result_optional=>on) *)
  12. (*# module(implementation=>off, init_code=>off) *)
  13. (*# name(prefix=>c) *)
  14. DEFINITION MODULE Errno;
  15. CONST
  16. EZERO = 0; (* No Error *)
  17. EINVFN = 1; (* Invalid function code *)
  18. ENOENT = 2; (* File not found *)
  19. ENOPATH = 3; (* Path not found *)
  20. EMFILE = 4; (* Too many open files *)
  21. EACCES = 5; (* Access denied *)
  22. EBADF = 6; (* Invalid handle *)
  23. E2BIG = 7; (* Memory blocks destroyed *)
  24. ENOMEM = 8; (* Insufficient Memory *)
  25. EINVMEM = 9; (* Invalid memory block address *)
  26. EINVENV = 10; (* Invalid environment *)
  27. EINVFMT = 11; (* Invalid format *)
  28. EINVACC = 12; (* Invalid access code *)
  29. EINVDAT = 13; (* Invalid data *)
  30. ENODEV = 15; (* Invalid drive *)
  31. ECURDIR = 16; (* Attempt to remove CurDir *)
  32. ENOTSAM = 17; (* Not same device *)
  33. ENMFILE = 18; (* No more files *)
  34. (* RTL error codes *)
  35. EINVAL = 19; (* Invalid argument *)
  36. ENOTDIR = 20; (* Not directory *)
  37. EISDIR = 21; (* Is directory *)
  38. ENOEXEC = 22; (* Corrupted exec file *)
  39. EMLINK = 32; (* Cross-device link *)
  40. EDOM = 33; (* Math argument *)
  41. ERANGE = 34; (* Result too large *)
  42. EDEADLOCK = 36; (* file locking deadlock *)
  43. EEXIST = 80; (* File exists MSDOS 3.0 + *)
  44. EFAULT = -1; (* Unknown error *)
  45. EPERM = -1; (* UNIX - not in MSDOS *)
  46. ESRCH = -1; (* UNIX - not in MSDOS *)
  47. EINTR = -1; (* UNIX - not in MSDOS *)
  48. EIO = -1; (* UNIX - not in MSDOS *)
  49. ENXIO = -1; (* UNIX - not in MSDOS *)
  50. ECHILD = -1; (* UNIX - not in MSDOS *)
  51. EAGAIN = -1; (* UNIX - not in MSDOS *)
  52. ENOTBLK = -1; (* UNIX - not in MSDOS *)
  53. EBUSY = -1; (* UNIX - not in MSDOS *)
  54. ENFILE = -1; (* UNIX - not in MSDOS *)
  55. ENOTTY = -1; (* UNIX - not in MSDOS *)
  56. ETXTBSY = -1; (* UNIX - not in MSDOS *)
  57. EFBIG = -1; (* UNIX - not in MSDOS *)
  58. ENOSPC = -1; (* UNIX - not in MSDOS *)
  59. ESPIPE = -1; (* UNIX - not in MSDOS *)
  60. EROFS = -1; (* UNIX - not in MSDOS *)
  61. EPIPE = -1; (* UNIX - not in MSDOS *)
  62. EUCLEAN = -1; (* UNIX - not in MSDOS *)
  63. VAR
  64. _doserrno : INTEGER; (* global DOS error variable *)
  65. errno : INTEGER; (* global error variable *)
  66. END Errno.