00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef _ERRNO_H
00029 #define _ERRNO_H
00030
00031
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035
00036 #define EPERM 1
00037 #define ENOENT 2
00038 #define ESRCH 3
00039 #define EINTR 4
00040 #define EIO 5
00041 #define ENXIO 6
00042 #define E2BIG 7
00043 #define ENOEXEC 8
00044 #define EBADF 9
00045 #define ECHILD 10
00046 #define EDEADLK 11
00047
00048 #define ENOMEM 12
00049 #define EACCES 13
00050 #define EFAULT 14
00051 #ifndef _POSIX_SOURCE
00052 #define ENOTBLK 15
00053 #endif
00054 #define EBUSY 16
00055 #define EEXIST 17
00056 #define EXDEV 18
00057 #define ENODEV 19
00058 #define ENOTDIR 20
00059 #define EISDIR 21
00060 #define EINVAL 22
00061 #define ENFILE 23
00062 #define EMFILE 24
00063 #define ENOTTY 25
00064 #ifndef _POSIX_SOURCE
00065 #define ETXTBSY 26
00066 #endif
00067 #define EFBIG 27
00068 #define ENOSPC 28
00069 #define ESPIPE 29
00070 #define EROFS 30
00071 #define EMLINK 31
00072 #define EPIPE 32
00073
00074
00075 #define EDOM 33
00076 #define ERANGE 34
00077
00078
00079 #define EAGAIN 35
00080 #ifndef _POSIX_SOURCE
00081 #define EWOULDBLOCK EAGAIN
00082 #define EINPROGRESS 36
00083 #define EALREADY 37
00084
00085
00086 #define ENOTSOCK 38
00087 #define EDESTADDRREQ 39
00088 #define EMSGSIZE 40
00089 #define EPROTOTYPE 41
00090 #define ENOPROTOOPT 42
00091 #define EPROTONOSUPPORT 43
00092 #define ESOCKTNOSUPPORT 44
00093 #define EOPNOTSUPP 45
00094 #define ENOTSUP EOPNOTSUPP
00095 #define EPFNOSUPPORT 46
00096 #define EAFNOSUPPORT 47
00097 #define EADDRINUSE 48
00098 #define EADDRNOTAVAIL 49
00099
00100
00101 #define ENETDOWN 50
00102 #define ENETUNREACH 51
00103 #define ENETRESET 52
00104 #define ECONNABORTED 53
00105 #define ECONNRESET 54
00106 #define ENOBUFS 55
00107 #define EISCONN 56
00108 #define ENOTCONN 57
00109 #define ESHUTDOWN 58
00110 #define ETOOMANYREFS 59
00111 #define ETIMEDOUT 60
00112 #define ECONNREFUSED 61
00113
00114 #define ELOOP 62
00115 #endif
00116 #define ENAMETOOLONG 63
00117
00118
00119 #ifndef _POSIX_SOURCE
00120 #define EHOSTDOWN 64
00121 #define EHOSTUNREACH 65
00122 #endif
00123 #define ENOTEMPTY 66
00124
00125
00126 #ifndef _POSIX_SOURCE
00127 #define EPROCLIM 67
00128 #define EUSERS 68
00129 #define EDQUOT 69
00130
00131
00132 #define ESTALE 70
00133 #define EREMOTE 71
00134 #define EBADRPC 72
00135 #define ERPCMISMATCH 73
00136 #define EPROGUNAVAIL 74
00137 #define EPROGMISMATCH 75
00138 #define EPROCUNAVAIL 76
00139 #endif
00140
00141 #define ENOLCK 77
00142 #define ENOSYS 78
00143
00144 #ifndef _POSIX_SOURCE
00145 #define EFTYPE 79
00146 #define EAUTH 80
00147 #define ENEEDAUTH 81
00148 #define EIDRM 82
00149 #define ENOMSG 83
00150 #define EOVERFLOW 84
00151 #define ECANCELED 85
00152 #define EILSEQ 86
00153 #define ENOATTR 87
00154
00155 #define EDOOFUS 88
00156
00157 #define ELAST 88
00158
00159 #endif
00160
00161 #ifdef _KERNEL
00162
00163 #define ERESTART (-1)
00164 #define EJUSTRETURN (-2)
00165 #define ENOIOCTL (-3)
00166 #define EDIRIOCTL (-4)
00167 #endif
00168
00169 extern int errno;
00170
00171 #ifdef __cplusplus
00172 }
00173 #endif
00174
00175 #endif