GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
oct-errno.cc
Go to the documentation of this file.
1 // DO NOT EDIT! Generated automatically from oct-errno.in.cc by configure
2 /*
3 
4 Copyright (C) 2005-2015 John W. Eaton
5 
6 This file is part of Octave.
7 
8 Octave is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 3 of the License, or (at your
11 option) any later version.
12 
13 Octave is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with Octave; see the file COPYING. If not, see
20 <http://www.gnu.org/licenses/>.
21 
22 */
23 
24 #ifdef HAVE_CONFIG_H
25 #include <config.h>
26 #endif
27 
28 #include <cerrno>
29 
30 #include "singleton-cleanup.h"
31 
32 #include "oct-errno.h"
33 #include "oct-map.h"
34 #include "error.h"
35 
37 
39 {
40  struct errno_struct
41  {
42  const char *name;
43  int value;
44  };
45 
46  static errno_struct errno_codes[] =
47  {
48  // POSIX.
49 
50 #if defined (E2BIG)
51  { "E2BIG", E2BIG, },
52 #endif
53 #if defined (EACCES)
54  { "EACCES", EACCES, },
55 #endif
56 #if defined (EADDRINUSE)
57  { "EADDRINUSE", EADDRINUSE, },
58 #endif
59 #if defined (EADDRNOTAVAIL)
60  { "EADDRNOTAVAIL", EADDRNOTAVAIL, },
61 #endif
62 #if defined (EAFNOSUPPORT)
63  { "EAFNOSUPPORT", EAFNOSUPPORT, },
64 #endif
65 #if defined (EAGAIN)
66  { "EAGAIN", EAGAIN, },
67 #endif
68 #if defined (EALREADY)
69  { "EALREADY", EALREADY, },
70 #endif
71 #if defined (EBADF)
72  { "EBADF", EBADF, },
73 #endif
74 #if defined (EBUSY)
75  { "EBUSY", EBUSY, },
76 #endif
77 #if defined (ECHILD)
78  { "ECHILD", ECHILD, },
79 #endif
80 #if defined (ECONNABORTED)
81  { "ECONNABORTED", ECONNABORTED, },
82 #endif
83 #if defined (ECONNREFUSED)
84  { "ECONNREFUSED", ECONNREFUSED, },
85 #endif
86 #if defined (ECONNRESET)
87  { "ECONNRESET", ECONNRESET, },
88 #endif
89 #if defined (EDEADLK)
90  { "EDEADLK", EDEADLK, },
91 #endif
92 #if defined (EDESTADDRREQ)
93  { "EDESTADDRREQ", EDESTADDRREQ, },
94 #endif
95 #if defined (EDOM)
96  { "EDOM", EDOM, },
97 #endif
98 #if defined (EDQUOT)
99  { "EDQUOT", EDQUOT, },
100 #endif
101 #if defined (EEXIST)
102  { "EEXIST", EEXIST, },
103 #endif
104 #if defined (EFAULT)
105  { "EFAULT", EFAULT, },
106 #endif
107 #if defined (EFBIG)
108  { "EFBIG", EFBIG, },
109 #endif
110 #if defined (EHOSTDOWN)
111  { "EHOSTDOWN", EHOSTDOWN, },
112 #endif
113 #if defined (EHOSTUNREACH)
114  { "EHOSTUNREACH", EHOSTUNREACH, },
115 #endif
116 #if defined (EINPROGRESS)
117  { "EINPROGRESS", EINPROGRESS, },
118 #endif
119 #if defined (EINTR)
120  { "EINTR", EINTR, },
121 #endif
122 #if defined (EINVAL)
123  { "EINVAL", EINVAL, },
124 #endif
125 #if defined (EIO)
126  { "EIO", EIO, },
127 #endif
128 #if defined (EISCONN)
129  { "EISCONN", EISCONN, },
130 #endif
131 #if defined (EISDIR)
132  { "EISDIR", EISDIR, },
133 #endif
134 #if defined (ELOOP)
135  { "ELOOP", ELOOP, },
136 #endif
137 #if defined (EMFILE)
138  { "EMFILE", EMFILE, },
139 #endif
140 #if defined (EMLINK)
141  { "EMLINK", EMLINK, },
142 #endif
143 #if defined (EMSGSIZE)
144  { "EMSGSIZE", EMSGSIZE, },
145 #endif
146 #if defined (ENAMETOOLONG)
147  { "ENAMETOOLONG", ENAMETOOLONG, },
148 #endif
149 #if defined (ENETDOWN)
150  { "ENETDOWN", ENETDOWN, },
151 #endif
152 #if defined (ENETRESET)
153  { "ENETRESET", ENETRESET, },
154 #endif
155 #if defined (ENETUNREACH)
156  { "ENETUNREACH", ENETUNREACH, },
157 #endif
158 #if defined (ENFILE)
159  { "ENFILE", ENFILE, },
160 #endif
161 #if defined (ENOBUFS)
162  { "ENOBUFS", ENOBUFS, },
163 #endif
164 #if defined (ENODEV)
165  { "ENODEV", ENODEV, },
166 #endif
167 #if defined (ENOENT)
168  { "ENOENT", ENOENT, },
169 #endif
170 #if defined (ENOEXEC)
171  { "ENOEXEC", ENOEXEC, },
172 #endif
173 #if defined (ENOLCK)
174  { "ENOLCK", ENOLCK, },
175 #endif
176 #if defined (ENOMEM)
177  { "ENOMEM", ENOMEM, },
178 #endif
179 #if defined (ENOPROTOOPT)
180  { "ENOPROTOOPT", ENOPROTOOPT, },
181 #endif
182 #if defined (ENOSPC)
183  { "ENOSPC", ENOSPC, },
184 #endif
185 #if defined (ENOSYS)
186  { "ENOSYS", ENOSYS, },
187 #endif
188 #if defined (ENOTBLK)
189  { "ENOTBLK", ENOTBLK, },
190 #endif
191 #if defined (ENOTCONN)
192  { "ENOTCONN", ENOTCONN, },
193 #endif
194 #if defined (ENOTDIR)
195  { "ENOTDIR", ENOTDIR, },
196 #endif
197 #if defined (ENOTEMPTY)
198  { "ENOTEMPTY", ENOTEMPTY, },
199 #endif
200 #if defined (ENOTSOCK)
201  { "ENOTSOCK", ENOTSOCK, },
202 #endif
203 #if defined (ENOTTY)
204  { "ENOTTY", ENOTTY, },
205 #endif
206 #if defined (ENXIO)
207  { "ENXIO", ENXIO, },
208 #endif
209 #if defined (EOPNOTSUPP)
210  { "EOPNOTSUPP", EOPNOTSUPP, },
211 #endif
212 #if defined (EPERM)
213  { "EPERM", EPERM, },
214 #endif
215 #if defined (EPFNOSUPPORT)
216  { "EPFNOSUPPORT", EPFNOSUPPORT, },
217 #endif
218 #if defined (EPIPE)
219  { "EPIPE", EPIPE, },
220 #endif
221 #if defined (EPROTONOSUPPORT)
222  { "EPROTONOSUPPORT", EPROTONOSUPPORT, },
223 #endif
224 #if defined (EPROTOTYPE)
225  { "EPROTOTYPE", EPROTOTYPE, },
226 #endif
227 #if defined (ERANGE)
228  { "ERANGE", ERANGE, },
229 #endif
230 #if defined (EREMOTE)
231  { "EREMOTE", EREMOTE, },
232 #endif
233 #if defined (ERESTART)
234  { "ERESTART", ERESTART, },
235 #endif
236 #if defined (EROFS)
237  { "EROFS", EROFS, },
238 #endif
239 #if defined (ESHUTDOWN)
240  { "ESHUTDOWN", ESHUTDOWN, },
241 #endif
242 #if defined (ESOCKTNOSUPPORT)
243  { "ESOCKTNOSUPPORT", ESOCKTNOSUPPORT, },
244 #endif
245 #if defined (ESPIPE)
246  { "ESPIPE", ESPIPE, },
247 #endif
248 #if defined (ESRCH)
249  { "ESRCH", ESRCH, },
250 #endif
251 #if defined (ESTALE)
252  { "ESTALE", ESTALE, },
253 #endif
254 #if defined (ETIMEDOUT)
255  { "ETIMEDOUT", ETIMEDOUT, },
256 #endif
257 #if defined (ETOOMANYREFS)
258  { "ETOOMANYREFS", ETOOMANYREFS, },
259 #endif
260 #if defined (ETXTBSY)
261  { "ETXTBSY", ETXTBSY, },
262 #endif
263 #if defined (EUSERS)
264  { "EUSERS", EUSERS, },
265 #endif
266 #if defined (EWOULDBLOCK)
267  { "EWOULDBLOCK", EWOULDBLOCK, },
268 #endif
269 #if defined (EXDEV)
270  { "EXDEV", EXDEV, },
271 #endif
272 
273  // Others (duplicates are OK).
274 
275 #if defined (ELNRNG)
276  { "ELNRNG", ELNRNG, },
277 #endif
278 #if defined (EIDRM)
279  { "EIDRM", EIDRM, },
280 #endif
281 #if defined (ENODATA)
282  { "ENODATA", ENODATA, },
283 #endif
284 #if defined (EAGAIN)
285  { "EAGAIN", EAGAIN, },
286 #endif
287 #if defined (EDOTDOT)
288  { "EDOTDOT", EDOTDOT, },
289 #endif
290 #if defined (ENOSYS)
291  { "ENOSYS", ENOSYS, },
292 #endif
293 #if defined (EACCES)
294  { "EACCES", EACCES, },
295 #endif
296 #if defined (EISCONN)
297  { "EISCONN", EISCONN, },
298 #endif
299 #if defined (EBADF)
300  { "EBADF", EBADF, },
301 #endif
302 #if defined (ECONNABORTED)
303  { "ECONNABORTED", ECONNABORTED, },
304 #endif
305 #if defined (ESOCKTNOSUPPORT)
306  { "ESOCKTNOSUPPORT", ESOCKTNOSUPPORT, },
307 #endif
308 #if defined (EFAULT)
309  { "EFAULT", EFAULT, },
310 #endif
311 #if defined (EMULTIHOP)
312  { "EMULTIHOP", EMULTIHOP, },
313 #endif
314 #if defined (EOVERFLOW)
315  { "EOVERFLOW", EOVERFLOW, },
316 #endif
317 #if defined (ENOLCK)
318  { "ENOLCK", ENOLCK, },
319 #endif
320 #if defined (ENOPKG)
321  { "ENOPKG", ENOPKG, },
322 #endif
323 #if defined (ENFILE)
324  { "ENFILE", ENFILE, },
325 #endif
326 #if defined (EL3HLT)
327  { "EL3HLT", EL3HLT, },
328 #endif
329 #if defined (ESHUTDOWN)
330  { "ESHUTDOWN", ESHUTDOWN, },
331 #endif
332 #if defined (ENOSPC)
333  { "ENOSPC", ENOSPC, },
334 #endif
335 #if defined (EOWNERDEAD)
336  { "EOWNERDEAD", EOWNERDEAD, },
337 #endif
338 #if defined (ECANCELED)
339  { "ECANCELED", ECANCELED, },
340 #endif
341 #if defined (ENOTBLK)
342  { "ENOTBLK", ENOTBLK, },
343 #endif
344 #if defined (EALREADY)
345  { "EALREADY", EALREADY, },
346 #endif
347 #if defined (EADV)
348  { "EADV", EADV, },
349 #endif
350 #if defined (ETIME)
351  { "ETIME", ETIME, },
352 #endif
353 #if defined (ETIMEDOUT)
354  { "ETIMEDOUT", ETIMEDOUT, },
355 #endif
356 #if defined (ENAMETOOLONG)
357  { "ENAMETOOLONG", ENAMETOOLONG, },
358 #endif
359 #if defined (ENOTUNIQ)
360  { "ENOTUNIQ", ENOTUNIQ, },
361 #endif
362 #if defined (EPROTONOSUPPORT)
363  { "EPROTONOSUPPORT", EPROTONOSUPPORT, },
364 #endif
365 #if defined (ENOTDIR)
366  { "ENOTDIR", ENOTDIR, },
367 #endif
368 #if defined (ETXTBSY)
369  { "ETXTBSY", ETXTBSY, },
370 #endif
371 #if defined (EKEYREJECTED)
372  { "EKEYREJECTED", EKEYREJECTED, },
373 #endif
374 #if defined (EMFILE)
375  { "EMFILE", EMFILE, },
376 #endif
377 #if defined (ELOOP)
378  { "ELOOP", ELOOP, },
379 #endif
380 #if defined (ELIBACC)
381  { "ELIBACC", ELIBACC, },
382 #endif
383 #if defined (ENODEV)
384  { "ENODEV", ENODEV, },
385 #endif
386 #if defined (EDEADLK)
387  { "EDEADLK", EDEADLK, },
388 #endif
389 #if defined (EL2NSYNC)
390  { "EL2NSYNC", EL2NSYNC, },
391 #endif
392 #if defined (ENOTEMPTY)
393  { "ENOTEMPTY", ENOTEMPTY, },
394 #endif
395 #if defined (EINTR)
396  { "EINTR", EINTR, },
397 #endif
398 #if defined (EHOSTDOWN)
399  { "EHOSTDOWN", EHOSTDOWN, },
400 #endif
401 #if defined (ENOTNAM)
402  { "ENOTNAM", ENOTNAM, },
403 #endif
404 #if defined (ENOPROTOOPT)
405  { "ENOPROTOOPT", ENOPROTOOPT, },
406 #endif
407 #if defined (ENOMSG)
408  { "ENOMSG", ENOMSG, },
409 #endif
410 #if defined (EBADFD)
411  { "EBADFD", EBADFD, },
412 #endif
413 #if defined (ENOTSUP)
414  { "ENOTSUP", ENOTSUP, },
415 #endif
416 #if defined (ENAVAIL)
417  { "ENAVAIL", ENAVAIL, },
418 #endif
419 #if defined (ENOEXEC)
420  { "ENOEXEC", ENOEXEC, },
421 #endif
422 #if defined (EPROTOTYPE)
423  { "EPROTOTYPE", EPROTOTYPE, },
424 #endif
425 #if defined (EXFULL)
426  { "EXFULL", EXFULL, },
427 #endif
428 #if defined (EXDEV)
429  { "EXDEV", EXDEV, },
430 #endif
431 #if defined (EBADMSG)
432  { "EBADMSG", EBADMSG, },
433 #endif
434 #if defined (ELIBEXEC)
435  { "ELIBEXEC", ELIBEXEC, },
436 #endif
437 #if defined (EPIPE)
438  { "EPIPE", EPIPE, },
439 #endif
440 #if defined (ENOMEDIUM)
441  { "ENOMEDIUM", ENOMEDIUM, },
442 #endif
443 #if defined (EMSGSIZE)
444  { "EMSGSIZE", EMSGSIZE, },
445 #endif
446 #if defined (ESTALE)
447  { "ESTALE", ESTALE, },
448 #endif
449 #if defined (EINPROGRESS)
450  { "EINPROGRESS", EINPROGRESS, },
451 #endif
452 #if defined (ESRCH)
453  { "ESRCH", ESRCH, },
454 #endif
455 #if defined (ENOBUFS)
456  { "ENOBUFS", ENOBUFS, },
457 #endif
458 #if defined (EREMOTEIO)
459  { "EREMOTEIO", EREMOTEIO, },
460 #endif
461 #if defined (ELIBBAD)
462  { "ELIBBAD", ELIBBAD, },
463 #endif
464 #if defined (EL2HLT)
465  { "EL2HLT", EL2HLT, },
466 #endif
467 #if defined (EKEYREVOKED)
468  { "EKEYREVOKED", EKEYREVOKED, },
469 #endif
470 #if defined (ENOMEM)
471  { "ENOMEM", ENOMEM, },
472 #endif
473 #if defined (EBADE)
474  { "EBADE", EBADE, },
475 #endif
476 #if defined (ECHRNG)
477  { "ECHRNG", ECHRNG, },
478 #endif
479 #if defined (ENOTCONN)
480  { "ENOTCONN", ENOTCONN, },
481 #endif
482 #if defined (EBADSLT)
483  { "EBADSLT", EBADSLT, },
484 #endif
485 #if defined (EPFNOSUPPORT)
486  { "EPFNOSUPPORT", EPFNOSUPPORT, },
487 #endif
488 #if defined (EREMOTE)
489  { "EREMOTE", EREMOTE, },
490 #endif
491 #if defined (EDOM)
492  { "EDOM", EDOM, },
493 #endif
494 #if defined (ERFKILL)
495  { "ERFKILL", ERFKILL, },
496 #endif
497 #if defined (ENONET)
498  { "ENONET", ENONET, },
499 #endif
500 #if defined (ERESTART)
501  { "ERESTART", ERESTART, },
502 #endif
503 #if defined (ENOSTR)
504  { "ENOSTR", ENOSTR, },
505 #endif
506 #if defined (E2BIG)
507  { "E2BIG", E2BIG, },
508 #endif
509 #if defined (ENOLINK)
510  { "ENOLINK", ENOLINK, },
511 #endif
512 #if defined (EOPNOTSUPP)
513  { "EOPNOTSUPP", EOPNOTSUPP, },
514 #endif
515 #if defined (ENOSR)
516  { "ENOSR", ENOSR, },
517 #endif
518 #if defined (ENOKEY)
519  { "ENOKEY", ENOKEY, },
520 #endif
521 #if defined (EROFS)
522  { "EROFS", EROFS, },
523 #endif
524 #if defined (ENOANO)
525  { "ENOANO", ENOANO, },
526 #endif
527 #if defined (ENETRESET)
528  { "ENETRESET", ENETRESET, },
529 #endif
530 #if defined (ERANGE)
531  { "ERANGE", ERANGE, },
532 #endif
533 #if defined (EUCLEAN)
534  { "EUCLEAN", EUCLEAN, },
535 #endif
536 #if defined (EFBIG)
537  { "EFBIG", EFBIG, },
538 #endif
539 #if defined (EILSEQ)
540  { "EILSEQ", EILSEQ, },
541 #endif
542 #if defined (EPERM)
543  { "EPERM", EPERM, },
544 #endif
545 #if defined (ENXIO)
546  { "ENXIO", ENXIO, },
547 #endif
548 #if defined (ELIBSCN)
549  { "ELIBSCN", ELIBSCN, },
550 #endif
551 #if defined (EEXIST)
552  { "EEXIST", EEXIST, },
553 #endif
554 #if defined (EBADRQC)
555  { "EBADRQC", EBADRQC, },
556 #endif
557 #if defined (EISNAM)
558  { "EISNAM", EISNAM, },
559 #endif
560 #if defined (EADDRINUSE)
561  { "EADDRINUSE", EADDRINUSE, },
562 #endif
563 #if defined (EBADR)
564  { "EBADR", EBADR, },
565 #endif
566 #if defined (EPROTO)
567  { "EPROTO", EPROTO, },
568 #endif
569 #if defined (ENOCSI)
570  { "ENOCSI", ENOCSI, },
571 #endif
572 #if defined (EDEADLOCK)
573  { "EDEADLOCK", EDEADLOCK, },
574 #endif
575 #if defined (EISDIR)
576  { "EISDIR", EISDIR, },
577 #endif
578 #if defined (EMLINK)
579  { "EMLINK", EMLINK, },
580 #endif
581 #if defined (ENOTSOCK)
582  { "ENOTSOCK", ENOTSOCK, },
583 #endif
584 #if defined (EUSERS)
585  { "EUSERS", EUSERS, },
586 #endif
587 #if defined (EIO)
588  { "EIO", EIO, },
589 #endif
590 #if defined (ENOENT)
591  { "ENOENT", ENOENT, },
592 #endif
593 #if defined (EINVAL)
594  { "EINVAL", EINVAL, },
595 #endif
596 #if defined (ENETUNREACH)
597  { "ENETUNREACH", ENETUNREACH, },
598 #endif
599 #if defined (EHOSTUNREACH)
600  { "EHOSTUNREACH", EHOSTUNREACH, },
601 #endif
602 #if defined (EHWPOISON)
603  { "EHWPOISON", EHWPOISON, },
604 #endif
605 #if defined (EWOULDBLOCK)
606  { "EWOULDBLOCK", EWOULDBLOCK, },
607 #endif
608 #if defined (ESTRPIPE)
609  { "ESTRPIPE", ESTRPIPE, },
610 #endif
611 #if defined (EL3RST)
612  { "EL3RST", EL3RST, },
613 #endif
614 #if defined (ENOTRECOVERABLE)
615  { "ENOTRECOVERABLE", ENOTRECOVERABLE, },
616 #endif
617 #if defined (ENOTTY)
618  { "ENOTTY", ENOTTY, },
619 #endif
620 #if defined (EADDRNOTAVAIL)
621  { "EADDRNOTAVAIL", EADDRNOTAVAIL, },
622 #endif
623 #if defined (EDESTADDRREQ)
624  { "EDESTADDRREQ", EDESTADDRREQ, },
625 #endif
626 #if defined (ENETDOWN)
627  { "ENETDOWN", ENETDOWN, },
628 #endif
629 #if defined (ECOMM)
630  { "ECOMM", ECOMM, },
631 #endif
632 #if defined (ETOOMANYREFS)
633  { "ETOOMANYREFS", ETOOMANYREFS, },
634 #endif
635 #if defined (EAFNOSUPPORT)
636  { "EAFNOSUPPORT", EAFNOSUPPORT, },
637 #endif
638 #if defined (ESPIPE)
639  { "ESPIPE", ESPIPE, },
640 #endif
641 #if defined (EKEYEXPIRED)
642  { "EKEYEXPIRED", EKEYEXPIRED, },
643 #endif
644 #if defined (ECHILD)
645  { "ECHILD", ECHILD, },
646 #endif
647 #if defined (EREMCHG)
648  { "EREMCHG", EREMCHG, },
649 #endif
650 #if defined (EBFONT)
651  { "EBFONT", EBFONT, },
652 #endif
653 #if defined (EDQUOT)
654  { "EDQUOT", EDQUOT, },
655 #endif
656 #if defined (ECONNREFUSED)
657  { "ECONNREFUSED", ECONNREFUSED, },
658 #endif
659 #if defined (ESRMNT)
660  { "ESRMNT", ESRMNT, },
661 #endif
662 #if defined (EBUSY)
663  { "EBUSY", EBUSY, },
664 #endif
665 #if defined (EMEDIUMTYPE)
666  { "EMEDIUMTYPE", EMEDIUMTYPE, },
667 #endif
668 #if defined (EUNATCH)
669  { "EUNATCH", EUNATCH, },
670 #endif
671 #if defined (ECONNRESET)
672  { "ECONNRESET", ECONNRESET, },
673 #endif
674 #if defined (ELIBMAX)
675  { "ELIBMAX", ELIBMAX, },
676 #endif
677 
678 
679  { 0, 0, },
680  };
681 
682  // Stuff them all in a map for fast access.
683 
684  errno_struct *ptr = errno_codes;
685 
686  while (ptr->name)
687  {
688  errno_tbl[ptr->name] = ptr->value;
689  ptr++;
690  }
691 }
692 
693 bool
695 {
696  bool retval = true;
697 
698  if (! instance)
699  {
700  instance = new octave_errno ();
701 
702  if (instance)
704  }
705 
706  if (! instance)
707  {
708  ::error ("unable to create errno object!");
709 
710  retval = false;
711  }
712 
713  return retval;
714 }
715 
716 int
717 octave_errno::lookup (const std::string& name)
718 {
719  return (instance_ok ()) ? instance->do_lookup (name) : -1;
720 }
721 
724 {
725  return (instance_ok ()) ? instance->do_list () : octave_scalar_map ();
726 }
727 
728 int
729 octave_errno::do_lookup (const std::string& name)
730 {
731  return (errno_tbl.find (name) != errno_tbl.end ()) ? errno_tbl[name] : -1;
732 }
733 
736 {
737  octave_scalar_map retval;
738 
739  for (std::map<std::string, int>::const_iterator p = errno_tbl.begin ();
740  p != errno_tbl.end ();
741  p++)
742  {
743  retval.assign (p->first, p->second);
744  }
745 
746  return retval;
747 }
static void cleanup_instance(void)
Definition: oct-errno.h:46
static octave_errno * instance
Definition: oct-errno.h:65
void error(const char *fmt,...)
Definition: error.cc:476
static bool instance_ok(void)
Definition: oct-errno.cc:694
static void add(fptr f)
int do_lookup(const std::string &name)
Definition: oct-errno.cc:729
octave_scalar_map do_list(void)
Definition: oct-errno.cc:735
void assign(const std::string &k, const octave_value &val)
Definition: oct-map.h:225
static int lookup(const std::string &name)
Definition: oct-errno.cc:717
static octave_scalar_map list(void)
Definition: oct-errno.cc:723
std::map< std::string, int > errno_tbl
Definition: oct-errno.h:63
octave_errno(void)
Definition: oct-errno.cc:38