24 #if defined (HAVE_CONFIG_H)
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, },
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, },
275 #if defined (EDEADLOCK)
276 {
"EDEADLOCK", EDEADLOCK, },
278 #if defined (EMEDIUMTYPE)
279 {
"EMEDIUMTYPE", EMEDIUMTYPE, },
282 {
"ENOSYS", ENOSYS, },
285 {
"ENOSPC", ENOSPC, },
293 #if defined (ENOTUNIQ)
294 {
"ENOTUNIQ", ENOTUNIQ, },
296 #if defined (EOPNOTSUPP)
297 {
"EOPNOTSUPP", EOPNOTSUPP, },
302 #if defined (ENODATA)
303 {
"ENODATA", ENODATA, },
305 #if defined (EDEADLK)
306 {
"EDEADLK", EDEADLK, },
309 {
"EUSERS", EUSERS, },
311 #if defined (EKEYREJECTED)
312 {
"EKEYREJECTED", EKEYREJECTED, },
314 #if defined (EKEYEXPIRED)
315 {
"EKEYEXPIRED", EKEYEXPIRED, },
317 #if defined (ELIBMAX)
318 {
"ELIBMAX", ELIBMAX, },
321 {
"ECHILD", ECHILD, },
323 #if defined (EUNATCH)
324 {
"EUNATCH", EUNATCH, },
326 #if defined (ENOTSUP)
327 {
"ENOTSUP", ENOTSUP, },
332 #if defined (ELIBACC)
333 {
"ELIBACC", ELIBACC, },
335 #if defined (ENETUNREACH)
336 {
"ENETUNREACH", ENETUNREACH, },
339 {
"ENOMEM", ENOMEM, },
341 #if defined (ERESTART)
342 {
"ERESTART", ERESTART, },
344 #if defined (ELIBBAD)
345 {
"ELIBBAD", ELIBBAD, },
347 #if defined (ENAVAIL)
348 {
"ENAVAIL", ENAVAIL, },
350 #if defined (ENOTDIR)
351 {
"ENOTDIR", ENOTDIR, },
353 #if defined (ECONNRESET)
354 {
"ECONNRESET", ECONNRESET, },
356 #if defined (EREMOTEIO)
357 {
"EREMOTEIO", EREMOTEIO, },
360 {
"ESTALE", ESTALE, },
363 {
"ENFILE", ENFILE, },
365 #if defined (EMSGSIZE)
366 {
"EMSGSIZE", EMSGSIZE, },
368 #if defined (ETIMEDOUT)
369 {
"ETIMEDOUT", ETIMEDOUT, },
371 #if defined (EADDRINUSE)
372 {
"EADDRINUSE", EADDRINUSE, },
375 {
"EL2HLT", EL2HLT, },
377 #if defined (ESOCKTNOSUPPORT)
378 {
"ESOCKTNOSUPPORT", ESOCKTNOSUPPORT, },
380 #if defined (EBADSLT)
381 {
"EBADSLT", EBADSLT, },
383 #if defined (ENOTNAM)
384 {
"ENOTNAM", ENOTNAM, },
390 {
"ESRMNT", ESRMNT, },
393 {
"EBFONT", EBFONT, },
395 #if defined (EKEYREVOKED)
396 {
"EKEYREVOKED", EKEYREVOKED, },
398 #if defined (ESHUTDOWN)
399 {
"ESHUTDOWN", ESHUTDOWN, },
401 #if defined (EADDRNOTAVAIL)
402 {
"EADDRNOTAVAIL", EADDRNOTAVAIL, },
407 #if defined (ECANCELED)
408 {
"ECANCELED", ECANCELED, },
410 #if defined (ENETRESET)
411 {
"ENETRESET", ENETRESET, },
416 #if defined (EUCLEAN)
417 {
"EUCLEAN", EUCLEAN, },
419 #if defined (EPROTOTYPE)
420 {
"EPROTOTYPE", EPROTOTYPE, },
422 #if defined (ETOOMANYREFS)
423 {
"ETOOMANYREFS", ETOOMANYREFS, },
425 #if defined (EREMCHG)
426 {
"EREMCHG", EREMCHG, },
429 {
"EFAULT", EFAULT, },
431 #if defined (ELIBEXEC)
432 {
"ELIBEXEC", ELIBEXEC, },
435 {
"EEXIST", EEXIST, },
440 #if defined (EAFNOSUPPORT)
441 {
"EAFNOSUPPORT", EAFNOSUPPORT, },
444 {
"ENOENT", ENOENT, },
447 {
"ESPIPE", ESPIPE, },
449 #if defined (ELIBSCN)
450 {
"ELIBSCN", ELIBSCN, },
453 {
"EL3RST", EL3RST, },
458 #if defined (ENAMETOOLONG)
459 {
"ENAMETOOLONG", ENAMETOOLONG, },
461 #if defined (ENOBUFS)
462 {
"ENOBUFS", ENOBUFS, },
465 {
"ENOTTY", ENOTTY, },
468 {
"EMLINK", EMLINK, },
471 {
"ENOCSI", ENOCSI, },
473 #if defined (EDOTDOT)
474 {
"EDOTDOT", EDOTDOT, },
477 {
"EILSEQ", EILSEQ, },
479 #if defined (ENOPROTOOPT)
480 {
"ENOPROTOOPT", ENOPROTOOPT, },
483 {
"ENODEV", ENODEV, },
485 #if defined (ESTRPIPE)
486 {
"ESTRPIPE", ESTRPIPE, },
489 {
"ECHRNG", ECHRNG, },
491 #if defined (ENOTBLK)
492 {
"ENOTBLK", ENOTBLK, },
497 #if defined (EOVERFLOW)
498 {
"EOVERFLOW", EOVERFLOW, },
501 {
"ENONET", ENONET, },
503 #if defined (ECONNREFUSED)
504 {
"ECONNREFUSED", ECONNREFUSED, },
507 {
"ENOLCK", ENOLCK, },
509 #if defined (EBADMSG)
510 {
"EBADMSG", EBADMSG, },
512 #if defined (EPROTONOSUPPORT)
513 {
"EPROTONOSUPPORT", EPROTONOSUPPORT, },
516 {
"ENOMSG", ENOMSG, },
518 #if defined (EL2NSYNC)
519 {
"EL2NSYNC", EL2NSYNC, },
525 {
"ELNRNG", ELNRNG, },
527 #if defined (ECONNABORTED)
528 {
"ECONNABORTED", ECONNABORTED, },
530 #if defined (ENOLINK)
531 {
"ENOLINK", ENOLINK, },
534 {
"EDQUOT", EDQUOT, },
537 {
"EBADFD", EBADFD, },
539 #if defined (EOWNERDEAD)
540 {
"EOWNERDEAD", EOWNERDEAD, },
548 #if defined (EALREADY)
549 {
"EALREADY", EALREADY, },
551 #if defined (ENOTRECOVERABLE)
552 {
"ENOTRECOVERABLE", ENOTRECOVERABLE, },
555 {
"EPROTO", EPROTO, },
557 #if defined (EDESTADDRREQ)
558 {
"EDESTADDRREQ", EDESTADDRREQ, },
560 #if defined (EWOULDBLOCK)
561 {
"EWOULDBLOCK", EWOULDBLOCK, },
564 {
"EISNAM", EISNAM, },
566 #if defined (ENOEXEC)
567 {
"ENOEXEC", ENOEXEC, },
575 #if defined (ENETDOWN)
576 {
"ENETDOWN", ENETDOWN, },
578 #if defined (EMULTIHOP)
579 {
"EMULTIHOP", EMULTIHOP, },
582 {
"EINVAL", EINVAL, },
584 #if defined (ENOTSOCK)
585 {
"ENOTSOCK", ENOTSOCK, },
587 #if defined (ETXTBSY)
588 {
"ETXTBSY", ETXTBSY, },
591 {
"EACCES", EACCES, },
593 #if defined (EINPROGRESS)
594 {
"EINPROGRESS", EINPROGRESS, },
597 {
"EISDIR", EISDIR, },
600 {
"EMFILE", EMFILE, },
602 #if defined (ENOMEDIUM)
603 {
"ENOMEDIUM", ENOMEDIUM, },
605 #if defined (ERFKILL)
606 {
"ERFKILL", ERFKILL, },
608 #if defined (EHOSTDOWN)
609 {
"EHOSTDOWN", EHOSTDOWN, },
618 {
"ENOPKG", ENOPKG, },
620 #if defined (EPFNOSUPPORT)
621 {
"EPFNOSUPPORT", EPFNOSUPPORT, },
623 #if defined (EISCONN)
624 {
"EISCONN", EISCONN, },
629 #if defined (EREMOTE)
630 {
"EREMOTE", EREMOTE, },
633 {
"ENOANO", ENOANO, },
636 {
"ENOKEY", ENOKEY, },
639 {
"EL3HLT", EL3HLT, },
642 {
"ENOSTR", ENOSTR, },
650 #if defined (EHWPOISON)
651 {
"EHWPOISON", EHWPOISON, },
654 {
"EXFULL", EXFULL, },
657 {
"ERANGE", ERANGE, },
659 #if defined (EHOSTUNREACH)
660 {
"EHOSTUNREACH", EHOSTUNREACH, },
665 #if defined (ENOTEMPTY)
666 {
"ENOTEMPTY", ENOTEMPTY, },
668 #if defined (EBADRQC)
669 {
"EBADRQC", EBADRQC, },
674 #if defined (ENOTCONN)
675 {
"ENOTCONN", ENOTCONN, },
684 errno_struct *ptr = errno_codes;
707 error (
"unable to create errno object!");
735 for (std::map<std::string, int>::const_iterator
p =
errno_tbl.begin ();
739 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)
OCTAVE_EXPORT octave_value_list or N dimensional array whose elements are all equal to the IEEE symbol zero divided by nd tex zero divided by nd ifnottex and any operation involving another NaN value(5+NaN).Note that NaN always compares not equal to NaN(NaN!
static int lookup(const std::string &name)
static octave_scalar_map list(void)
std::map< std::string, int > errno_tbl
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string