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, },
276 {
"ELNRNG", ELNRNG, },
281 #if defined (ENODATA)
282 {
"ENODATA", ENODATA, },
285 {
"EAGAIN", EAGAIN, },
287 #if defined (EDOTDOT)
288 {
"EDOTDOT", EDOTDOT, },
291 {
"ENOSYS", ENOSYS, },
294 {
"EACCES", EACCES, },
296 #if defined (EISCONN)
297 {
"EISCONN", EISCONN, },
302 #if defined (ECONNABORTED)
303 {
"ECONNABORTED", ECONNABORTED, },
305 #if defined (ESOCKTNOSUPPORT)
306 {
"ESOCKTNOSUPPORT", ESOCKTNOSUPPORT, },
309 {
"EFAULT", EFAULT, },
311 #if defined (EMULTIHOP)
312 {
"EMULTIHOP", EMULTIHOP, },
314 #if defined (EOVERFLOW)
315 {
"EOVERFLOW", EOVERFLOW, },
318 {
"ENOLCK", ENOLCK, },
321 {
"ENOPKG", ENOPKG, },
324 {
"ENFILE", ENFILE, },
327 {
"EL3HLT", EL3HLT, },
329 #if defined (ESHUTDOWN)
330 {
"ESHUTDOWN", ESHUTDOWN, },
333 {
"ENOSPC", ENOSPC, },
335 #if defined (EOWNERDEAD)
336 {
"EOWNERDEAD", EOWNERDEAD, },
338 #if defined (ECANCELED)
339 {
"ECANCELED", ECANCELED, },
341 #if defined (ENOTBLK)
342 {
"ENOTBLK", ENOTBLK, },
344 #if defined (EALREADY)
345 {
"EALREADY", EALREADY, },
353 #if defined (ETIMEDOUT)
354 {
"ETIMEDOUT", ETIMEDOUT, },
356 #if defined (ENAMETOOLONG)
357 {
"ENAMETOOLONG", ENAMETOOLONG, },
359 #if defined (ENOTUNIQ)
360 {
"ENOTUNIQ", ENOTUNIQ, },
362 #if defined (EPROTONOSUPPORT)
363 {
"EPROTONOSUPPORT", EPROTONOSUPPORT, },
365 #if defined (ENOTDIR)
366 {
"ENOTDIR", ENOTDIR, },
368 #if defined (ETXTBSY)
369 {
"ETXTBSY", ETXTBSY, },
371 #if defined (EKEYREJECTED)
372 {
"EKEYREJECTED", EKEYREJECTED, },
375 {
"EMFILE", EMFILE, },
380 #if defined (ELIBACC)
381 {
"ELIBACC", ELIBACC, },
384 {
"ENODEV", ENODEV, },
386 #if defined (EDEADLK)
387 {
"EDEADLK", EDEADLK, },
389 #if defined (EL2NSYNC)
390 {
"EL2NSYNC", EL2NSYNC, },
392 #if defined (ENOTEMPTY)
393 {
"ENOTEMPTY", ENOTEMPTY, },
398 #if defined (EHOSTDOWN)
399 {
"EHOSTDOWN", EHOSTDOWN, },
401 #if defined (ENOTNAM)
402 {
"ENOTNAM", ENOTNAM, },
404 #if defined (ENOPROTOOPT)
405 {
"ENOPROTOOPT", ENOPROTOOPT, },
408 {
"ENOMSG", ENOMSG, },
411 {
"EBADFD", EBADFD, },
413 #if defined (ENOTSUP)
414 {
"ENOTSUP", ENOTSUP, },
416 #if defined (ENAVAIL)
417 {
"ENAVAIL", ENAVAIL, },
419 #if defined (ENOEXEC)
420 {
"ENOEXEC", ENOEXEC, },
422 #if defined (EPROTOTYPE)
423 {
"EPROTOTYPE", EPROTOTYPE, },
426 {
"EXFULL", EXFULL, },
431 #if defined (EBADMSG)
432 {
"EBADMSG", EBADMSG, },
434 #if defined (ELIBEXEC)
435 {
"ELIBEXEC", ELIBEXEC, },
440 #if defined (ENOMEDIUM)
441 {
"ENOMEDIUM", ENOMEDIUM, },
443 #if defined (EMSGSIZE)
444 {
"EMSGSIZE", EMSGSIZE, },
447 {
"ESTALE", ESTALE, },
449 #if defined (EINPROGRESS)
450 {
"EINPROGRESS", EINPROGRESS, },
455 #if defined (ENOBUFS)
456 {
"ENOBUFS", ENOBUFS, },
458 #if defined (EREMOTEIO)
459 {
"EREMOTEIO", EREMOTEIO, },
461 #if defined (ELIBBAD)
462 {
"ELIBBAD", ELIBBAD, },
465 {
"EL2HLT", EL2HLT, },
467 #if defined (EKEYREVOKED)
468 {
"EKEYREVOKED", EKEYREVOKED, },
471 {
"ENOMEM", ENOMEM, },
477 {
"ECHRNG", ECHRNG, },
479 #if defined (ENOTCONN)
480 {
"ENOTCONN", ENOTCONN, },
482 #if defined (EBADSLT)
483 {
"EBADSLT", EBADSLT, },
485 #if defined (EPFNOSUPPORT)
486 {
"EPFNOSUPPORT", EPFNOSUPPORT, },
488 #if defined (EREMOTE)
489 {
"EREMOTE", EREMOTE, },
494 #if defined (ERFKILL)
495 {
"ERFKILL", ERFKILL, },
498 {
"ENONET", ENONET, },
500 #if defined (ERESTART)
501 {
"ERESTART", ERESTART, },
504 {
"ENOSTR", ENOSTR, },
509 #if defined (ENOLINK)
510 {
"ENOLINK", ENOLINK, },
512 #if defined (EOPNOTSUPP)
513 {
"EOPNOTSUPP", EOPNOTSUPP, },
519 {
"ENOKEY", ENOKEY, },
525 {
"ENOANO", ENOANO, },
527 #if defined (ENETRESET)
528 {
"ENETRESET", ENETRESET, },
531 {
"ERANGE", ERANGE, },
533 #if defined (EUCLEAN)
534 {
"EUCLEAN", EUCLEAN, },
540 {
"EILSEQ", EILSEQ, },
548 #if defined (ELIBSCN)
549 {
"ELIBSCN", ELIBSCN, },
552 {
"EEXIST", EEXIST, },
554 #if defined (EBADRQC)
555 {
"EBADRQC", EBADRQC, },
558 {
"EISNAM", EISNAM, },
560 #if defined (EADDRINUSE)
561 {
"EADDRINUSE", EADDRINUSE, },
567 {
"EPROTO", EPROTO, },
570 {
"ENOCSI", ENOCSI, },
572 #if defined (EDEADLOCK)
573 {
"EDEADLOCK", EDEADLOCK, },
576 {
"EISDIR", EISDIR, },
579 {
"EMLINK", EMLINK, },
581 #if defined (ENOTSOCK)
582 {
"ENOTSOCK", ENOTSOCK, },
585 {
"EUSERS", EUSERS, },
591 {
"ENOENT", ENOENT, },
594 {
"EINVAL", EINVAL, },
596 #if defined (ENETUNREACH)
597 {
"ENETUNREACH", ENETUNREACH, },
599 #if defined (EHOSTUNREACH)
600 {
"EHOSTUNREACH", EHOSTUNREACH, },
602 #if defined (EHWPOISON)
603 {
"EHWPOISON", EHWPOISON, },
605 #if defined (EWOULDBLOCK)
606 {
"EWOULDBLOCK", EWOULDBLOCK, },
608 #if defined (ESTRPIPE)
609 {
"ESTRPIPE", ESTRPIPE, },
612 {
"EL3RST", EL3RST, },
614 #if defined (ENOTRECOVERABLE)
615 {
"ENOTRECOVERABLE", ENOTRECOVERABLE, },
618 {
"ENOTTY", ENOTTY, },
620 #if defined (EADDRNOTAVAIL)
621 {
"EADDRNOTAVAIL", EADDRNOTAVAIL, },
623 #if defined (EDESTADDRREQ)
624 {
"EDESTADDRREQ", EDESTADDRREQ, },
626 #if defined (ENETDOWN)
627 {
"ENETDOWN", ENETDOWN, },
632 #if defined (ETOOMANYREFS)
633 {
"ETOOMANYREFS", ETOOMANYREFS, },
635 #if defined (EAFNOSUPPORT)
636 {
"EAFNOSUPPORT", EAFNOSUPPORT, },
639 {
"ESPIPE", ESPIPE, },
641 #if defined (EKEYEXPIRED)
642 {
"EKEYEXPIRED", EKEYEXPIRED, },
645 {
"ECHILD", ECHILD, },
647 #if defined (EREMCHG)
648 {
"EREMCHG", EREMCHG, },
651 {
"EBFONT", EBFONT, },
654 {
"EDQUOT", EDQUOT, },
656 #if defined (ECONNREFUSED)
657 {
"ECONNREFUSED", ECONNREFUSED, },
660 {
"ESRMNT", ESRMNT, },
665 #if defined (EMEDIUMTYPE)
666 {
"EMEDIUMTYPE", EMEDIUMTYPE, },
668 #if defined (EUNATCH)
669 {
"EUNATCH", EUNATCH, },
671 #if defined (ECONNRESET)
672 {
"ECONNRESET", ECONNRESET, },
674 #if defined (ELIBMAX)
675 {
"ELIBMAX", ELIBMAX, },
684 errno_struct *ptr = errno_codes;
708 ::error (
"unable to create errno object!");
739 for (std::map<std::string, int>::const_iterator p =
errno_tbl.begin ();
743 retval.
assign (p->first, p->second);
static void cleanup_instance(void)
static octave_errno * instance
void error(const char *fmt,...)
static bool instance_ok(void)
int do_lookup(const std::string &name)
octave_scalar_map do_list(void)
void assign(const std::string &k, const octave_value &val)
static int lookup(const std::string &name)
static octave_scalar_map list(void)
std::map< std::string, int > errno_tbl