home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / oberon / jacob-v0.1 / jacob-v0 / jacob / lib / Errno.ob2 next >
Encoding:
Text File  |  1996-04-04  |  7.9 KB  |  134 lines

  1. MODULE Errno;
  2.  
  3. (** Taken from /usr/include/linux/errno.h *)
  4.  
  5. CONST EPERM*           =   1;     (** Operation not permitted *)
  6.       ENOENT*          =   2;     (** No such file or directory *)
  7.       ESRCH*           =   3;     (** No such process *)
  8.       EINTR*           =   4;     (** Interrupted system call *)
  9.       EIO*             =   5;     (** I/O error *)
  10.       ENXIO*           =   6;     (** No such device or address *)
  11.       E2BIG*           =   7;     (** Arg list too long *)
  12.       ENOEXEC*         =   8;     (** Exec format error *)
  13.       EBADF*           =   9;     (** Bad file number *)
  14.       ECHILD*          =  10;     (** No child processes *)
  15.       EAGAIN*          =  11;     (** Try again *)
  16.       ENOMEM*          =  12;     (** Out of memory *)
  17.       EACCES*          =  13;     (** Permission denied *)
  18.       EFAULT*          =  14;     (** Bad address *)
  19.       ENOTBLK*         =  15;     (** Block device required *)
  20.       EBUSY*           =  16;     (** Device or resource busy *)
  21.       EEXIST*          =  17;     (** File exists *)
  22.       EXDEV*           =  18;     (** Cross-device link *)
  23.       ENODEV*          =  19;     (** No such device *)
  24.       ENOTDIR*         =  20;     (** Not a directory *)
  25.       EISDIR*          =  21;     (** Is a directory *)
  26.       EINVAL*          =  22;     (** Invalid argument *)
  27.       ENFILE*          =  23;     (** File table overflow *)
  28.       EMFILE*          =  24;     (** Too many open files *)
  29.       ENOTTY*          =  25;     (** Not a typewriter *)
  30.       ETXTBSY*         =  26;     (** Text file busy *)
  31.       EFBIG*           =  27;     (** File too large *)
  32.       ENOSPC*          =  28;     (** No space left on device *)
  33.       ESPIPE*          =  29;     (** Illegal seek *)
  34.       EROFS*           =  30;     (** Read-only file system *)
  35.       EMLINK*          =  31;     (** Too many links *)
  36.       EPIPE*           =  32;     (** Broken pipe *)
  37.       EDOM*            =  33;     (** Math argument out of domain of func *)
  38.       ERANGE*          =  34;     (** Math result not representable *)
  39.       EDEADLK*         =  35;     (** Resource deadlock would occur *)
  40.       ENAMETOOLONG*    =  36;     (** File name too long *)
  41.       ENOLCK*          =  37;     (** No record locks available *)
  42.       ENOSYS*          =  38;     (** Function not implemented *)
  43.       ENOTEMPTY*       =  39;     (** Directory not empty *)
  44.       ELOOP*           =  40;     (** Too many symbolic links encountered *)
  45.       EWOULDBLOCK*     =  EAGAIN; (** Operation would block *)
  46.       ENOMSG*          =  42;     (** No message of desired type *)
  47.       EIDRM*           =  43;     (** Identifier removed *)
  48.       ECHRNG*          =  44;     (** Channel number out of range *)
  49.       EL2NSYNC*        =  45;     (** Level 2 not synchronized *)
  50.       EL3HLT*          =  46;     (** Level 3 halted *)
  51.       EL3RST*          =  47;     (** Level 3 reset *)
  52.       ELNRNG*          =  48;     (** Link number out of range *)
  53.       EUNATCH*         =  49;     (** Protocol driver not attached *)
  54.       ENOCSI*          =  50;     (** No CSI structure available *)
  55.       EL2HLT*          =  51;     (** Level 2 halted *)
  56.       EBADE*           =  52;     (** Invalid exchange *)
  57.       EBADR*           =  53;     (** Invalid request descriptor *)
  58.       EXFULL*          =  54;     (** Exchange full *)
  59.       ENOANO*          =  55;     (** No anode *)
  60.       EBADRQC*         =  56;     (** Invalid request code *)
  61.       EBADSLT*         =  57;     (** Invalid slot *)
  62.       EDEADLOCK*       =  58;     (** File locking deadlock error *)
  63.       EBFONT*          =  59;     (** Bad font file format *)
  64.       ENOSTR*          =  60;     (** Device not a stream *)
  65.       ENODATA*         =  61;     (** No data available *)
  66.       ETIME*           =  62;     (** Timer expired *)
  67.       ENOSR*           =  63;     (** Out of streams resources *)
  68.       ENONET*          =  64;     (** Machine is not on the network *)
  69.       ENOPKG*          =  65;     (** Package not installed *)
  70.       EREMOTE*         =  66;     (** Object is remote *)
  71.       ENOLINK*         =  67;     (** Link has been severed *)
  72.       EADV*            =  68;     (** Advertise error *)
  73.       ESRMNT*          =  69;     (** Srmount error *)
  74.       ECOMM*           =  70;     (** Communication error on send *)
  75.       EPROTO*          =  71;     (** Protocol error *)
  76.       EMULTIHOP*       =  72;     (** Multihop attempted *)
  77.       EDOTDOT*         =  73;     (** RFS specific error *)
  78.       EBADMSG*         =  74;     (** Not a data message *)
  79.       EOVERFLOW*       =  75;     (** Value too large for defined data type *)
  80.       ENOTUNIQ*        =  76;     (** Name not unique on network *)
  81.       EBADFD*          =  77;     (** File descriptor in bad state *)
  82.       EREMCHG*         =  78;     (** Remote address changed *)
  83.       ELIBACC*         =  79;     (** Can not access a needed shared library *)
  84.       ELIBBAD*         =  80;     (** Accessing a corrupted shared library *)
  85.       ELIBSCN*         =  81;     (** .lib section in a.out corrupted *)
  86.       ELIBMAX*         =  82;     (** Attempting to link in too many shared libraries *)
  87.       ELIBEXEC*        =  83;     (** Cannot exec a shared library directly *)
  88.       EILSEQ*          =  84;     (** Illegal byte sequence *)
  89.       ERESTART*        =  85;     (** Interrupted system call should be restarted *)
  90.       ESTRPIPE*        =  86;     (** Streams pipe error *)
  91.       EUSERS*          =  87;     (** Too many users *)
  92.       ENOTSOCK*        =  88;     (** Socket operation on non-socket *)
  93.       EDESTADDRREQ*    =  89;     (** Destination address required *)
  94.       EMSGSIZE*        =  90;     (** Message too long *)
  95.       EPROTOTYPE*      =  91;     (** Protocol wrong type for socket *)
  96.       ENOPROTOOPT*     =  92;     (** Protocol not available *)
  97.       EPROTONOSUPPORT* =  93;     (** Protocol not supported *)
  98.       ESOCKTNOSUPPORT* =  94;     (** Socket type not supported *)
  99.       EOPNOTSUPP*      =  95;     (** Operation not supported on transport endpoint *)
  100.       EPFNOSUPPORT*    =  96;     (** Protocol family not supported *)
  101.       EAFNOSUPPORT*    =  97;     (** Address family not supported by protocol *)
  102.       EADDRINUSE*      =  98;     (** Address already in use *)
  103.       EADDRNOTAVAIL*   =  99;     (** Cannot assign requested address *)
  104.       ENETDOWN*        = 100;     (** Network is down *)
  105.       ENETUNREACH*     = 101;     (** Network is unreachable *)
  106.       ENETRESET*       = 102;     (** Network dropped connection because of reset *)
  107.       ECONNABORTED*    = 103;     (** Software caused connection abort *)
  108.       ECONNRESET*      = 104;     (** Connection reset by peer *)
  109.       ENOBUFS*         = 105;     (** No buffer space available *)
  110.       EISCONN*         = 106;     (** Transport endpoint is already connected *)
  111.       ENOTCONN*        = 107;     (** Transport endpoint is not connected *)
  112.       ESHUTDOWN*       = 108;     (** Cannot send after transport endpoint shutdown *)
  113.       ETOOMANYREFS*    = 109;     (** Too many references: cannot splice *)
  114.       ETIMEDOUT*       = 110;     (** Connection timed out *)
  115.       ECONNREFUSED*    = 111;     (** Connection refused *)
  116.       EHOSTDOWN*       = 112;     (** Host is down *)
  117.       EHOSTUNREACH*    = 113;     (** No route to host *)
  118.       EALREADY*        = 114;     (** Operation already in progress *)
  119.       EINPROGRESS*     = 115;     (** Operation now in progress *)
  120.       ESTALE*          = 116;     (** Stale NFS file handle *)
  121.       EUCLEAN*         = 117;     (** Structure needs cleaning *)
  122.       ENOTNAM*         = 118;     (** Not a XENIX named type file *)
  123.       ENAVAIL*         = 119;     (** No XENIX semaphores available *)
  124.       EISNAM*          = 120;     (** Is a named type file *)
  125.       EREMOTEIO*       = 121;     (** Remote I/O error *)
  126.       EDQUOT*          = 122;     (** Quota exceeded *)
  127.       
  128. (** Should never be seen by user programs *)
  129.       ERESTARTSYS*     = 512;
  130.       ERESTARTNOINTR*  = 513;
  131.       ERESTARTNOHAND*  = 514; (** restart if no handler.. *)
  132.  
  133. END Errno.
  134.