46 static errno_struct errno_codes[] =
54 {
"EACCES", EACCES, },
56 #if defined (EADDRINUSE)
57 {
"EADDRINUSE", EADDRINUSE, },
59 #if defined (EADDRNOTAVAIL)
60 {
"EADDRNOTAVAIL", EADDRNOTAVAIL, },
62 #if defined (EAFNOSUPPORT)
63 {
"EAFNOSUPPORT", EAFNOSUPPORT, },
66 {
"EAGAIN", EAGAIN, },
68 #if defined (EALREADY)
69 {
"EALREADY", EALREADY, },
78 {
"ECHILD", ECHILD, },
80 #if defined (ECONNABORTED)
81 {
"ECONNABORTED", ECONNABORTED, },
83 #if defined (ECONNREFUSED)
84 {
"ECONNREFUSED", ECONNREFUSED, },
86 #if defined (ECONNRESET)
87 {
"ECONNRESET", ECONNRESET, },
90 {
"EDEADLK", EDEADLK, },
92 #if defined (EDESTADDRREQ)
93 {
"EDESTADDRREQ", EDESTADDRREQ, },
99 {
"EDQUOT", EDQUOT, },
102 {
"EEXIST", EEXIST, },
105 {
"EFAULT", EFAULT, },
110 #if defined (EHOSTDOWN)
111 {
"EHOSTDOWN", EHOSTDOWN, },
113 #if defined (EHOSTUNREACH)
114 {
"EHOSTUNREACH", EHOSTUNREACH, },
116 #if defined (EINPROGRESS)
117 {
"EINPROGRESS", EINPROGRESS, },
123 {
"EINVAL", EINVAL, },
128 #if defined (EISCONN)
129 {
"EISCONN", EISCONN, },
132 {
"EISDIR", EISDIR, },
138 {
"EMFILE", EMFILE, },
141 {
"EMLINK", EMLINK, },
143 #if defined (EMSGSIZE)
144 {
"EMSGSIZE", EMSGSIZE, },
146 #if defined (ENAMETOOLONG)
147 {
"ENAMETOOLONG", ENAMETOOLONG, },
149 #if defined (ENETDOWN)
150 {
"ENETDOWN", ENETDOWN, },
152 #if defined (ENETRESET)
153 {
"ENETRESET", ENETRESET, },
155 #if defined (ENETUNREACH)
156 {
"ENETUNREACH", ENETUNREACH, },
159 {
"ENFILE", ENFILE, },
161 #if defined (ENOBUFS)
162 {
"ENOBUFS", ENOBUFS, },
165 {
"ENODEV", ENODEV, },
168 {
"ENOENT", ENOENT, },
170 #if defined (ENOEXEC)
171 {
"ENOEXEC", ENOEXEC, },
174 {
"ENOLCK", ENOLCK, },
177 {
"ENOMEM", ENOMEM, },
179 #if defined (ENOPROTOOPT)
180 {
"ENOPROTOOPT", ENOPROTOOPT, },
183 {
"ENOSPC", ENOSPC, },
186 {
"ENOSYS", ENOSYS, },
188 #if defined (ENOTBLK)
189 {
"ENOTBLK", ENOTBLK, },
191 #if defined (ENOTCONN)
192 {
"ENOTCONN", ENOTCONN, },
194 #if defined (ENOTDIR)
195 {
"ENOTDIR", ENOTDIR, },
197 #if defined (ENOTEMPTY)
198 {
"ENOTEMPTY", ENOTEMPTY, },
200 #if defined (ENOTSOCK)
201 {
"ENOTSOCK", ENOTSOCK, },
204 {
"ENOTTY", ENOTTY, },
209 #if defined (EOPNOTSUPP)
210 {
"EOPNOTSUPP", EOPNOTSUPP, },
215 #if defined (EPFNOSUPPORT)
216 {
"EPFNOSUPPORT", EPFNOSUPPORT, },
221 #if defined (EPROTONOSUPPORT)
222 {
"EPROTONOSUPPORT", EPROTONOSUPPORT, },
224 #if defined (EPROTOTYPE)
225 {
"EPROTOTYPE", EPROTOTYPE, },
228 {
"ERANGE", ERANGE, },
230 #if defined (EREMOTE)
231 {
"EREMOTE", EREMOTE, },
233 #if defined (ERESTART)
234 {
"ERESTART", ERESTART, },
239 #if defined (ESHUTDOWN)
240 {
"ESHUTDOWN", ESHUTDOWN, },
242 #if defined (ESOCKTNOSUPPORT)
243 {
"ESOCKTNOSUPPORT", ESOCKTNOSUPPORT, },
246 {
"ESPIPE", ESPIPE, },
252 {
"ESTALE", ESTALE, },
254 #if defined (ETIMEDOUT)
255 {
"ETIMEDOUT", ETIMEDOUT, },
257 #if defined (ETOOMANYREFS)
258 {
"ETOOMANYREFS", ETOOMANYREFS, },
260 #if defined (ETXTBSY)
261 {
"ETXTBSY", ETXTBSY, },
264 {
"EUSERS", EUSERS, },
266 #if defined (EWOULDBLOCK)
267 {
"EWOULDBLOCK", EWOULDBLOCK, },
282 errno_struct *ptr = errno_codes;
306 ::error (
"unable to create errno object!");
337 for (std::map<std::string, int>::const_iterator p =
errno_tbl.begin ();
341 retval.
assign (p->first, p->second);