Loading...
Searching...
No Matches
err.h
Go to the documentation of this file.
/*
* (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
* Alexander Warg <warg@os.inf.tu-dresden.de>
* economic rights: Technische Universität Dresden (Germany)
*
* License: see LICENSE.spdx (in this directory or the directories above)
*/
#pragma once
#include <l4/sys/compiler.h>
enum l4_error_code_t
{
L4_EOK = 0,
L4_EPERM = 1,
L4_ENOENT = 2,
L4_EIO = 5,
L4_ENXIO = 6,
L4_E2BIG = 7,
L4_EAGAIN = 11,
L4_ENOMEM = 12,
L4_EACCESS = 13,
L4_EFAULT = 14,
L4_EBUSY = 16,
L4_EEXIST = 17,
L4_ENODEV = 19,
L4_ENOTDIR = 20,
L4_EINVAL = 22,
L4_ENOSPC = 28,
L4_ERANGE = 34,
L4_ENAMETOOLONG = 36,
L4_ENOSYS = 38,
L4_EBADPROTO = 39,
L4_EADDRNOTAVAIL = 99,
L4_ERRNOMAX = 100,
L4_ENOREPLY = 1000,
L4_EMSGTOOSHORT = 1001,
L4_EMSGTOOLONG = 1002,
L4_EMSGMISSARG = 1003,
L4_EIPC_LO = 2000,
L4_EIPC_HI = 2000 + 0x1f,
};
L4_BEGIN_DECLS
L4_CV char const *l4sys_errtostr(long err) L4_NOTHROW;
L4_END_DECLS
compiler.h
L4 compiler related defines.
l4_error_code_t
l4_error_code_t
L4 error codes.
Definition err.h:31
L4_ENXIO
@ L4_ENXIO
No such device or address.
Definition err.h:36
L4_EEXIST
@ L4_EEXIST
Already exists.
Definition err.h:43
L4_ENOENT
@ L4_ENOENT
No such entity.
Definition err.h:34
L4_E2BIG
@ L4_E2BIG
Argument value too big.
Definition err.h:37
L4_ERANGE
@ L4_ERANGE
Range error.
Definition err.h:48
L4_ENOSYS
@ L4_ENOSYS
No sys.
Definition err.h:50
L4_EACCESS
@ L4_EACCESS
Permission denied.
Definition err.h:40
L4_ENOTDIR
@ L4_ENOTDIR
Not a directory.
Definition err.h:45
L4_EIPC_HI
@ L4_EIPC_HI
Communication error-range high.
Definition err.h:61
L4_EINVAL
@ L4_EINVAL
Invalid argument.
Definition err.h:46
L4_ENOREPLY
@ L4_ENOREPLY
No reply.
Definition err.h:55
L4_EBUSY
@ L4_EBUSY
Object currently busy, try later.
Definition err.h:42
L4_EMSGMISSARG
@ L4_EMSGMISSARG
Message has invalid capability.
Definition err.h:58
L4_EMSGTOOLONG
@ L4_EMSGTOOLONG
Message too long.
Definition err.h:57
L4_ENAMETOOLONG
@ L4_ENAMETOOLONG
Name too long.
Definition err.h:49
L4_ENODEV
@ L4_ENODEV
No such thing.
Definition err.h:44
L4_ENOSPC
@ L4_ENOSPC
No space left on device.
Definition err.h:47
L4_ERRNOMAX
@ L4_ERRNOMAX
Maximum error value.
Definition err.h:53
L4_EIPC_LO
@ L4_EIPC_LO
Communication error-range low.
Definition err.h:60
L4_EIO
@ L4_EIO
I/O error.
Definition err.h:35
L4_EFAULT
@ L4_EFAULT
Invalid memory address.
Definition err.h:41
L4_EOK
@ L4_EOK
Ok.
Definition err.h:32
L4_EAGAIN
@ L4_EAGAIN
Try again.
Definition err.h:38
L4_EADDRNOTAVAIL
@ L4_EADDRNOTAVAIL
Address not available.
Definition err.h:52
L4_EPERM
@ L4_EPERM
No permission.
Definition err.h:33
L4_ENOMEM
@ L4_ENOMEM
No memory.
Definition err.h:39
L4_EMSGTOOSHORT
@ L4_EMSGTOOSHORT
Message too short.
Definition err.h:56
L4_EBADPROTO
@ L4_EBADPROTO
Unsupported protocol.
Definition err.h:51
L4_CV
#define L4_CV
Define calling convention.
Definition linkage.h:33
L4_NOTHROW
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition compiler.h:161
L4_BEGIN_DECLS
#define L4_BEGIN_DECLS
Start section with C types and functions.
Definition compiler.h:165
L4_END_DECLS
#define L4_END_DECLS
End section with C types and functions.
Definition compiler.h:166