aroarfw
error.h
Go to the documentation of this file.
1 //error.h:
2 
3 /*
4  * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2011-2013
5  *
6  * This file is part of aroarfw, a RoarAudio framework for
7  * embedded systems (µControlers).
8  *
9  * This file is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License version 3
11  * or (at your option) any later version as published by
12  * the Free Software Foundation.
13  *
14  * aroarfw is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this software; see the file COPYING. If not, write to
21  * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
22  * Boston, MA 02110-1301, USA.
23  */
24 
25 #ifndef _AROARFW_ERROR_H_
26 #define _AROARFW_ERROR_H_
27 
28 //$ 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
29 
31 typedef enum {
67  RERROR_DOM = 16,
73  RERROR_IO = 19,
103  RERROR_RO = 45,
221  RERROR_GONE = 104,
234 } rerror_t;
235 
236 #endif
237 
238 //ll
RERROR_MLINK
Too many links to file or object.
Definition: error.h:201
RERROR_MFILE
Too many open files or objects.
Definition: error.h:81
RERROR_NORSYS
Feature not implemented by remote end.
Definition: error.h:95
RERROR_NOTDIR
Not a directory.
Definition: error.h:169
RERROR_AGAIN
Resource temporarily unavailable.
Definition: error.h:107
RERROR_NODEV
No such device.
Definition: error.h:87
RERROR_ISDIR
Is a directory.
Definition: error.h:167
RERROR_IO
I/O-Error.
Definition: error.h:73
RERROR_NOTSUP
Operation not supported.
Definition: error.h:49
RERROR_AFNOTSUP
Address family not supported.
Definition: error.h:189
RERROR_CANCELED
Operation canceled.
Definition: error.h:165
RERROR_INTERRUPTED
Operation was interruped.
Definition: error.h:113
RERROR_NEEDPAYMENT
Payment Required.
Definition: error.h:225
RERROR_USEPROXY
Use Proxy server.
Definition: error.h:217
RERROR_PIPE
Broken pipe.
Definition: error.h:51
RERROR_SWITCHPROTO
Switch protocol.
Definition: error.h:211
RERROR_BADLIB
Accessing a corrupted shared library.
Definition: error.h:119
RERROR_GONE
Resource gone.
Definition: error.h:221
RERROR_BADFH
Bad file handle.
Definition: error.h:179
RERROR_RO
File or object is read only.
Definition: error.h:103
RERROR_USER
Error in front of screen.
Definition: error.h:193
RERROR_ADDRINUSE
Address in use.
Definition: error.h:127
RERROR_NOCHILD
No child processes/object.
Definition: error.h:161
rerror_t
rerror_t
Error codes for on-wire protocol.
Definition: error.h:31
RERROR_CONNRSTNET
Connection reset by network.
Definition: error.h:205
RERROR_NFILE
Too many files/objects open in system.
Definition: error.h:195
RERROR_BADHOST
Bad host software or hardware.
Definition: error.h:209
RERROR_DISABLED
This has been disabled by the administrator.
Definition: error.h:233
RERROR_BADMAGIC
Bad magic number.
Definition: error.h:135
RERROR_DEADLOCK
Resource deadlock would occur.
Definition: error.h:175
RERROR_NODATA
No message is available on the read queue.
Definition: error.h:85
RERROR_TOOMANYARGS
Argument list too long.
Definition: error.h:183
RERROR_NSTYPE
Type or Format not supported.
Definition: error.h:227
RERROR_NOENT
No such file or directory.
Definition: error.h:39
RERROR_NOSEEK
Seeking not supported on resource.
Definition: error.h:141
RERROR_BADCKSUM
Data integrity error.
Definition: error.h:143
RERROR_NOSPC
No space left on device.
Definition: error.h:91
RERROR_KEYEXPIRED
Key has expired.
Definition: error.h:75
RERROR_NODEUNREACH
Node is unreachable.
Definition: error.h:155
RERROR_NONE
No error. Can be used to initialize error variables.
Definition: error.h:35
RERROR_LOSTSYNC
Lost synchronization.
Definition: error.h:137
RERROR_CHERNOBYL
Fatal device error.
Definition: error.h:147
RERROR_BADSTATE
Object is in bad/wrong state.
Definition: error.h:231
RERROR_DESTADDRREQ
Destination address required.
Definition: error.h:187
RERROR_CONNABORTED
Connection aborted.
Definition: error.h:207
RERROR_NOHORSE
Mount failed.
Definition: error.h:145
RERROR_HOLE
Hole in data.
Definition: error.h:129
RERROR_MSGSIZE
Message too long.
Definition: error.h:57
RERROR_TOOLARGE
File/Object too large.
Definition: error.h:185
RERROR_NOHUG
Device needs love.
Definition: error.h:149
RERROR_BUSY
Device or resource busy.
Definition: error.h:43
RERROR_PROTONOSUP
Protocol not supported.
Definition: error.h:99
RERROR_NOPOWER
Operation can not be completed because we are low on power.
Definition: error.h:191
RERROR_ALREADY
Connection already in progress.
Definition: error.h:63
RERROR_CONNRST
Connection reset.
Definition: error.h:177
RERROR_BADMSG
Bad message.
Definition: error.h:41
RERROR_MOVEDPERM
Moved Permanently.
Definition: error.h:213
RERROR_NOSYS
Function not implemented.
Definition: error.h:47
RERROR_LOOP
Too many recursions.
Definition: error.h:79
RERROR_BADRQC
Invalid request code.
Definition: error.h:65
RERROR_INVAL
Invalid argument.
Definition: error.h:61
RERROR_CAUSALITY
Causality error.
Definition: error.h:115
RERROR_NOMEM
Not enough space.
Definition: error.h:59
RERROR_NOTSOCK
Not a socket.
Definition: error.h:181
RERROR_FAULT
Bad address.
Definition: error.h:71
RERROR_TIMEDOUT
Connection timed out.
Definition: error.h:105
RERROR_IDREMOVED
Identifier removed.
Definition: error.h:157
RERROR_TEXTBUSY
Text file busy.
Definition: error.h:151
RERROR_MOVEDTEMP
Moved Temporary.
Definition: error.h:215
RERROR_NOISE
Line too noisy.
Definition: error.h:109
RERROR_BADVERSION
Bad version.
Definition: error.h:131
RERROR_NOTEMPTY
Directory not empty.
Definition: error.h:153
RERROR_CONNREFUSED
Connection refused.
Definition: error.h:45
RERROR_NODRV
No such driver.
Definition: error.h:89
RERROR_NOTUNIQ
Name not unique.
Definition: error.h:123
RERROR_TYPEMM
Type missmatch. Object of diffrent type required.
Definition: error.h:93
RERROR_BADEXEC
Executable file format error.
Definition: error.h:171
RERROR_PROTO
Protocol error.
Definition: error.h:53
RERROR_UNKNOWN
Unknown (maybe no) error.
Definition: error.h:33
RERROR_RIO
Remote I/O Error.
Definition: error.h:101
RERROR_NONET
Not connected to any network.
Definition: error.h:203
RERROR_EXIST
File or object exists.
Definition: error.h:69
RERROR_NSVERSION
Not supported version.
Definition: error.h:133
RERROR_CENSORED
Access denied because of censorship.
Definition: error.h:229
RERROR_PERM
Operation not permitted.
Definition: error.h:37
RERROR_ISCONN
Socket/Object is connected.
Definition: error.h:173
RERROR_QUOTA
Quota exceeded.
Definition: error.h:117
RERROR_SEEOTHER
See other resource.
Definition: error.h:219
RERROR_STALE
Stale file handle or object.
Definition: error.h:197
RERROR_BADSEEK
Can not seek to destination position.
Definition: error.h:139
RERROR_NETUNREACH
Network unreachable.
Definition: error.h:163
RERROR_NAMETOOLONG
File or object name too long.
Definition: error.h:83
RERROR_INPROGRESS
Operation in progress.
Definition: error.h:159
RERROR_DOM
Mathematics argument out of domain of function.
Definition: error.h:67
RERROR_XDEVLINK
Cross-device link.
Definition: error.h:199
RERROR_NOMEDIUM
No medium found.
Definition: error.h:121
RERROR_RANGE
Result too large/general out of range.
Definition: error.h:55
RERROR_NOTCONN
Socket or object not connected.
Definition: error.h:97
RERROR_LINKDOWN
Physical or logical link down.
Definition: error.h:111
RERROR_BADLICENSE
Bad License.
Definition: error.h:223
RERROR_ILLSEQ
Illegal byte sequence.
Definition: error.h:125
RERROR_KEYREJECTED
Key was rejected by service.
Definition: error.h:77