7 #ifndef ZPP_INCLUDE_ZPP_ERROR_CODE_HPP
8 #define ZPP_INCLUDE_ZPP_ERROR_CODE_HPP
10 #include <zephyr/kernel.h>
11 #include <zephyr/sys/__assert.h>
constexpr error_code to_error_code(int v) noexcept
error_code
enum with zephyr error codes
@ k_again
No more contexts.
@ k_canceled
Operation canceled.
@ k_toomanyrefs
Too many references: can’t splice.
@ k_wouldblock
Operation would block.
@ k_notsup
Unsupported value.
@ k_time
STREAMS timeout occurred.
@ k_inval
Invalid argument.
@ k_netreset
Network dropped connection on reset.
@ k_protonosupport
Protocol not supported.
@ k_xdev
Cross-device link.
@ k_shutdown
Can’t send after socket shutdown.
@ k_busy
Mount device busy.
@ k_dom
Argument too large.
@ k_nostr
STREAMS device required.
@ k_nolck
No locks available.
@ k_ilseq
Illegal byte sequence.
@ k_nametoolong
File name too long.
@ k_hostunreach
No route to host.
@ k_notty
Not a typewriter.
@ k_nfile
File table overflow.
@ k_badmsg
Invalid STREAMS message.
@ k_range
Result too large.
@ k_isconn
Socket is already connected.
@ k_addrnotavail
Can’t assign requested address.
@ k_opnotsupp
Operation not supported on socket.
@ k_intr
Interrupted system call.
@ k_proto
Generic STREAMS error.
@ k_nosr
Insufficient memory.
@ k_deadlk
Resource deadlock avoided.
@ k_nomsg
Unexpected message type.
@ k_prototype
Protocol wrong type for socket.
@ k_notsock
Socket operation on non-socket.
@ k_noexec
Exec format error.
@ k_already
Operation already in progress.
@ k_notblk
Block device required.
@ k_txtbsy
Text file busy.
@ k_overflow
Value overflow.
@ k_socktnosupport
Socket type not supported.
@ k_2big
Arg list too long.
@ k_nospc
No space left on device.
@ k_loop
Too many levels of symbolic links.
@ k_connaborted
Software caused connection abort.
@ k_afnosupport
Addr family not supported.
@ k_connreset
Connection reset by peer.
@ k_rofs
Read-only file system.
@ k_notempty
Directory not empty.
@ k_addrinuse
Address already in use.
@ k_notdir
Not a directory.
@ k_timeout
Connection timed out.
@ k_nosys
Function not implemented.
@ k_noent
No such file or directory.
@ k_noprotoopt
Protocol not available.
@ k_nobufs
No buffer space available.
@ k_connrefused
Connection refused.
@ k_acces
Permission denied.
@ k_nodata
Missing expected message data.
@ k_nomem
Not enough core.
@ k_nxio
No such device or address.
@ k_notconn
Socket is not connected.
@ k_hostdown
Host is down.
@ k_mfile
Too many open files.
@ k_netdown
Network is down.
@ k_netunreach
Network is unreachable.
@ k_destaddrreq
Destination address required.
@ k_pfnosupport
Protocol family not supported.
@ k_inprogress
Operation now in progress.