aroarfw
include/aroarfw/error.h
Go to the documentation of this file.
00001 //error.h:
00002 
00003 /*
00004  *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2011-2012
00005  *
00006  *  This file is part of aroarfw, a RoarAudio framework for
00007  *  embedded systems (µControlers).
00008  *
00009  *  This file is free software; you can redistribute it and/or modify
00010  *  it under the terms of the GNU General Public License version 3
00011  *  or (at your option) any later version as published by
00012  *  the Free Software Foundation.
00013  *
00014  *  aroarfw is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  *  GNU General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU General Public License
00020  *  along with this software; see the file COPYING.  If not, write to
00021  *  the Free Software Foundation, 51 Franklin Street, Fifth Floor,
00022  *  Boston, MA 02110-1301, USA.
00023  */
00024 
00025 #ifndef _AROARFW_ERROR_H_
00026 #define _AROARFW_ERROR_H_
00027 
00028 //$ grep '^#define ROAR_ERROR_' error.h  | sed 's/^#define ROAR_ERROR_//; s/   */ /g; s/ \/\* / /; s/ \*\/$//' | while read name id msg; do printf " //! %s\n RERROR_%-11s = %2i,\n" "$msg" $name $id; done
00029 
00031 typedef enum {
00033  RERROR_UNKNOWN     = -1,
00035  RERROR_NONE        =  0,
00037  RERROR_PERM        =  1,
00039  RERROR_NOENT       =  2,
00041  RERROR_BADMSG      =  3,
00043  RERROR_BUSY        =  4,
00045  RERROR_CONNREFUSED =  5,
00047  RERROR_NOSYS       =  6,
00049  RERROR_NOTSUP      =  7,
00051  RERROR_PIPE        =  8,
00053  RERROR_PROTO       =  9,
00055  RERROR_RANGE       = 10,
00057  RERROR_MSGSIZE     = 11,
00059  RERROR_NOMEM       = 12,
00061  RERROR_INVAL       = 13,
00063  RERROR_ALREADY     = 14,
00065  RERROR_BADRQC      = 15,
00067  RERROR_DOM         = 16,
00069  RERROR_EXIST       = 17,
00071  RERROR_FAULT       = 18,
00073  RERROR_IO          = 19,
00075  RERROR_KEYEXPIRED  = 20,
00077  RERROR_KEYREJECTED = 21,
00079  RERROR_LOOP        = 22,
00081  RERROR_MFILE       = 23,
00083  RERROR_NAMETOOLONG = 24,
00085  RERROR_NODATA      = 25,
00087  RERROR_NODEV       = 26,
00089  RERROR_NODRV       = 27,
00091  RERROR_NOSPC       = 38,
00093  RERROR_TYPEMM      = 39,
00095  RERROR_NORSYS      = 40,
00097  RERROR_NOTCONN     = 41,
00099  RERROR_PROTONOSUP  = 42,
00101  RERROR_RIO         = 43,
00103  RERROR_RO          = 45,
00105  RERROR_TIMEDOUT    = 46,
00107  RERROR_AGAIN       = 47,
00109  RERROR_NOISE       = 48,
00111  RERROR_LINKDOWN    = 49,
00113  RERROR_INTERRUPTED = 50,
00115  RERROR_CAUSALITY   = 51,
00117  RERROR_QUOTA       = 52,
00119  RERROR_BADLIB      = 53,
00121  RERROR_NOMEDIUM    = 54,
00123  RERROR_NOTUNIQ     = 55,
00125  RERROR_ILLSEQ      = 56,
00127  RERROR_ADDRINUSE   = 57,
00129  RERROR_HOLE        = 58,
00131  RERROR_BADVERSION  = 59,
00133  RERROR_NSVERSION   = 60,
00135  RERROR_BADMAGIC    = 61,
00137  RERROR_LOSTSYNC    = 62,
00139  RERROR_BADSEEK     = 63,
00141  RERROR_NOSEEK      = 64,
00143  RERROR_BADCKSUM    = 65,
00145  RERROR_NOHORSE     = 66,
00147  RERROR_CHERNOBYL   = 67,
00149  RERROR_NOHUG       = 68,
00151  RERROR_TEXTBUSY    = 69,
00153  RERROR_NOTEMPTY    = 70,
00155  RERROR_NODEUNREACH = 71,
00157  RERROR_IDREMOVED   = 72,
00159  RERROR_INPROGRESS  = 73,
00161  RERROR_NOCHILD     = 74,
00163  RERROR_NETUNREACH  = 75,
00165  RERROR_CANCELED    = 76,
00167  RERROR_ISDIR       = 77,
00169  RERROR_NOTDIR      = 78,
00171  RERROR_BADEXEC     = 79,
00173  RERROR_ISCONN      = 80,
00175  RERROR_DEADLOCK    = 81,
00177  RERROR_CONNRST     = 82,
00179  RERROR_BADFH       = 83,
00181  RERROR_NOTSOCK     = 84,
00183  RERROR_TOOMANYARGS = 85,
00185  RERROR_TOOLARGE    = 86,
00187  RERROR_DESTADDRREQ = 87,
00189  RERROR_AFNOTSUP    = 88,
00191  RERROR_NOPOWER     = 89,
00193  RERROR_USER        = 90,
00195  RERROR_NFILE       = 91,
00197  RERROR_STALE       = 92,
00199  RERROR_XDEVLINK    = 93,
00201  RERROR_MLINK       = 94,
00203  RERROR_NONET       = 95,
00205  RERROR_CONNRSTNET  = 96,
00207  RERROR_CONNABORTED = 97,
00209  RERROR_BADHOST     = 98,
00211  RERROR_SWITCHPROTO = 99,
00213  RERROR_MOVEDPERM   = 100,
00215  RERROR_MOVEDTEMP   = 101,
00217  RERROR_USEPROXY    = 102,
00219  RERROR_SEEOTHER    = 103,
00221  RERROR_GONE        = 104
00222 } rerror_t;
00223 
00224 #endif
00225 
00226 //ll