Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
Error numbers

System error numbers Error codes returned by functions. Includes a list of those defined by IEEE Std 1003.1-2017. More...

Macros

#define errno   (*z_errno())
 
#define EPERM   1
 
#define ENOENT   2
 
#define ESRCH   3
 
#define EINTR   4
 
#define EIO   5
 
#define ENXIO   6
 
#define E2BIG   7
 
#define ENOEXEC   8
 
#define EBADF   9
 
#define ECHILD   10
 
#define EAGAIN   11
 
#define ENOMEM   12
 
#define EACCES   13
 
#define EFAULT   14
 
#define ENOTBLK   15
 
#define EBUSY   16
 
#define EEXIST   17
 
#define EXDEV   18
 
#define ENODEV   19
 
#define ENOTDIR   20
 
#define EISDIR   21
 
#define EINVAL   22
 
#define ENFILE   23
 
#define EMFILE   24
 
#define ENOTTY   25
 
#define ETXTBSY   26
 
#define EFBIG   27
 
#define ENOSPC   28
 
#define ESPIPE   29
 
#define EROFS   30
 
#define EMLINK   31
 
#define EPIPE   32
 
#define EDOM   33
 
#define ERANGE   34
 
#define ENOMSG   35
 
#define EDEADLK   45
 
#define ENOLCK   46
 
#define ENOSTR   60
 
#define ENODATA   61
 
#define ETIME   62
 
#define ENOSR   63
 
#define EPROTO   71
 
#define EBADMSG   77
 
#define ENOSYS   88
 
#define ENOTEMPTY   90
 
#define ENAMETOOLONG   91
 
#define ELOOP   92
 
#define EOPNOTSUPP   95
 
#define EPFNOSUPPORT   96
 
#define ECONNRESET   104
 
#define ENOBUFS   105
 
#define EAFNOSUPPORT   106
 
#define EPROTOTYPE   107
 
#define ENOTSOCK   108
 
#define ENOPROTOOPT   109
 
#define ESHUTDOWN   110
 
#define ECONNREFUSED   111
 
#define EADDRINUSE   112
 
#define ECONNABORTED   113
 
#define ENETUNREACH   114
 
#define ENETDOWN   115
 
#define ETIMEDOUT   116
 
#define EHOSTDOWN   117
 
#define EHOSTUNREACH   118
 
#define EINPROGRESS   119
 
#define EALREADY   120
 
#define EDESTADDRREQ   121
 
#define EMSGSIZE   122
 
#define EPROTONOSUPPORT   123
 
#define ESOCKTNOSUPPORT   124
 
#define EADDRNOTAVAIL   125
 
#define ENETRESET   126
 
#define EISCONN   127
 
#define ENOTCONN   128
 
#define ETOOMANYREFS   129
 
#define ENOTSUP   134
 
#define EILSEQ   138
 
#define EOVERFLOW   139
 
#define ECANCELED   140
 
#define EWOULDBLOCK   EAGAIN
 

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

#include <lib/libc/minimal/include/errno.h>

Arg list too long

◆ EACCES

#define EACCES   13

#include <lib/libc/minimal/include/errno.h>

Permission denied

◆ EADDRINUSE

#define EADDRINUSE   112

#include <lib/libc/minimal/include/errno.h>

Address already in use

◆ EADDRNOTAVAIL

#define EADDRNOTAVAIL   125

#include <lib/libc/minimal/include/errno.h>

Can't assign requested address

◆ EAFNOSUPPORT

#define EAFNOSUPPORT   106

#include <lib/libc/minimal/include/errno.h>

Addr family not supported

◆ EAGAIN

#define EAGAIN   11

#include <lib/libc/minimal/include/errno.h>

No more contexts

◆ EALREADY

#define EALREADY   120

#include <lib/libc/minimal/include/errno.h>

Operation already in progress

◆ EBADF

#define EBADF   9

#include <lib/libc/minimal/include/errno.h>

Bad file number

◆ EBADMSG

#define EBADMSG   77

#include <lib/libc/minimal/include/errno.h>

Invalid STREAMS message

◆ EBUSY

#define EBUSY   16

#include <lib/libc/minimal/include/errno.h>

Mount device busy

◆ ECANCELED

#define ECANCELED   140

#include <lib/libc/minimal/include/errno.h>

Operation canceled

◆ ECHILD

#define ECHILD   10

#include <lib/libc/minimal/include/errno.h>

