L4Re - L4 Runtime Environment
err.h
Go to the documentation of this file.
1 
5 /*
6  * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
7  * Alexander Warg <warg@os.inf.tu-dresden.de>
8  * economic rights: Technische Universit├Ąt Dresden (Germany)
9  *
10  * This file is part of TUD:OS and distributed under the terms of the
11  * GNU General Public License 2.
12  * Please see the COPYING-GPL-2 file for details.
13  *
14  * As a special exception, you may use this file as part of a free software
15  * library without restriction. Specifically, if other files instantiate
16  * templates or use macros or inline functions from this file, or you compile
17  * this file and link it with other files to produce an executable, this
18  * file does not by itself cause the resulting executable to be covered by
19  * the GNU General Public License. This exception does not however
20  * invalidate any other reasons why the executable file might be covered by
21  * the GNU General Public License.
22  */
23 #pragma once
24 
25 #include <l4/sys/compiler.h>
26 
42 {
43  L4_EOK = 0,
44  L4_EPERM = 1,
45  L4_ENOENT = 2,
46  L4_EIO = 5,
47  L4_ENXIO = 6,
48  L4_E2BIG = 7,
49  L4_EAGAIN = 11,
50  L4_ENOMEM = 12,
51  L4_EACCESS = 13,
52  L4_EFAULT = 14,
53  L4_EBUSY = 16,
54  L4_EEXIST = 17,
55  L4_ENODEV = 19,
56  L4_EINVAL = 22,
57  L4_ENOSPC = 28,
58  L4_ERANGE = 34,
60  L4_ENOSYS = 38,
61  L4_EBADPROTO = 39,
63  L4_ERRNOMAX = 100,
65  L4_ENOREPLY = 1000,
66  L4_EMSGTOOSHORT = 1001,
67  L4_EMSGTOOLONG = 1002,
68  L4_EMSGMISSARG = 1003,
70  L4_EIPC_LO = 2000,
71  L4_EIPC_HI = 2000 + 0x1f,
72 };
73 
74 __BEGIN_DECLS
75 L4_CV char const *l4sys_errtostr(long err) L4_NOTHROW;
77 
78 
Name too long.
Definition: err.h:59
No such entity.
Definition: err.h:45
No such thing.
Definition: err.h:55
Message too long.
Definition: err.h:67
No permission.
Definition: err.h:44
Invalid argument.
Definition: err.h:56
No such device or address.
Definition: err.h:47
#define __END_DECLS
End section with C types and functions.
Definition: compiler.h:193
No reply.
Definition: err.h:65
Permission denied.
Definition: err.h:51
L4 compiler related defines.
Object currently busy, try later.
Definition: err.h:53
Ok.
Definition: err.h:43
Communication error-range high.
Definition: err.h:71
Maximum error value.
Definition: err.h:63
Invalid memory address.
Definition: err.h:52
#define L4_CV
Define calling convention.
Definition: linkage.h:44
No memory.
Definition: err.h:50
Communication error-range low.
Definition: err.h:70
I/O error.
Definition: err.h:46
Message has invalid capability.
Definition: err.h:68
l4_error_code_t
L4 error codes.
Definition: err.h:41
Unsupported protocol.
Definition: err.h:61
Range error.
Definition: err.h:58
Try again.
Definition: err.h:49
No sys.
Definition: err.h:60
Address not available.
Definition: err.h:62
Message too short.
Definition: err.h:66
No space left on device.
Definition: err.h:57
Already exists.
Definition: err.h:54
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition: compiler.h:185
Argument value too big.
Definition: err.h:48