2 // Errno.cs: used to provide better information
5 namespace System.Private {
9 internal static string Message (int code)
13 return "Operation not permitted";
15 return "No such file or directory";
17 return "Is a directory";
19 return "Bad file descriptor";
21 return "Cannot allocate memory";
23 return "File already exists";
24 case Wrapper.ENOTEMPTY:
25 return "Directory not empty";
27 return "No such process";
29 return "Interrupted function call";
31 return "Input/output error";
33 return "No such device or address";
35 return "Argument list too long";
37 return "Exec format error";
39 return "No child processes";
41 return "Resource temporarily unavailable";
43 return "Permission denied";
47 return "Block device required";
49 return "Device or resource busy";
51 return "Invalid cross-device link";
53 return "No such device";
55 return "Not a directory";
57 return "Invalid argument";
59 return "Too many open files in system";
61 return "Too many open files";
63 return "Inappropriate ioctl for device";
65 return "Text file busy";
67 return "File too large";
69 return "No space left on device";
71 return "Illegal seek";
73 return "Read-only file system";
75 return "Too many links";
79 return "Numerical argument out of domain";
81 return "Numerical result out of range";
83 return "Resource deadlock avoided";
84 case Wrapper.ENAMETOOLONG:
85 return "File name too long";
87 return "No locks available";
89 return "Function not implemented";
91 return "Too many levels of symbolic links";
93 return "Too many users";
94 case Wrapper.ENOTSOCK:
95 return "Socket operation on non-socket";
96 case Wrapper.EDESTADDRREQ:
97 return "Destination address required";
98 case Wrapper.EMSGSIZE:
99 return "Message too long";
100 case Wrapper.EPROTOTYPE:
101 return "Protocol wrong type for socket";
102 case Wrapper.ENOPROTOOPT:
103 return "Protocol not available";
104 case Wrapper.EPROTONOSUPPORT:
105 return "Protocol not supported";
106 case Wrapper.ESOCKTNOSUPPORT:
107 return "Socket type not supported";
108 case Wrapper.EOPNOTSUPP:
109 return "Operation not supported";
110 case Wrapper.EPFNOSUPPORT:
111 return "Protocol family not supported";
112 case Wrapper.EAFNOSUPPORT:
113 return "Address family not supported by protocol";
114 case Wrapper.EADDRINUSE:
115 return "Address already in use";
116 case Wrapper.EADDRNOTAVAIL:
117 return "Cannot assign requested address";
118 case Wrapper.ENETDOWN:
119 return "Network is down";
120 case Wrapper.ENETUNREACH:
121 return "Network is unreachable";
122 case Wrapper.ENETRESET:
123 return "Network dropped connection on reset";
124 case Wrapper.ECONNABORTED:
125 return "Software caused connection abort";
126 case Wrapper.ECONNRESET:
127 return "Connection reset by peer";
128 case Wrapper.ENOBUFS:
129 return "No buffer space available";
130 case Wrapper.EISCONN:
131 return "Transport endpoint is already connected";
132 case Wrapper.ENOTCONN:
133 return "Transport endpoint is not connected";
134 case Wrapper.ESHUTDOWN:
135 return "Cannot send after transport endpoint shutdown";
136 case Wrapper.ETOOMANYREFS:
137 return "Too many references: cannot splice";
138 case Wrapper.ETIMEDOUT:
139 return "Connection timed out";
140 case Wrapper.ECONNREFUSED:
141 return "Connection refused";
142 case Wrapper.EHOSTDOWN:
143 return "Host is down";
144 case Wrapper.EHOSTUNREACH:
145 return "No route to host";
146 case Wrapper.EALREADY:
147 return "Operation already in progress";
148 case Wrapper.EINPROGRESS:
149 return "Operation now in progress";
151 return "Stale NFS file handle";
153 return "Disk quota exceeded";
154 case Wrapper.ENOMEDIUM:
158 case Wrapper.EL2NSYNC:
162 case Wrapper.EUNATCH:
169 case Wrapper.EBADRQC:
170 case Wrapper.EBADSLT:
173 case Wrapper.ENODATA:
178 case Wrapper.EREMOTE:
179 case Wrapper.ENOLINK:
184 case Wrapper.EMULTIHOP:
185 case Wrapper.EDOTDOT:
186 case Wrapper.EBADMSG:
187 case Wrapper.ENOTUNIQ:
189 case Wrapper.EREMCHG:
190 case Wrapper.ELIBACC:
191 case Wrapper.ELIBBAD:
192 case Wrapper.ELIBSCN:
193 case Wrapper.ELIBMAX:
194 case Wrapper.ELIBEXEC:
197 return String.Format ("Errno code={0}", code);