No children

◆ ECONNABORTED

#define ECONNABORTED   113

#include <lib/libc/minimal/include/errno.h>

Software caused connection abort

◆ ECONNREFUSED

#define ECONNREFUSED   111

#include <lib/libc/minimal/include/errno.h>

Connection refused

◆ ECONNRESET

#define ECONNRESET   104

#include <lib/libc/minimal/include/errno.h>

Connection reset by peer

◆ EDEADLK

#define EDEADLK   45

#include <lib/libc/minimal/include/errno.h>

Resource deadlock avoided

◆ EDESTADDRREQ

#define EDESTADDRREQ   121

#include <lib/libc/minimal/include/errno.h>

Destination address required

◆ EDOM

#define EDOM   33

#include <lib/libc/minimal/include/errno.h>

Argument too large

◆ EEXIST

#define EEXIST   17

#include <lib/libc/minimal/include/errno.h>

File exists

◆ EFAULT

#define EFAULT   14

#include <lib/libc/minimal/include/errno.h>

Bad address

◆ EFBIG

#define EFBIG   27

#include <lib/libc/minimal/include/errno.h>

File too large

◆ EHOSTDOWN

#define EHOSTDOWN   117

#include <lib/libc/minimal/include/errno.h>

Host is down

◆ EHOSTUNREACH

#define EHOSTUNREACH   118

#include <lib/libc/minimal/include/errno.h>

No route to host

◆ EILSEQ

#define EILSEQ   138

#include <lib/libc/minimal/include/errno.h>

Illegal byte sequence

◆ EINPROGRESS

#define EINPROGRESS   119

#include <lib/libc/minimal/include/errno.h>

Operation now in progress

◆ EINTR

#define EINTR   4

#include <lib/libc/minimal/include/errno.h>

Interrupted system call

◆ EINVAL

#define EINVAL   22

#include <lib/libc/minimal/include/errno.h>

Invalid argument

◆ EIO

#define EIO   5

#include <lib/libc/minimal/include/errno.h>

I/O error

◆ EISCONN

#define EISCONN   127

#include <lib/libc/minimal/include/errno.h>

Socket is already connected

◆ EISDIR

#define EISDIR   21

#include <lib/libc/minimal/include/errno.h>

Is a directory

◆ ELOOP

#define ELOOP   92

#include <lib/libc/minimal/include/errno.h>

Too many levels of symbolic links

◆ EMFILE

#define EMFILE   24

#include <lib/libc/minimal/include/errno.h>

Too many open files

◆ EMLINK

#define EMLINK   31

#include <lib/libc/minimal/include/errno.h>

Too many links

◆ EMSGSIZE

#define EMSGSIZE   122

#include <lib/libc/minimal/include/errno.h>

Message size

◆ ENAMETOOLONG

#define ENAMETOOLONG   91

#include <lib/libc/minimal/include/errno.h>

File name too long

◆ ENETDOWN

#define ENETDOWN   115

#include <lib/libc/minimal/include/errno.h>

Network is down

◆ ENETRESET

#define ENETRESET   126

#include <lib/libc/minimal/include/errno.h>

Network dropped connection on reset

◆ ENETUNREACH

#define ENETUNREACH   114

#include <lib/libc/minimal/include/errno.h>

Network is unreachable

◆ ENFILE

#define ENFILE   23

#include <lib/libc/minimal/include/errno.h>

File table overflow

◆ ENOBUFS

#define ENOBUFS   105

#include <lib/libc/minimal/include/errno.h>

No buffer space available

◆ ENODATA

#define ENODATA   61

#include <lib/libc/minimal/include/errno.h>

Missing expected message data

◆ ENODEV

#define ENODEV   19

#include <lib/libc/minimal/include/errno.h>

No such device

◆ ENOENT

#define ENOENT   2

#include <lib/libc/minimal/include/errno.h>

No such file or directory

◆ ENOEXEC

#define ENOEXEC   8

#include <lib/libc/minimal/include/errno.h>

Exec format error

◆ ENOLCK

#define ENOLCK   46

#include <lib/libc/minimal/include/errno.h>

No locks available

◆ ENOMEM

#define ENOMEM   12

#include <lib/libc/minimal/include/errno.h>

Not enough core

◆ ENOMSG

#define ENOMSG   35

#include <lib/libc/minimal/include/errno.h>

Unexpected message type

