Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
System error numbers Error codes returned by functions. More...
Macros | |
#define | errno (*z_errno()) |
#define | EPERM 1 |
Not owner. | |
#define | ENOENT 2 |
No such file or directory. | |
#define | ESRCH 3 |
No such context. | |
#define | EINTR 4 |
Interrupted system call. | |
#define | EIO 5 |
I/O error. | |
#define | ENXIO 6 |
No such device or address. | |
#define | E2BIG 7 |
Arg list too long. | |
#define | ENOEXEC 8 |
Exec format error. | |
#define | EBADF 9 |
Bad file number. | |
#define | ECHILD 10 |
No children. | |
#define | EAGAIN 11 |
No more contexts. | |
#define | ENOMEM 12 |
Not enough core. | |
#define | EACCES 13 |
Permission denied. | |
#define | EFAULT 14 |
Bad address. | |
#define | ENOTBLK 15 |
Block device required. | |
#define | EBUSY 16 |
Mount device busy. | |
#define | EEXIST 17 |
File exists. | |
#define | EXDEV 18 |
Cross-device link. | |
#define | ENODEV 19 |
No such device. | |
#define | ENOTDIR 20 |
Not a directory. | |
#define | EISDIR 21 |
Is a directory. | |
#define | EINVAL 22 |
Invalid argument. | |
#define | ENFILE 23 |
File table overflow. | |
#define | EMFILE 24 |
Too many open files. | |
#define | ENOTTY 25 |
Not a typewriter. | |
#define | ETXTBSY 26 |
Text file busy. | |
#define | EFBIG 27 |
File too large. | |
#define | ENOSPC 28 |
No space left on device. | |
#define | ESPIPE 29 |
Illegal seek. | |
#define | EROFS 30 |
Read-only file system. | |
#define | EMLINK 31 |
Too many links. | |
#define | EPIPE 32 |
Broken pipe. | |
#define | EDOM 33 |
Argument too large. | |
#define | ERANGE 34 |
Result too large. | |
#define | ENOMSG 35 |
Unexpected message type. | |
#define | EDEADLK 45 |
Resource deadlock avoided. | |
#define | ENOLCK 46 |
No locks available. | |
#define | ENOSTR 60 |
STREAMS device required. | |
#define | ENODATA 61 |
Missing expected message data. | |
#define | ETIME 62 |
STREAMS timeout occurred. | |
#define | ENOSR 63 |
Insufficient memory. | |
#define | EPROTO 71 |
Generic STREAMS error. | |
#define | EBADMSG 77 |
Invalid STREAMS message. | |
#define | ENOSYS 88 |
Function not implemented. | |
#define | ENOTEMPTY 90 |
Directory not empty. | |
#define | ENAMETOOLONG 91 |
File name too long. | |
#define | ELOOP 92 |
Too many levels of symbolic links. | |
#define | EOPNOTSUPP 95 |
Operation not supported on socket. | |
#define | EPFNOSUPPORT 96 |
Protocol family not supported. | |
#define | ECONNRESET 104 |
Connection reset by peer. | |
#define | ENOBUFS 105 |
No buffer space available. | |
#define | EAFNOSUPPORT 106 |
Addr family not supported. | |
#define | EPROTOTYPE 107 |
Protocol wrong type for socket. | |
#define | ENOTSOCK 108 |
Socket operation on non-socket. | |
#define | ENOPROTOOPT 109 |
Protocol not available. | |
#define | ESHUTDOWN 110 |
Can't send after socket shutdown. | |
#define | ECONNREFUSED 111 |
Connection refused. | |
#define | EADDRINUSE 112 |
Address already in use. | |
#define | ECONNABORTED 113 |
Software caused connection abort. | |
#define | ENETUNREACH 114 |
Network is unreachable. | |
#define | ENETDOWN 115 |
Network is down. | |
#define | ETIMEDOUT 116 |
Connection timed out. | |
#define | EHOSTDOWN 117 |
Host is down. | |
#define | EHOSTUNREACH 118 |
No route to host. | |
#define | EINPROGRESS 119 |
Operation now in progress. | |
#define | EALREADY 120 |
Operation already in progress. | |
#define | EDESTADDRREQ 121 |
Destination address required. | |
#define | EMSGSIZE 122 |
Message size. | |
#define | EPROTONOSUPPORT 123 |
Protocol not supported. | |
#define | ESOCKTNOSUPPORT 124 |
Socket type not supported. | |
#define | EADDRNOTAVAIL 125 |
Can't assign requested address. | |
#define | ENETRESET 126 |
Network dropped connection on reset. | |
#define | EISCONN 127 |
Socket is already connected. | |
#define | ENOTCONN 128 |
Socket is not connected. | |
#define | ETOOMANYREFS 129 |
Too many references: can't splice. | |
#define | ENOTSUP 134 |
Unsupported value. | |
#define | EILSEQ 138 |
Illegal byte sequence. | |
#define | EOVERFLOW 139 |
Value overflow. | |
#define | ECANCELED 140 |
Operation canceled. | |
#define | EWOULDBLOCK EAGAIN |
Operation would block. | |
System error numbers Error codes returned by functions.
Includes a list of those defined by IEEE Std 1003.1-2017.
#define E2BIG 7 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Arg list too long.
#define EACCES 13 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Permission denied.
#define EADDRINUSE 112 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Address already in use.
#define EADDRNOTAVAIL 125 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Can't assign requested address.
#define EAFNOSUPPORT 106 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Addr family not supported.
#define EAGAIN 11 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
No more contexts.
#define EALREADY 120 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Operation already in progress.
#define EBADF 9 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Bad file number.
#define EBADMSG 77 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Invalid STREAMS message.
#define EBUSY 16 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Mount device busy.
#define ECANCELED 140 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Operation canceled.
#define ECHILD 10 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
No children.
#define ECONNABORTED 113 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Software caused connection abort.
#define ECONNREFUSED 111 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Connection refused.
#define ECONNRESET 104 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Connection reset by peer.
#define EDEADLK 45 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Resource deadlock avoided.
#define EDESTADDRREQ 121 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Destination address required.
#define EDOM 33 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Argument too large.
#define EEXIST 17 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
File exists.
#define EFAULT 14 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Bad address.
#define EFBIG 27 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
File too large.
#define EHOSTDOWN 117 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Host is down.
#define EHOSTUNREACH 118 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
No route to host.
#define EILSEQ 138 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Illegal byte sequence.
#define EINPROGRESS 119 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Operation now in progress.
#define EINTR 4 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Interrupted system call.
#define EINVAL 22 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Invalid argument.
#define EIO 5 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
I/O error.
#define EISCONN 127 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Socket is already connected.
#define EISDIR 21 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Is a directory.
#define ELOOP 92 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Too many levels of symbolic links.
#define EMFILE 24 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Too many open files.
#define EMLINK 31 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Too many links.
#define EMSGSIZE 122 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Message size.
#define ENAMETOOLONG 91 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
File name too long.
#define ENETDOWN 115 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Network is down.
#define ENETRESET 126 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Network dropped connection on reset.
#define ENETUNREACH 114 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Network is unreachable.
#define ENFILE 23 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
File table overflow.
#define ENOBUFS 105 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
No buffer space available.
#define ENODATA 61 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Missing expected message data.
#define ENODEV 19 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
No such device.
#define ENOENT 2 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
No such file or directory.
#define ENOEXEC 8 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Exec format error.
#define ENOLCK 46 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
No locks available.
#define ENOMEM 12 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Not enough core.
#define ENOMSG 35 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Unexpected message type.
#define ENOPROTOOPT 109 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Protocol not available.
#define ENOSPC 28 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
No space left on device.
#define ENOSR 63 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Insufficient memory.
#define ENOSTR 60 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
STREAMS device required.
#define ENOSYS 88 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Function not implemented.
#define ENOTBLK 15 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Block device required.
#define ENOTCONN 128 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Socket is not connected.
#define ENOTDIR 20 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Not a directory.
#define ENOTEMPTY 90 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Directory not empty.
#define ENOTSOCK 108 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Socket operation on non-socket.
#define ENOTSUP 134 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Unsupported value.
#define ENOTTY 25 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Not a typewriter.
#define ENXIO 6 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
No such device or address.
#define EOPNOTSUPP 95 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Operation not supported on socket.
#define EOVERFLOW 139 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Value overflow.
#define EPERM 1 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Not owner.
#define EPFNOSUPPORT 96 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Protocol family not supported.
#define EPIPE 32 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Broken pipe.
#define EPROTO 71 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Generic STREAMS error.
#define EPROTONOSUPPORT 123 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Protocol not supported.
#define EPROTOTYPE 107 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Protocol wrong type for socket.
#define ERANGE 34 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Result too large.
#define EROFS 30 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Read-only file system.
#define errno (*z_errno()) |
#define ESHUTDOWN 110 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Can't send after socket shutdown.
#define ESOCKTNOSUPPORT 124 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Socket type not supported.
#define ESPIPE 29 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Illegal seek.
#define ESRCH 3 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
No such context.
#define ETIME 62 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
STREAMS timeout occurred.
#define ETIMEDOUT 116 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Connection timed out.
#define ETOOMANYREFS 129 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Too many references: can't splice.
#define ETXTBSY 26 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Text file busy.
#define EWOULDBLOCK EAGAIN |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Operation would block.
#define EXDEV 18 |
#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>
Cross-device link.