1: /* @(#)errlst.c	4.4 (Berkeley) 82/04/01 */
   2: char    *sys_errlist[] = {
   3:     "Error 0",
   4:     "Not owner",                /*  1 - EPERM */
   5:     "No such file or directory",        /*  2 - ENOENT */
   6:     "No such process",          /*  3 - ESRCH */
   7:     "Interrupted system call",      /*  4 - EINTR */
   8:     "I/O error",                /*  5 - EIO */
   9:     "No such device or address",        /*  6 - ENXIO */
  10:     "Arg list too long",            /*  7 - E2BIG */
  11:     "Exec format error",            /*  8 - ENOEXEC */
  12:     "Bad file number",          /*  9 - EBADF */
  13:     "No children",              /* 10 - ECHILD */
  14:     "No more processes",            /* 11 - EAGAIN */
  15:     "Not enough core",          /* 12 - ENOMEM */
  16:     "Permission denied",            /* 13 - EACCES */
  17:     "Bad address",              /* 14 - EFAULT */
  18:     "Block device required",        /* 15 - ENOTBLK */
  19:     "Exclusive use facility busy",      /* 16 - EBUSY */
  20:     "File exists",              /* 17 - EEXIST */
  21:     "Cross-device link",            /* 18 - EXDEV */
  22:     "No such device",           /* 19 - ENODEV */
  23:     "Not a directory",          /* 20 - ENOTDIR */
  24:     "Is a directory",           /* 21 - EISDIR */
  25:     "Invalid argument",         /* 22 - EINVAL */
  26:     "File table overflow",          /* 23 - ENFILE */
  27:     "Too many open files",          /* 24 - EMFILE */
  28:     "Inappropriate ioctl for device",   /* 25 - ENOTTY */
  29:     "Text file busy",           /* 26 - ETXTBSY */
  30:     "File too large",           /* 27 - EFBIG */
  31:     "No space left on device",      /* 28 - ENOSPC */
  32:     "Illegal seek",             /* 29 - ESPIPE */
  33:     "Read-only file system",        /* 30 - EROFS */
  34:     "Too many links",           /* 31 - EMLINK */
  35:     "Broken pipe",              /* 32 - EPIPE */
  36: 
  37: /* math software */
  38:     "Argument too large",           /* 33 - EDOM */
  39:     "Result too large",         /* 34 - ERANGE */
  40: 
  41: /* quotas */
  42:     "Disk quota exceeded",          /* 35 - EQUOT */
  43: 
  44: /* symbolic links */
  45:     "Too many levels of symbolic links",    /* 36 - ELOOP */
  46: 
  47: /* non-blocking and interrupt i/o */
  48:     "Operation would block",        /* 37 - EWOULDBLOCK */
  49: #ifdef  UCB_NET
  50:     "Operation now in progress",        /* 38 - EINPROGRESS */
  51:     "Operation already in progress",    /* 39 - EALREADY */
  52: 
  53: /* ipc/network software */
  54: 
  55:     /* argument errors */
  56:     "Socket operation on non-socket",   /* 40 - ENOTSOCK */
  57:     "Destination address required",     /* 41 - EDESTADDRREQ */
  58:     "Message too long",         /* 42 - EMSGSIZE */
  59:     "Protocol wrong type for socket",   /* 43 - EPROTOTYPE */
  60:     "Protocol not available",       /* 44 - ENOPROTOOPT */
  61:     "Protocol not supported",       /* 45 - EPROTONOSUPPORT */
  62:     "Socket type not supported",        /* 46 - ESOCKTNOSUPPORT */
  63:     "Operation not supported on socket",    /* 47 - EOPNOTSUPP */
  64:     "Protocol family not supported",    /* 48 - EPFNOSUPPORT */
  65:     "Address family not supported by protocol family",
  66:                         /* 49 - EAFNOSUPPORT */
  67:     "Address already in use",       /* 50 - EADDRINUSE */
  68:     "Can't assign requested address",   /* 51 - EADDRNOTAVAIL */
  69: 
  70:     /* operational errors */
  71:     "Network is down",          /* 52 - ENETDOWN */
  72:     "Network is unreachable",       /* 53 - ENETUNREACH */
  73:     "Network dropped connection on reset",  /* 54 - ENETRESET */
  74:     "Software caused connection abort", /* 55 - ECONNABORTED */
  75:     "Connection reset by peer",     /* 56 - ECONNRESET */
  76:     "No buffer space available",        /* 57 - ENOBUFS */
  77:     "Socket is already connected",      /* 58 - EISCONN */
  78:     "Socket is not connected",      /* 59 - ENOTCONN */
  79:     "Can't send after socket shutdown", /* 60 - ESHUTDOWN */
  80:     "Too many references: can't splice",    /* 61 - ETOOMANYREFS */
  81:     "Connection timed out",         /* 62 - ETIMEDOUT */
  82:     "Connection refused",           /* 63 - ECONNREFUSED */
  83:     "File name too long",           /* 64 - ENAMETOOLONG */
  84:     "Host is down",             /* 65 - EHOSTDOWN */
  85:     "Host is unreachable",          /* 66 - EHOSTUNREACH */
  86: };
  87: #endif	UCB_NET
  88: int sys_nerr = { sizeof sys_errlist/sizeof sys_errlist[0] };

Defined variables

sys_errlist defined in line 2; used 2 times
  • in line 88(2)
sys_nerr defined in line 88; never used
Last modified: 1983-07-30
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 507
Valid CSS Valid XHTML 1.0 Strict