◆ ENOPROTOOPT

#define ENOPROTOOPT   109

#include <lib/libc/minimal/include/errno.h>

Protocol not available

◆ ENOSPC

#define ENOSPC   28

#include <lib/libc/minimal/include/errno.h>

No space left on device

◆ ENOSR

#define ENOSR   63

#include <lib/libc/minimal/include/errno.h>

Insufficient memory

◆ ENOSTR

#define ENOSTR   60

#include <lib/libc/minimal/include/errno.h>

STREAMS device required

◆ ENOSYS

#define ENOSYS   88

#include <lib/libc/minimal/include/errno.h>

Function not implemented

◆ ENOTBLK

#define ENOTBLK   15

#include <lib/libc/minimal/include/errno.h>

Block device required

◆ ENOTCONN

#define ENOTCONN   128

#include <lib/libc/minimal/include/errno.h>

Socket is not connected

◆ ENOTDIR

#define ENOTDIR   20

#include <lib/libc/minimal/include/errno.h>

Not a directory

◆ ENOTEMPTY

#define ENOTEMPTY   90

#include <lib/libc/minimal/include/errno.h>

Directory not empty

◆ ENOTSOCK

#define ENOTSOCK   108

#include <lib/libc/minimal/include/errno.h>

Socket operation on non-socket

◆ ENOTSUP

#define ENOTSUP   134

#include <lib/libc/minimal/include/errno.h>

Unsupported value

◆ ENOTTY

#define ENOTTY   25

#include <lib/libc/minimal/include/errno.h>

Not a typewriter

◆ ENXIO

#define ENXIO   6

#include <lib/libc/minimal/include/errno.h>

No such device or address

◆ EOPNOTSUPP

#define EOPNOTSUPP   95

#include <lib/libc/minimal/include/errno.h>

Operation not supported on socket

◆ EOVERFLOW

#define EOVERFLOW   139

#include <lib/libc/minimal/include/errno.h>

Value overflow

◆ EPERM

#define EPERM   1

#include <lib/libc/minimal/include/errno.h>

Not owner

◆ EPFNOSUPPORT

#define EPFNOSUPPORT   96

#include <lib/libc/minimal/include/errno.h>

Protocol family not supported

◆ EPIPE

#define EPIPE   32

#include <lib/libc/minimal/include/errno.h>

Broken pipe

◆ EPROTO

#define EPROTO   71

#include <lib/libc/minimal/include/errno.h>

Generic STREAMS error

◆ EPROTONOSUPPORT

#define EPROTONOSUPPORT   123

#include <lib/libc/minimal/include/errno.h>

Protocol not supported

◆ EPROTOTYPE

#define EPROTOTYPE   107

#include <lib/libc/minimal/include/errno.h>

Protocol wrong type for socket

◆ ERANGE

#define ERANGE   34

#include <lib/libc/minimal/include/errno.h>

Result too large

◆ EROFS

#define EROFS   30

#include <lib/libc/minimal/include/errno.h>

Read-only file system

◆ errno

#define errno   (*z_errno())

◆ ESHUTDOWN

#define ESHUTDOWN   110

#include <lib/libc/minimal/include/errno.h>

Can't send after socket shutdown

◆ ESOCKTNOSUPPORT

#define ESOCKTNOSUPPORT   124

#include <lib/libc/minimal/include/errno.h>

Socket type not supported

◆ ESPIPE

#define ESPIPE   29

#include <lib/libc/minimal/include/errno.h>

Illegal seek

◆ ESRCH

#define ESRCH   3

#include <lib/libc/minimal/include/errno.h>

No such context

◆ ETIME

#define ETIME   62

#include <lib/libc/minimal/include/errno.h>

STREAMS timeout occurred

◆ ETIMEDOUT

#define ETIMEDOUT   116

#include <lib/libc/minimal/include/errno.h>

Connection timed out

◆ ETOOMANYREFS

#define ETOOMANYREFS   129

#include <lib/libc/minimal/include/errno.h>

Too many references: can't splice

◆ ETXTBSY

#define ETXTBSY   26

#include <lib/libc/minimal/include/errno.h>

Text file busy

◆ EWOULDBLOCK

#define EWOULDBLOCK   EAGAIN

#include <lib/libc/minimal/include/errno.h>

Operation would block

◆ EXDEV

#define EXDEV   18

#include <lib/libc/minimal/include/errno.h>

Cross-device link