1: /*
   2:  * Copyright (c) 1982, 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)errno.h	7.1.3 (2.11BSD) 1999/9/6
   7:  */
   8: 
   9: #ifndef KERNEL
  10: extern  int errno;          /* global error number */
  11: #endif
  12: 
  13: #define EPERM       1       /* Not owner */
  14: #define ENOENT      2       /* No such file or directory */
  15: #define ESRCH       3       /* No such process */
  16: #define EINTR       4       /* Interrupted system call */
  17: #define EIO     5       /* I/O error */
  18: #define ENXIO       6       /* No such device or address */
  19: #define E2BIG       7       /* Arg list too long */
  20: #define ENOEXEC     8       /* Exec format error */
  21: #define EBADF       9       /* Bad file number */
  22: #define ECHILD      10      /* No children */
  23: #define EAGAIN      11      /* No more processes */
  24: #define ENOMEM      12      /* Not enough core */
  25: #define EACCES      13      /* Permission denied */
  26: #define EFAULT      14      /* Bad address */
  27: #define ENOTBLK     15      /* Block device required */
  28: #define EBUSY       16      /* Mount device busy */
  29: #define EEXIST      17      /* File exists */
  30: #define EXDEV       18      /* Cross-device link */
  31: #define ENODEV      19      /* No such device */
  32: #define ENOTDIR     20      /* Not a directory*/
  33: #define EISDIR      21      /* Is a directory */
  34: #define EINVAL      22      /* Invalid argument */
  35: #define ENFILE      23      /* File table overflow */
  36: #define EMFILE      24      /* Too many open files */
  37: #define ENOTTY      25      /* Not a typewriter */
  38: #define ETXTBSY     26      /* Text file busy */
  39: #define EFBIG       27      /* File too large */
  40: #define ENOSPC      28      /* No space left on device */
  41: #define ESPIPE      29      /* Illegal seek */
  42: #define EROFS       30      /* Read-only file system */
  43: #define EMLINK      31      /* Too many links */
  44: #define EPIPE       32      /* Broken pipe */
  45: 
  46: /* math software */
  47: #define EDOM        33      /* Argument too large */
  48: #define ERANGE      34      /* Result too large */
  49: 
  50: /* non-blocking and interrupt i/o */
  51: #define EWOULDBLOCK 35      /* Operation would block */
  52: #define EDEADLK     EWOULDBLOCK /* ditto */
  53: #define EINPROGRESS 36      /* Operation now in progress */
  54: #define EALREADY    37      /* Operation already in progress */
  55: 
  56: /* ipc/network software */
  57: 
  58:     /* argument errors */
  59: #define ENOTSOCK    38      /* Socket operation on non-socket */
  60: #define EDESTADDRREQ    39      /* Destination address required */
  61: #define EMSGSIZE    40      /* Message too long */
  62: #define EPROTOTYPE  41      /* Protocol wrong type for socket */
  63: #define ENOPROTOOPT 42      /* Protocol not available */
  64: #define EPROTONOSUPPORT 43      /* Protocol not supported */
  65: #define ESOCKTNOSUPPORT 44      /* Socket type not supported */
  66: #define EOPNOTSUPP  45      /* Operation not supported on socket */
  67: #define EPFNOSUPPORT    46      /* Protocol family not supported */
  68: #define EAFNOSUPPORT    47      /* Address family not supported by protocol family */
  69: #define EADDRINUSE  48      /* Address already in use */
  70: #define EADDRNOTAVAIL   49      /* Can't assign requested address */
  71: 
  72:     /* operational errors */
  73: #define ENETDOWN    50      /* Network is down */
  74: #define ENETUNREACH 51      /* Network is unreachable */
  75: #define ENETRESET   52      /* Network dropped connection on reset */
  76: #define ECONNABORTED    53      /* Software caused connection abort */
  77: #define ECONNRESET  54      /* Connection reset by peer */
  78: #define ENOBUFS     55      /* No buffer space available */
  79: #define EISCONN     56      /* Socket is already connected */
  80: #define ENOTCONN    57      /* Socket is not connected */
  81: #define ESHUTDOWN   58      /* Can't send after socket shutdown */
  82: #define ETOOMANYREFS    59      /* Too many references: can't splice */
  83: #define ETIMEDOUT   60      /* Connection timed out */
  84: #define ECONNREFUSED    61      /* Connection refused */
  85: 
  86:     /* */
  87: #define ELOOP       62      /* Too many levels of symbolic links */
  88: #define ENAMETOOLONG    63      /* File name too long */
  89: 
  90: /* should be rearranged */
  91: #define EHOSTDOWN   64      /* Host is down */
  92: #define EHOSTUNREACH    65      /* No route to host */
  93: #define ENOTEMPTY   66      /* Directory not empty */
  94: 
  95: /* quotas & mush */
  96: #define EPROCLIM    67      /* Too many processes */
  97: #define EUSERS      68      /* Too many users */
  98: #define EDQUOT      69      /* Disc quota exceeded */
  99: 
 100: /* Network File System */
 101: #define ESTALE      70      /* Stale NFS file handle */
 102: #define EREMOTE     71      /* Too many levels of remote in path */
 103: #define EBADRPC     72      /* RPC struct is bad */
 104: #define ERPCMISMATCH    73      /* RPC version wrong */
 105: #define EPROGUNAVAIL    74      /* RPC prog. not avail */
 106: #define EPROGMISMATCH   75      /* Program version wrong */
 107: #define EPROCUNAVAIL    76      /* Bad procedure for program */
 108: 
 109: #define ENOLCK      77      /* No locks available */
 110: #define ENOSYS      78      /* Function not implemented */
 111: 
 112: #define EFTYPE      79      /* Inappropriate file type or format */
 113: #define EAUTH       80      /* Authentication error */
 114: #define ENEEDAUTH   81      /* Need authenticator */
 115: #define ELAST       81      /* Must be equal largest errno */
 116: 
 117: #ifdef  KERNEL
 118: /* pseudo-errors returned inside kernel to modify return back to user mode */
 119: #define ERESTART    -1      /* restart syscall */
 120: #define EJUSTRETURN -2      /* don't modify regs, just return */
 121: #endif

