00001 /* errno.h */ 00002 00003 /* agrego las que no encontre :-( a partir del numero 10000*/ 00004 00005 void perror (char *str); 00006 00007 #ifndef _I386_ERRNO_H 00008 #define _I386_ERRNO_H 00009 00010 #define EPERM 1 /* Operation not permitted */ 00011 #define ENOENT 2 /* No such file or directory */ 00012 #define ESRCH 3 /* No such process */ 00013 #define EINTR 4 /* Interrupted system call */ 00014 #define EIO 5 /* I/O error */ //no se puede leer el sector 00015 #define ENXIO 6 /* No such device or address */ 00016 #define E2BIG 7 /* Arg list too long */ 00017 #define ENOEXEC 8 /* Exec format error */ 00018 #define EBADF 9 /* Bad file number */ 00019 #define ECHILD 10 /* No child processes */ 00020 #define EAGAIN 11 /* Try again */ 00021 #define ENOMEM 12 /* Out of memory */ 00022 #define EACCES 13 /* Permission denied */ 00023 #define EFAULT 14 /* Bad address */ 00024 #define ENOTBLK 15 /* Block device required */ 00025 #define EBUSY 16 /* Device or resource busy */ 00026 #define EEXIST 17 /* File exists */ 00027 #define EXDEV 18 /* Cross-device link */ 00028 #define ENODEV 19 /* No such device */ 00029 #define ENOTDIR 20 /* Not a directory */ 00030 #define EISDIR 21 /* Is a directory */ 00031 #define EINVAL 22 /* Invalid argument */ 00032 #define ENFILE 23 /* File table overflow */ 00033 #define EMFILE 24 /* Too many open files */ 00034 #define ENOTTY 25 /* Not a typewriter */ 00035 #define ETXTBSY 26 /* Text file busy */ 00036 #define EFBIG 27 /* File too large */ //tarea muy grande 00037 #define ENOSPC 28 /* No space left on device */ 00038 #define ESPIPE 29 /* Illegal seek */ 00039 #define EROFS 30 /* Read-only file system */ 00040 #define EMLINK 31 /* Too many links */ 00041 #define EPIPE 32 /* Broken pipe */ 00042 #define EDOM 33 /* Math argument out of domain of func */ 00043 #define ERANGE 34 /* Math result not representable */ 00044 #define EDEADLK 35 /* Resource deadlock would occur */ 00045 #define ENAMETOOLONG 36 /* File name too long */ 00046 #define ENOLCK 37 /* No record locks available */ 00047 #define ENOSYS 38 /* Function not implemented */ //llamada al sistema no valida 00048 #define ENOTEMPTY 39 /* Directory not empty */ 00049 #define ELOOP 40 /* Too many symbolic links encountered */ 00050 #define EWOULDBLOCK EAGAIN /* Operation would block */ 00051 #define ENOMSG 42 /* No message of desired type */ 00052 #define EIDRM 43 /* Identifier removed */ 00053 #define ECHRNG 44 /* Channel number out of range */ 00054 #define EL2NSYNC 45 /* Level 2 not synchronized */ 00055 #define EL3HLT 46 /* Level 3 halted */ 00056 #define EL3RST 47 /* Level 3 reset */ 00057 #define ELNRNG 48 /* Link number out of range */ 00058 #define EUNATCH 49 /* Protocol driver not attached */ 00059 #define ENOCSI 50 /* No CSI structure available */ 00060 #define EL2HLT 51 /* Level 2 halted */ 00061 #define EBADE 52 /* Invalid exchange */ 00062 #define EBADR 53 /* Invalid request descriptor */ 00063 #define EXFULL 54 /* Exchange full */ 00064 #define ENOANO 55 /* No anode */ 00065 #define EBADRQC 56 /* Invalid request code */ 00066 #define EBADSLT 57 /* Invalid slot */ 00067 #define EDEADLOCK 58 /* File locking deadlock error */ 00068 #define EBFONT 59 /* Bad font file format */ 00069 #define ENOSTR 60 /* Device not a stream */ 00070 #define ENODATA 61 /* No data available */ 00071 #define ETIME 62 /* Timer expired */ 00072 #define ENOSR 63 /* Out of streams resources */ 00073 #define ENONET 64 /* Machine is not on the network */ 00074 #define ENOPKG 65 /* Package not installed */ 00075 #define EREMOTE 66 /* Object is remote */ 00076 #define ENOLINK 67 /* Link has been severed */ 00077 #define EADV 68 /* Advertise error */ 00078 #define ESRMNT 69 /* Srmount error */ 00079 #define ECOMM 70 /* Communication error on send */ 00080 #define EPROTO 71 /* Protocol error */ 00081 #define EMULTIHOP 72 /* Multihop attempted */ 00082 #define EDOTDOT 73 /* RFS specific error */ 00083 #define EBADMSG 74 /* Not a data message */ 00084 #define EOVERFLOW 75 /* Value too large for defined data type */ 00085 #define ENOTUNIQ 76 /* Name not unique on network */ 00086 #define EBADFD 77 /* File descriptor in bad state */ 00087 #define EREMCHG 78 /* Remote address changed */ 00088 #define ELIBACC 79 /* Can not access a needed shared library */ 00089 #define ELIBBAD 80 /* Accessing a corrupted shared library */ 00090 #define ELIBSCN 81 /* .lib section in a.out corrupted */ 00091 #define ELIBMAX 82 /* Attempting to link in too many shared libraries */ 00092 #define ELIBEXEC 83 /* Cannot exec a shared library directly */ 00093 #define EILSEQ 84 /* Illegal byte sequence */ 00094 #define ERESTART 85 /* Interrupted system call should be restarted */ 00095 #define ESTRPIPE 86 /* Streams pipe error */ 00096 #define EUSERS 87 /* Too many users */ 00097 #define ENOTSOCK 88 /* Socket operation on non-socket */ 00098 #define EDESTADDRREQ 89 /* Destination address required */ 00099 #define EMSGSIZE 90 /* Message too long */ 00100 #define EPROTOTYPE 91 /* Protocol wrong type for socket */ 00101 #define ENOPROTOOPT 92 /* Protocol not available */ 00102 #define EPROTONOSUPPORT 93 /* Protocol not supported */ 00103 #define ESOCKTNOSUPPORT 94 /* Socket type not supported */ 00104 #define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ 00105 #define EPFNOSUPPORT 96 /* Protocol family not supported */ 00106 #define EAFNOSUPPORT 97 /* Address family not supported by protocol */ 00107 #define EADDRINUSE 98 /* Address already in use */ 00108 #define EADDRNOTAVAIL 99 /* Cannot assign requested address */ 00109 #define ENETDOWN 100 /* Network is down */ 00110 #define ENETUNREACH 101 /* Network is unreachable */ 00111 #define ENETRESET 102 /* Network dropped connection because of reset */ 00112 #define ECONNABORTED 103 /* Software caused connection abort */ 00113 #define ECONNRESET 104 /* Connection reset by peer */ 00114 #define ENOBUFS 105 /* No buffer space available */ 00115 #define EISCONN 106 /* Transport endpoint is already connected */ 00116 #define ENOTCONN 107 /* Transport endpoint is not connected */ 00117 #define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */ 00118 #define ETOOMANYREFS 109 /* Too many references: cannot splice */ 00119 #define ETIMEDOUT 110 /* Connection timed out */ 00120 #define ECONNREFUSED 111 /* Connection refused */ 00121 #define EHOSTDOWN 112 /* Host is down */ 00122 #define EHOSTUNREACH 113 /* No route to host */ 00123 #define EALREADY 114 /* Operation already in progress */ 00124 #define EINPROGRESS 115 /* Operation now in progress */ 00125 #define ESTALE 116 /* Stale NFS file handle */ 00126 #define EUCLEAN 117 /* Structure needs cleaning */ 00127 #define ENOTNAM 118 /* Not a XENIX named type file */ 00128 #define ENAVAIL 119 /* No XENIX semaphores available */ 00129 #define EISNAM 120 /* Is a named type file */ 00130 #define EREMOTEIO 121 /* Remote I/O error */ 00131 #define EDQUOT 122 /* Quota exceeded */ 00132 00133 #endif 00134