Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Error numbers

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.
 

Detailed Description

System error numbers Error codes returned by functions.

Includes a list of those defined by IEEE Std 1003.1-2017.

Macro Definition Documentation

◆ E2BIG

#define E2BIG   7

◆ EACCES

#define EACCES   13

◆ EADDRINUSE

#define EADDRINUSE   112

◆ EADDRNOTAVAIL

#define EADDRNOTAVAIL   125

#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>

Can't assign requested address.

◆ EAFNOSUPPORT

#define EAFNOSUPPORT   106

◆ EAGAIN

#define EAGAIN   11

◆ EALREADY

#define EALREADY   120

#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>

Operation already in progress.

◆ EBADF

#define EBADF   9

◆ EBADMSG

#define EBADMSG   77

◆ EBUSY

#define EBUSY   16

◆ ECANCELED

#define ECANCELED   140

◆ ECHILD

#define ECHILD   10

◆ ECONNABORTED

#define ECONNABORTED   113

#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>

Software caused connection abort.

◆ ECONNREFUSED

#define ECONNREFUSED   111

◆ ECONNRESET

#define ECONNRESET   104

◆ EDEADLK

#define EDEADLK   45

◆ EDESTADDRREQ

#define EDESTADDRREQ   121

◆ EDOM

#define EDOM   33

◆ EEXIST

#define EEXIST   17

◆ EFAULT

#define EFAULT   14

◆ EFBIG

#define EFBIG   27

◆ EHOSTDOWN

#define EHOSTDOWN   117

◆ EHOSTUNREACH

#define EHOSTUNREACH   118

◆ EILSEQ

#define EILSEQ   138

◆ EINPROGRESS

#define EINPROGRESS   119

◆ EINTR

#define EINTR   4

◆ EINVAL

#define EINVAL   22

◆ EIO

◆ EISCONN

#define EISCONN   127

◆ EISDIR

#define EISDIR   21

◆ ELOOP

#define ELOOP   92

#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>

Too many levels of symbolic links.

◆ EMFILE

#define EMFILE   24

◆ EMLINK

#define EMLINK   31

◆ EMSGSIZE

#define EMSGSIZE   122

◆ ENAMETOOLONG

#define ENAMETOOLONG   91

◆ ENETDOWN

#define ENETDOWN   115

◆ ENETRESET

#define ENETRESET   126

#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>

Network dropped connection on reset.

◆ ENETUNREACH

#define ENETUNREACH   114

◆ ENFILE

#define ENFILE   23

◆ ENOBUFS

#define ENOBUFS   105

◆ ENODATA

#define ENODATA   61

#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>

Missing expected message data.

◆ ENODEV

#define ENODEV   19

◆ ENOENT

#define ENOENT   2

◆ ENOEXEC

#define ENOEXEC   8

◆ ENOLCK

#define ENOLCK   46

◆ ENOMEM

#define ENOMEM   12

◆ ENOMSG

#define ENOMSG   35

◆ ENOPROTOOPT

#define ENOPROTOOPT   109

◆ ENOSPC

#define ENOSPC   28

◆ ENOSR

#define ENOSR   63

◆ ENOSTR

#define ENOSTR   60

◆ ENOSYS

#define ENOSYS   88

◆ ENOTBLK

#define ENOTBLK   15

◆ ENOTCONN

#define ENOTCONN   128

◆ ENOTDIR

#define ENOTDIR   20

◆ ENOTEMPTY

#define ENOTEMPTY   90

◆ ENOTSOCK

#define ENOTSOCK   108

#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>

Socket operation on non-socket.

◆ ENOTSUP

#define ENOTSUP   134

◆ ENOTTY

#define ENOTTY   25

◆ ENXIO

#define ENXIO   6

◆ EOPNOTSUPP

#define EOPNOTSUPP   95

#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>

Operation not supported on socket.

◆ EOVERFLOW

#define EOVERFLOW   139

◆ EPERM

#define EPERM   1

◆ EPFNOSUPPORT

#define EPFNOSUPPORT   96

#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>

Protocol family not supported.

◆ EPIPE

#define EPIPE   32

◆ EPROTO

#define EPROTO   71

◆ EPROTONOSUPPORT

#define EPROTONOSUPPORT   123

◆ EPROTOTYPE

#define EPROTOTYPE   107

#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>

Protocol wrong type for socket.

◆ ERANGE

#define ERANGE   34

◆ EROFS

#define EROFS   30

◆ errno

#define errno   (*z_errno())

◆ ESHUTDOWN

#define ESHUTDOWN   110

#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>

Can't send after socket shutdown.

◆ ESOCKTNOSUPPORT

#define ESOCKTNOSUPPORT   124

◆ ESPIPE

#define ESPIPE   29

◆ ESRCH

#define ESRCH   3

◆ ETIME

#define ETIME   62

◆ ETIMEDOUT

#define ETIMEDOUT   116

◆ ETOOMANYREFS

#define ETOOMANYREFS   129

#include </home/runner/_work/zephyr/zephyr/lib/libc/minimal/include/errno.h>

Too many references: can't splice.

◆ ETXTBSY

#define ETXTBSY   26

◆ EWOULDBLOCK

#define EWOULDBLOCK   EAGAIN

◆ EXDEV

#define EXDEV   18