Defined macros

E2BIG defined in line 19; used 2 times
EALREADY defined in line 54; used 2 times
EAUTH defined in line 113; never used
EBADRPC defined in line 103; never used
ECHILD defined in line 22; used 2 times
EDEADLK defined in line 52; never used
EDESTADDRREQ defined in line 60; used 1 times
EDQUOT defined in line 98; used 4 times
EFBIG defined in line 39; used 3 times
EINTR defined in line 16; used 97 times
EINVAL defined in line 34; used 188 times
EIO defined in line 17; used 79 times
EJUSTRETURN defined in line 120; used 1 times
ELAST defined in line 115; never used
ELOOP defined in line 87; used 1 times
EMLINK defined in line 43; never used
ENAMETOOLONG defined in line 88; used 5 times
ENEEDAUTH defined in line 114; never used
ENETRESET defined in line 75; never used
ENOENT defined in line 14; used 64 times
ENOEXEC defined in line 20; used 6 times
ENOLCK defined in line 109; never used
ENOSYS defined in line 110; never used
ENOTBLK defined in line 27; used 1 times
ENOTSOCK defined in line 59; used 2 times
ENXIO defined in line 18; used 83 times
EPFNOSUPPORT defined in line 67; never used
EPROCUNAVAIL defined in line 107; never used
EPROGMISMATCH defined in line 106; never used
EPROGUNAVAIL defined in line 105; never used
EPROTOTYPE defined in line 62; used 3 times
EREMOTE defined in line 102; never used
ERESTART defined in line 119; used 2 times
ERPCMISMATCH defined in line 104; never used
ESHUTDOWN defined in line 81; never used
ESOCKTNOSUPPORT defined in line 65; never used
ESTALE defined in line 101; never used
ETOOMANYREFS defined in line 82; never used
ETXTBSY defined in line 38; used 3 times
EUSERS defined in line 97; used 2 times

Usage of this include

errno.h used 310 times
Last modified: 1999-09-06
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 282
Valid CSS Valid XHTML 1.0 Strict