annotate libinterp/corefcn/oct-errno.in.cc @ 21301:40de9f8f23a6

Use '#include "config.h"' rather than <config.h>. * mk-octave-config-h.sh, mk-opts.pl, Backend.cc, BaseControl.cc, ButtonControl.cc, Canvas.cc, CheckBoxControl.cc, Container.cc, ContextMenu.cc, EditControl.cc, Figure.cc, FigureWindow.cc, GLCanvas.cc, KeyMap.cc, ListBoxControl.cc, Logger.cc, Menu.cc, MouseModeActionGroup.cc, Object.cc, ObjectFactory.cc, ObjectProxy.cc, Panel.cc, PopupMenuControl.cc, PushButtonControl.cc, PushTool.cc, QtHandlesUtils.cc, RadioButtonControl.cc, SliderControl.cc, TextControl.cc, TextEdit.cc, ToggleButtonControl.cc, ToggleTool.cc, ToolBar.cc, ToolBarButton.cc, __init_qt__.cc, annotation-dialog.cc, gl-select.cc, module.mk, kpty.cpp, color-picker.cc, dialog.cc, documentation-dock-widget.cc, files-dock-widget.cc, find-files-dialog.cc, find-files-model.cc, history-dock-widget.cc, file-editor-tab.cc, file-editor-tab.h, file-editor.cc, find-dialog.cc, marker.cc, octave-qscintilla.cc, octave-txt-lexer.cc, main-window.cc, octave-cmd.cc, octave-dock-widget.cc, octave-gui.cc, octave-interpreter.cc, octave-qt-link.cc, parser.cc, webinfo.cc, resource-manager.cc, settings-dialog.cc, shortcut-manager.cc, terminal-dock-widget.cc, thread-manager.cc, welcome-wizard.cc, workspace-model.cc, workspace-view.cc, build-env-features.sh, build-env.in.cc, Cell.cc, __contourc__.cc, __dispatch__.cc, __dsearchn__.cc, __ichol__.cc, __ilu__.cc, __lin_interpn__.cc, __pchip_deriv__.cc, __qp__.cc, balance.cc, besselj.cc, betainc.cc, bitfcns.cc, bsxfun.cc, c-file-ptr-stream.cc, cdisplay.c, cellfun.cc, coct-hdf5-types.c, colloc.cc, comment-list.cc, conv2.cc, daspk.cc, dasrt.cc, dassl.cc, data.cc, debug.cc, defaults.cc, defun.cc, det.cc, dirfns.cc, display.cc, dlmread.cc, dot.cc, dynamic-ld.cc, eig.cc, ellipj.cc, error.cc, errwarn.cc, event-queue.cc, fft.cc, fft2.cc, fftn.cc, file-io.cc, filter.cc, find.cc, ft-text-renderer.cc, gammainc.cc, gcd.cc, getgrent.cc, getpwent.cc, getrusage.cc, givens.cc, gl-render.cc, gl2ps-print.cc, graphics.cc, gripes.cc, hash.cc, help.cc, hess.cc, hex2num.cc, hook-fcn.cc, input.cc, inv.cc, jit-ir.cc, jit-typeinfo.cc, jit-util.cc, kron.cc, load-path.cc, load-save.cc, lookup.cc, ls-ascii-helper.cc, ls-hdf5.cc, ls-mat-ascii.cc, ls-mat4.cc, ls-mat5.cc, ls-oct-binary.cc, ls-oct-text.cc, ls-utils.cc, lsode.cc, lu.cc, luinc.cc, mappers.cc, matrix_type.cc, max.cc, mex.cc, mgorth.cc, nproc.cc, oct-errno.in.cc, oct-fstrm.cc, oct-hdf5-types.cc, oct-hist.cc, oct-iostrm.cc, oct-lvalue.cc, oct-map.cc, oct-prcstrm.cc, oct-procbuf.cc, oct-stream.cc, oct-strstrm.cc, oct-tex-lexer.in.ll, oct-tex-parser.in.yy, octave-link.cc, ordschur.cc, pager.cc, pinv.cc, pr-output.cc, procstream.cc, profiler.cc, psi.cc, pt-jit.cc, quad.cc, quadcc.cc, qz.cc, rand.cc, rcond.cc, regexp.cc, schur.cc, sighandlers.cc, siglist.c, sparse-xdiv.cc, sparse-xpow.cc, sparse.cc, spparms.cc, sqrtm.cc, str2double.cc, strfind.cc, strfns.cc, sub2ind.cc, svd.cc, sylvester.cc, symtab.cc, syscalls.cc, sysdep.cc, text-renderer.cc, time.cc, toplev.cc, tril.cc, tsearch.cc, txt-eng.cc, typecast.cc, urlwrite.cc, utils.cc, variables.cc, xdiv.cc, xgl2ps.c, xnorm.cc, xpow.cc, zfstream.cc, __delaunayn__.cc, __eigs__.cc, __fltk_uigetfile__.cc, __glpk__.cc, __init_fltk__.cc, __init_gnuplot__.cc, __magick_read__.cc, __osmesa_print__.cc, __voronoi__.cc, amd.cc, audiodevinfo.cc, audioread.cc, ccolamd.cc, chol.cc, colamd.cc, convhulln.cc, dmperm.cc, fftw.cc, qr.cc, symbfact.cc, symrcm.cc, mkbuiltins, mkops, ov-base-diag.cc, ov-base-int.cc, ov-base-mat.cc, ov-base-scalar.cc, ov-base-sparse.cc, ov-base.cc, ov-bool-mat.cc, ov-bool-sparse.cc, ov-bool.cc, ov-builtin.cc, ov-cell.cc, ov-ch-mat.cc, ov-class.cc, ov-classdef.cc, ov-colon.cc, ov-complex.cc, ov-cs-list.cc, ov-cx-diag.cc, ov-cx-mat.cc, ov-cx-sparse.cc, ov-dld-fcn.cc, ov-fcn-handle.cc, ov-fcn-inline.cc, ov-fcn.cc, ov-float.cc, ov-flt-complex.cc, ov-flt-cx-diag.cc, ov-flt-cx-mat.cc, ov-flt-re-diag.cc, ov-flt-re-mat.cc, ov-int16.cc, ov-int32.cc, ov-int64.cc, ov-int8.cc, ov-java.cc, ov-lazy-idx.cc, ov-mex-fcn.cc, ov-null-mat.cc, ov-oncleanup.cc, ov-perm.cc, ov-range.cc, ov-re-diag.cc, ov-re-mat.cc, ov-re-sparse.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov-typeinfo.cc, ov-uint16.cc, ov-uint32.cc, ov-uint64.cc, ov-uint8.cc, ov-usr-fcn.cc, ov.cc, ovl.cc, octave.cc, op-b-b.cc, op-b-bm.cc, op-b-sbm.cc, op-bm-b.cc, op-bm-bm.cc, op-bm-sbm.cc, op-cdm-cdm.cc, op-cell.cc, op-chm.cc, op-class.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cm-scm.cc, op-cm-sm.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, op-cs-scm.cc, op-cs-sm.cc, op-dm-dm.cc, op-dm-scm.cc, op-dm-sm.cc, op-dm-template.cc, op-dms-template.cc, op-double-conv.cc, op-fcdm-fcdm.cc, op-fcdm-fdm.cc, op-fcm-fcm.cc, op-fcm-fcs.cc, op-fcm-fm.cc, op-fcm-fs.cc, op-fcn.cc, op-fcs-fcm.cc, op-fcs-fcs.cc, op-fcs-fm.cc, op-fcs-fs.cc, op-fdm-fdm.cc, op-float-conv.cc, op-fm-fcm.cc, op-fm-fcs.cc, op-fm-fm.cc, op-fm-fs.cc, op-fs-fcm.cc, op-fs-fcs.cc, op-fs-fm.cc, op-fs-fs.cc, op-i16-i16.cc, op-i32-i32.cc, op-i64-i64.cc, op-i8-i8.cc, op-int-concat.cc, op-int-conv.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-m-scm.cc, op-m-sm.cc, op-pm-pm.cc, op-pm-scm.cc, op-pm-sm.cc, op-pm-template.cc, op-range.cc, op-s-cm.cc, op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-s-scm.cc, op-s-sm.cc, op-sbm-b.cc, op-sbm-bm.cc, op-sbm-sbm.cc, op-scm-cm.cc, op-scm-cs.cc, op-scm-m.cc, op-scm-s.cc, op-scm-scm.cc, op-scm-sm.cc, op-sm-cm.cc, op-sm-cs.cc, op-sm-m.cc, op-sm-s.cc, op-sm-scm.cc, op-sm-sm.cc, op-str-m.cc, op-str-s.cc, op-str-str.cc, op-struct.cc, op-ui16-ui16.cc, op-ui32-ui32.cc, op-ui64-ui64.cc, op-ui8-ui8.cc, lex.ll, oct-parse.in.yy, pt-arg-list.cc, pt-array-list.cc, pt-assign.cc, pt-binop.cc, pt-bp.cc, pt-cbinop.cc, pt-cell.cc, pt-check.cc, pt-classdef.cc, pt-cmd.cc, pt-colon.cc, pt-const.cc, pt-decl.cc, pt-eval.cc, pt-except.cc, pt-exp.cc, pt-fcn-handle.cc, pt-funcall.cc, pt-id.cc, pt-idx.cc, pt-jump.cc, pt-loop.cc, pt-mat.cc, pt-misc.cc, pt-pr-code.cc, pt-select.cc, pt-stmt.cc, pt-unop.cc, pt.cc, token.cc, Array-jit.cc, Array-os.cc, Array-sym.cc, Array-tc.cc, version.cc, Array-C.cc, Array-b.cc, Array-ch.cc, Array-d.cc, Array-f.cc, Array-fC.cc, Array-i.cc, Array-idx-vec.cc, Array-s.cc, Array-str.cc, Array-util.cc, Array-voidp.cc, Array.cc, CColVector.cc, CDiagMatrix.cc, CMatrix.cc, CNDArray.cc, CRowVector.cc, CSparse.cc, DiagArray2.cc, MArray-C.cc, MArray-d.cc, MArray-f.cc, MArray-fC.cc, MArray-i.cc, MArray-s.cc, MArray.cc, MDiagArray2.cc, MSparse-C.cc, MSparse-d.cc, MatrixType.cc, PermMatrix.cc, Range.cc, Sparse-C.cc, Sparse-b.cc, Sparse-d.cc, Sparse.cc, boolMatrix.cc, boolNDArray.cc, boolSparse.cc, chMatrix.cc, chNDArray.cc, dColVector.cc, dDiagMatrix.cc, dMatrix.cc, dNDArray.cc, dRowVector.cc, dSparse.cc, dim-vector.cc, fCColVector.cc, fCDiagMatrix.cc, fCMatrix.cc, fCNDArray.cc, fCRowVector.cc, fColVector.cc, fDiagMatrix.cc, fMatrix.cc, fNDArray.cc, fRowVector.cc, idx-vector.cc, int16NDArray.cc, int32NDArray.cc, int64NDArray.cc, int8NDArray.cc, intNDArray.cc, uint16NDArray.cc, uint32NDArray.cc, uint64NDArray.cc, uint8NDArray.cc, blaswrap.c, cquit.c, f77-extern.cc, f77-fcn.c, lo-error.c, quit.cc, CollocWt.cc, DASPK.cc, DASRT.cc, DASSL.cc, EIG.cc, LSODE.cc, ODES.cc, Quad.cc, aepbalance.cc, chol.cc, eigs-base.cc, fEIG.cc, gepbalance.cc, hess.cc, lo-mappers.cc, lo-specfun.cc, lu.cc, oct-convn.cc, oct-fftw.cc, oct-norm.cc, oct-rand.cc, oct-spparms.cc, qr.cc, qrp.cc, randgamma.c, randmtzig.c, randpoisson.c, schur.cc, sparse-chol.cc, sparse-dmsolve.cc, sparse-lu.cc, sparse-qr.cc, svd.cc, mk-ops.awk, dir-ops.cc, file-ops.cc, file-stat.cc, lo-sysdep.cc, mach-info.cc, oct-env.cc, oct-group.cc, oct-passwd.cc, oct-syscalls.cc, oct-time.cc, oct-uname.cc, cmd-edit.cc, cmd-hist.cc, data-conv.cc, f2c-main.c, glob-match.cc, kpse.cc, lo-array-errwarn.cc, lo-array-gripes.cc, lo-cutils.c, lo-ieee.cc, lo-regexp.cc, lo-utils.cc, oct-base64.cc, oct-glob.cc, oct-inttypes.cc, oct-locbuf.cc, oct-mutex.cc, oct-rl-edit.c, oct-rl-hist.c, oct-shlib.cc, oct-sort.cc, pathsearch.cc, singleton-cleanup.cc, sparse-sort.cc, sparse-util.cc, str-vec.cc, unwind-prot.cc, url-transfer.cc, display-available.c, main-cli.cc, main-gui.cc, main.in.cc, mkoctfile.in.cc, octave-config.in.cc: Use '#include "config.h"' rather than <config.h>.
author Rik <rik@octave.org>
date Thu, 18 Feb 2016 13:34:50 -0800
parents fcac5dbbf9ed
children aba2e6293dd8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15096
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 14547
diff changeset
1 // DO NOT EDIT! Generated automatically from oct-errno.in.cc by configure
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
2 /*
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
3
19697
4197fc428c7d maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
4 Copyright (C) 2005-2015 John W. Eaton
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
5
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
6 This file is part of Octave.
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
7
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
8 Octave is free software; you can redistribute it and/or modify it
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
9 under the terms of the GNU General Public License as published by the
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 5890
diff changeset
10 Free Software Foundation; either version 3 of the License, or (at your
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 5890
diff changeset
11 option) any later version.
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
12
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
13 Octave is distributed in the hope that it will be useful, but WITHOUT
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
16 for more details.
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
17
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 5890
diff changeset
19 along with Octave; see the file COPYING. If not, see
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 5890
diff changeset
20 <http://www.gnu.org/licenses/>.
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
21
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
22 */
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
23
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
24 #ifdef HAVE_CONFIG_H
21301
40de9f8f23a6 Use '#include "config.h"' rather than <config.h>.
Rik <rik@octave.org>
parents: 21200
diff changeset
25 # include "config.h"
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
26 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
27
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
28 #include <cerrno>
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
29
13992
e1f76bfe0452 apply singleton_cleanup to a few more classes
John W. Eaton <jwe@octave.org>
parents: 11523
diff changeset
30 #include "singleton-cleanup.h"
e1f76bfe0452 apply singleton_cleanup to a few more classes
John W. Eaton <jwe@octave.org>
parents: 11523
diff changeset
31
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
32 #include "oct-errno.h"
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
33 #include "oct-map.h"
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
34 #include "error.h"
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
35
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
36 octave_errno *octave_errno::instance = 0;
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
37
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
38 octave_errno::octave_errno (void)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
39 {
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
40 struct errno_struct
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
41 {
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
42 const char *name;
5890
078f5b203e92 [project @ 2006-07-15 13:00:42 by jwe]
jwe
parents: 5494
diff changeset
43 int value;
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
44 };
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
45
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
46 static errno_struct errno_codes[] =
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
47 {
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
48 // POSIX.
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
49
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
50 #if defined (E2BIG)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
51 { "E2BIG", E2BIG, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
52 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
53 #if defined (EACCES)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
54 { "EACCES", EACCES, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
55 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
56 #if defined (EADDRINUSE)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
57 { "EADDRINUSE", EADDRINUSE, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
58 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
59 #if defined (EADDRNOTAVAIL)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
60 { "EADDRNOTAVAIL", EADDRNOTAVAIL, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
61 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
62 #if defined (EAFNOSUPPORT)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
63 { "EAFNOSUPPORT", EAFNOSUPPORT, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
64 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
65 #if defined (EAGAIN)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
66 { "EAGAIN", EAGAIN, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
67 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
68 #if defined (EALREADY)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
69 { "EALREADY", EALREADY, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
70 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
71 #if defined (EBADF)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
72 { "EBADF", EBADF, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
73 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
74 #if defined (EBUSY)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
75 { "EBUSY", EBUSY, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
76 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
77 #if defined (ECHILD)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
78 { "ECHILD", ECHILD, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
79 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
80 #if defined (ECONNABORTED)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
81 { "ECONNABORTED", ECONNABORTED, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
82 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
83 #if defined (ECONNREFUSED)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
84 { "ECONNREFUSED", ECONNREFUSED, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
85 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
86 #if defined (ECONNRESET)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
87 { "ECONNRESET", ECONNRESET, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
88 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
89 #if defined (EDEADLK)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
90 { "EDEADLK", EDEADLK, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
91 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
92 #if defined (EDESTADDRREQ)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
93 { "EDESTADDRREQ", EDESTADDRREQ, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
94 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
95 #if defined (EDOM)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
96 { "EDOM", EDOM, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
97 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
98 #if defined (EDQUOT)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
99 { "EDQUOT", EDQUOT, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
100 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
101 #if defined (EEXIST)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
102 { "EEXIST", EEXIST, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
103 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
104 #if defined (EFAULT)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
105 { "EFAULT", EFAULT, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
106 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
107 #if defined (EFBIG)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
108 { "EFBIG", EFBIG, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
109 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
110 #if defined (EHOSTDOWN)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
111 { "EHOSTDOWN", EHOSTDOWN, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
112 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
113 #if defined (EHOSTUNREACH)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
114 { "EHOSTUNREACH", EHOSTUNREACH, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
115 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
116 #if defined (EINPROGRESS)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
117 { "EINPROGRESS", EINPROGRESS, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
118 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
119 #if defined (EINTR)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
120 { "EINTR", EINTR, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
121 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
122 #if defined (EINVAL)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
123 { "EINVAL", EINVAL, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
124 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
125 #if defined (EIO)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
126 { "EIO", EIO, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
127 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
128 #if defined (EISCONN)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
129 { "EISCONN", EISCONN, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
130 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
131 #if defined (EISDIR)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
132 { "EISDIR", EISDIR, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
133 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
134 #if defined (ELOOP)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
135 { "ELOOP", ELOOP, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
136 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
137 #if defined (EMFILE)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
138 { "EMFILE", EMFILE, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
139 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
140 #if defined (EMLINK)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
141 { "EMLINK", EMLINK, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
142 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
143 #if defined (EMSGSIZE)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
144 { "EMSGSIZE", EMSGSIZE, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
145 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
146 #if defined (ENAMETOOLONG)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
147 { "ENAMETOOLONG", ENAMETOOLONG, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
148 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
149 #if defined (ENETDOWN)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
150 { "ENETDOWN", ENETDOWN, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
151 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
152 #if defined (ENETRESET)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
153 { "ENETRESET", ENETRESET, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
154 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
155 #if defined (ENETUNREACH)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
156 { "ENETUNREACH", ENETUNREACH, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
157 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
158 #if defined (ENFILE)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
159 { "ENFILE", ENFILE, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
160 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
161 #if defined (ENOBUFS)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
162 { "ENOBUFS", ENOBUFS, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
163 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
164 #if defined (ENODEV)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
165 { "ENODEV", ENODEV, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
166 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
167 #if defined (ENOENT)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
168 { "ENOENT", ENOENT, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
169 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
170 #if defined (ENOEXEC)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
171 { "ENOEXEC", ENOEXEC, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
172 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
173 #if defined (ENOLCK)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
174 { "ENOLCK", ENOLCK, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
175 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
176 #if defined (ENOMEM)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
177 { "ENOMEM", ENOMEM, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
178 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
179 #if defined (ENOPROTOOPT)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
180 { "ENOPROTOOPT", ENOPROTOOPT, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
181 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
182 #if defined (ENOSPC)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
183 { "ENOSPC", ENOSPC, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
184 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
185 #if defined (ENOSYS)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
186 { "ENOSYS", ENOSYS, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
187 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
188 #if defined (ENOTBLK)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
189 { "ENOTBLK", ENOTBLK, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
190 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
191 #if defined (ENOTCONN)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
192 { "ENOTCONN", ENOTCONN, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
193 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
194 #if defined (ENOTDIR)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
195 { "ENOTDIR", ENOTDIR, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
196 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
197 #if defined (ENOTEMPTY)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
198 { "ENOTEMPTY", ENOTEMPTY, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
199 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
200 #if defined (ENOTSOCK)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
201 { "ENOTSOCK", ENOTSOCK, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
202 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
203 #if defined (ENOTTY)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
204 { "ENOTTY", ENOTTY, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
205 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
206 #if defined (ENXIO)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
207 { "ENXIO", ENXIO, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
208 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
209 #if defined (EOPNOTSUPP)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
210 { "EOPNOTSUPP", EOPNOTSUPP, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
211 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
212 #if defined (EPERM)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
213 { "EPERM", EPERM, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
214 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
215 #if defined (EPFNOSUPPORT)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
216 { "EPFNOSUPPORT", EPFNOSUPPORT, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
217 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
218 #if defined (EPIPE)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
219 { "EPIPE", EPIPE, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
220 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
221 #if defined (EPROTONOSUPPORT)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
222 { "EPROTONOSUPPORT", EPROTONOSUPPORT, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
223 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
224 #if defined (EPROTOTYPE)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
225 { "EPROTOTYPE", EPROTOTYPE, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
226 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
227 #if defined (ERANGE)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
228 { "ERANGE", ERANGE, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
229 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
230 #if defined (EREMOTE)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
231 { "EREMOTE", EREMOTE, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
232 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
233 #if defined (ERESTART)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
234 { "ERESTART", ERESTART, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
235 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
236 #if defined (EROFS)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
237 { "EROFS", EROFS, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
238 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
239 #if defined (ESHUTDOWN)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
240 { "ESHUTDOWN", ESHUTDOWN, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
241 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
242 #if defined (ESOCKTNOSUPPORT)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
243 { "ESOCKTNOSUPPORT", ESOCKTNOSUPPORT, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
244 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
245 #if defined (ESPIPE)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
246 { "ESPIPE", ESPIPE, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
247 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
248 #if defined (ESRCH)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
249 { "ESRCH", ESRCH, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
250 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
251 #if defined (ESTALE)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
252 { "ESTALE", ESTALE, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
253 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
254 #if defined (ETIMEDOUT)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
255 { "ETIMEDOUT", ETIMEDOUT, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
256 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
257 #if defined (ETOOMANYREFS)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
258 { "ETOOMANYREFS", ETOOMANYREFS, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
259 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
260 #if defined (ETXTBSY)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
261 { "ETXTBSY", ETXTBSY, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
262 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
263 #if defined (EUSERS)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
264 { "EUSERS", EUSERS, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
265 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
266 #if defined (EWOULDBLOCK)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
267 { "EWOULDBLOCK", EWOULDBLOCK, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
268 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
269 #if defined (EXDEV)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
270 { "EXDEV", EXDEV, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
271 #endif
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
272
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
273 // Others (duplicates are OK).
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
274
5494
73a87a677257 [project @ 2005-10-14 07:29:20 by jwe]
jwe
parents: 5465
diff changeset
275 @SYSDEP_ERRNO_LIST@
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
276
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
277 { 0, 0, },
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
278 };
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
279
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
280 // Stuff them all in a map for fast access.
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
281
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
282 errno_struct *ptr = errno_codes;
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
283
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
284 while (ptr->name)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
285 {
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
286 errno_tbl[ptr->name] = ptr->value;
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
287 ptr++;
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
288 }
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
289 }
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
290
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
291 bool
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
292 octave_errno::instance_ok (void)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
293 {
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
294 bool retval = true;
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
295
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
296 if (! instance)
13992
e1f76bfe0452 apply singleton_cleanup to a few more classes
John W. Eaton <jwe@octave.org>
parents: 11523
diff changeset
297 {
e1f76bfe0452 apply singleton_cleanup to a few more classes
John W. Eaton <jwe@octave.org>
parents: 11523
diff changeset
298 instance = new octave_errno ();
e1f76bfe0452 apply singleton_cleanup to a few more classes
John W. Eaton <jwe@octave.org>
parents: 11523
diff changeset
299
e1f76bfe0452 apply singleton_cleanup to a few more classes
John W. Eaton <jwe@octave.org>
parents: 11523
diff changeset
300 if (instance)
e1f76bfe0452 apply singleton_cleanup to a few more classes
John W. Eaton <jwe@octave.org>
parents: 11523
diff changeset
301 singleton_cleanup_list::add (cleanup_instance);
e1f76bfe0452 apply singleton_cleanup to a few more classes
John W. Eaton <jwe@octave.org>
parents: 11523
diff changeset
302 }
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
303
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
304 if (! instance)
20956
850e3d2533d4 maint: Eliminate more useless statements after error().
Rik <rik@octave.org>
parents: 20428
diff changeset
305 error ("unable to create errno object!");
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
306
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
307 return retval;
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
308 }
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
309
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
310 int
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
311 octave_errno::lookup (const std::string& name)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
312 {
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
313 return (instance_ok ()) ? instance->do_lookup (name) : -1;
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
314 }
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
315
11063
e378c0176a38 oct-errno.cc.in: use octve_scalar_map instead of Octave_map
John W. Eaton <jwe@octave.org>
parents: 10161
diff changeset
316 octave_scalar_map
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
317 octave_errno::list (void)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
318 {
11063
e378c0176a38 oct-errno.cc.in: use octve_scalar_map instead of Octave_map
John W. Eaton <jwe@octave.org>
parents: 10161
diff changeset
319 return (instance_ok ()) ? instance->do_list () : octave_scalar_map ();
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
320 }
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
321
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
322 int
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
323 octave_errno::do_lookup (const std::string& name)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
324 {
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
325 return (errno_tbl.find (name) != errno_tbl.end ()) ? errno_tbl[name] : -1;
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
326 }
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
327
11063
e378c0176a38 oct-errno.cc.in: use octve_scalar_map instead of Octave_map
John W. Eaton <jwe@octave.org>
parents: 10161
diff changeset
328 octave_scalar_map
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
329 octave_errno::do_list (void)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
330 {
11063
e378c0176a38 oct-errno.cc.in: use octve_scalar_map instead of Octave_map
John W. Eaton <jwe@octave.org>
parents: 10161
diff changeset
331 octave_scalar_map retval;
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
332
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
333 for (std::map<std::string, int>::const_iterator p = errno_tbl.begin ();
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
334 p != errno_tbl.end ();
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
335 p++)
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
336 {
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
337 retval.assign (p->first, p->second);
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
338 }
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
339
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
340 return retval;
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents:
diff changeset
341 }