iPXE
Macros | Functions
linux.h File Reference

Linux platform error codes. More...

Go to the source code of this file.

Macros

#define PLATFORM_TO_ERRNO(platform)   ( (platform) & 0xff )
 Convert platform error code to platform component of iPXE error code. More...
 
#define ERRNO_TO_PLATFORM(errno)   ( (errno) & 0xff )
 Convert iPXE error code to platform error code. More...
 
#define PLATFORM_ENOERR   0
 
#define PLATFORM_E2BIG   7
 
#define PLATFORM_EACCES   13
 
#define PLATFORM_EADDRINUSE   98
 
#define PLATFORM_EADDRNOTAVAIL   99
 
#define PLATFORM_EAFNOSUPPORT   97
 
#define PLATFORM_EAGAIN   11
 
#define PLATFORM_EALREADY   114
 
#define PLATFORM_EBADF   9
 
#define PLATFORM_EBADMSG   74
 
#define PLATFORM_EBUSY   16
 
#define PLATFORM_ECANCELED   125
 
#define PLATFORM_ECHILD   10
 
#define PLATFORM_ECONNABORTED   103
 
#define PLATFORM_ECONNREFUSED   111
 
#define PLATFORM_ECONNRESET   104
 
#define PLATFORM_EDEADLK   35
 
#define PLATFORM_EDESTADDRREQ   89
 
#define PLATFORM_EDOM   33
 
#define PLATFORM_EDQUOT   122
 
#define PLATFORM_EEXIST   17
 
#define PLATFORM_EFAULT   14
 
#define PLATFORM_EFBIG   27
 
#define PLATFORM_EHOSTUNREACH   113
 
#define PLATFORM_EIDRM   43
 
#define PLATFORM_EILSEQ   84
 
#define PLATFORM_EINPROGRESS   115
 
#define PLATFORM_EINTR   4
 
#define PLATFORM_EINVAL   22
 
#define PLATFORM_EIO   5
 
#define PLATFORM_EISCONN   106
 
#define PLATFORM_EISDIR   21
 
#define PLATFORM_ELOOP   40
 
#define PLATFORM_EMFILE   24
 
#define PLATFORM_EMLINK   31
 
#define PLATFORM_EMSGSIZE   90
 
#define PLATFORM_EMULTIHOP   72
 
#define PLATFORM_ENAMETOOLONG   36
 
#define PLATFORM_ENETDOWN   100
 
#define PLATFORM_ENETRESET   102
 
#define PLATFORM_ENETUNREACH   101
 
#define PLATFORM_ENFILE   23
 
#define PLATFORM_ENOBUFS   105
 
#define PLATFORM_ENODATA   61
 
#define PLATFORM_ENODEV   19
 
#define PLATFORM_ENOENT   2
 
#define PLATFORM_ENOEXEC   8
 
#define PLATFORM_ENOLCK   37
 
#define PLATFORM_ENOLINK   67
 
#define PLATFORM_ENOMEM   12
 
#define PLATFORM_ENOMSG   42
 
#define PLATFORM_ENOPROTOOPT   92
 
#define PLATFORM_ENOSPC   28
 
#define PLATFORM_ENOSR   63
 
#define PLATFORM_ENOSTR   60
 
#define PLATFORM_ENOSYS   38
 
#define PLATFORM_ENOTCONN   107
 
#define PLATFORM_ENOTDIR   20
 
#define PLATFORM_ENOTEMPTY   39
 
#define PLATFORM_ENOTSOCK   88
 
#define PLATFORM_ENOTSUP   PLATFORM_EOPNOTSUPP
 
#define PLATFORM_ENOTTY   25
 
#define PLATFORM_ENXIO   6
 
#define PLATFORM_EOPNOTSUPP   95
 
#define PLATFORM_EOVERFLOW   75
 
#define PLATFORM_EPERM   1
 
#define PLATFORM_EPIPE   32
 
#define PLATFORM_EPROTO   71
 
#define PLATFORM_EPROTONOSUPPORT   93
 
#define PLATFORM_EPROTOTYPE   91
 
#define PLATFORM_ERANGE   34
 
#define PLATFORM_EROFS   30
 
#define PLATFORM_ESPIPE   29
 
#define PLATFORM_ESRCH   3
 
#define PLATFORM_ESTALE   116
 
#define PLATFORM_ETIME   62
 
#define PLATFORM_ETIMEDOUT   110
 
#define PLATFORM_ETXTBSY   26
 
#define PLATFORM_EWOULDBLOCK   PLATFORM_EAGAIN
 
#define PLATFORM_EXDEV   18
 

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 

Detailed Description

Linux platform error codes.

Linux error codes all fit inside 8 bits, so we just use them directly as our platform error codes.

Definition in file linux.h.

Macro Definition Documentation

◆ PLATFORM_TO_ERRNO

#define PLATFORM_TO_ERRNO (   platform)    ( (platform) & 0xff )

Convert platform error code to platform component of iPXE error code.

Parameters
platformPlatform error code
Return values
errnoPlatform component of iPXE error code

Definition at line 21 of file linux.h.

◆ ERRNO_TO_PLATFORM

#define ERRNO_TO_PLATFORM (   errno)    ( (errno) & 0xff )

Convert iPXE error code to platform error code.

Parameters
errnoiPXE error code
Return values
platformPlatform error code

Definition at line 29 of file linux.h.

◆ PLATFORM_ENOERR

#define PLATFORM_ENOERR   0

Definition at line 32 of file linux.h.

◆ PLATFORM_E2BIG

#define PLATFORM_E2BIG   7

Definition at line 33 of file linux.h.

◆ PLATFORM_EACCES

#define PLATFORM_EACCES   13

Definition at line 34 of file linux.h.

◆ PLATFORM_EADDRINUSE

#define PLATFORM_EADDRINUSE   98

Definition at line 35 of file linux.h.

◆ PLATFORM_EADDRNOTAVAIL

#define PLATFORM_EADDRNOTAVAIL   99

Definition at line 36 of file linux.h.

◆ PLATFORM_EAFNOSUPPORT

#define PLATFORM_EAFNOSUPPORT   97

Definition at line 37 of file linux.h.

◆ PLATFORM_EAGAIN

#define PLATFORM_EAGAIN   11

Definition at line 38 of file linux.h.

◆ PLATFORM_EALREADY

#define PLATFORM_EALREADY   114

Definition at line 39 of file linux.h.

◆ PLATFORM_EBADF

#define PLATFORM_EBADF   9

Definition at line 40 of file linux.h.

◆ PLATFORM_EBADMSG

#define PLATFORM_EBADMSG   74

Definition at line 41 of file linux.h.

◆ PLATFORM_EBUSY

#define PLATFORM_EBUSY   16

Definition at line 42 of file linux.h.

◆ PLATFORM_ECANCELED

#define PLATFORM_ECANCELED   125

Definition at line 43 of file linux.h.

◆ PLATFORM_ECHILD

#define PLATFORM_ECHILD   10

Definition at line 44 of file linux.h.

◆ PLATFORM_ECONNABORTED

#define PLATFORM_ECONNABORTED   103

Definition at line 45 of file linux.h.

◆ PLATFORM_ECONNREFUSED

#define PLATFORM_ECONNREFUSED   111

Definition at line 46 of file linux.h.

◆ PLATFORM_ECONNRESET

#define PLATFORM_ECONNRESET   104

Definition at line 47 of file linux.h.

◆ PLATFORM_EDEADLK

#define PLATFORM_EDEADLK   35

Definition at line 48 of file linux.h.

◆ PLATFORM_EDESTADDRREQ

#define PLATFORM_EDESTADDRREQ   89

Definition at line 49 of file linux.h.

◆ PLATFORM_EDOM

#define PLATFORM_EDOM   33

Definition at line 50 of file linux.h.

◆ PLATFORM_EDQUOT

#define PLATFORM_EDQUOT   122

Definition at line 51 of file linux.h.

◆ PLATFORM_EEXIST

#define PLATFORM_EEXIST   17

Definition at line 52 of file linux.h.

◆ PLATFORM_EFAULT

#define PLATFORM_EFAULT   14

Definition at line 53 of file linux.h.

◆ PLATFORM_EFBIG

#define PLATFORM_EFBIG   27

Definition at line 54 of file linux.h.

◆ PLATFORM_EHOSTUNREACH

#define PLATFORM_EHOSTUNREACH   113

Definition at line 55 of file linux.h.

◆ PLATFORM_EIDRM

#define PLATFORM_EIDRM   43

Definition at line 56 of file linux.h.

◆ PLATFORM_EILSEQ

#define PLATFORM_EILSEQ   84

Definition at line 57 of file linux.h.

◆ PLATFORM_EINPROGRESS

#define PLATFORM_EINPROGRESS   115

Definition at line 58 of file linux.h.

◆ PLATFORM_EINTR

#define PLATFORM_EINTR   4

Definition at line 59 of file linux.h.

◆ PLATFORM_EINVAL

#define PLATFORM_EINVAL   22

Definition at line 60 of file linux.h.

◆ PLATFORM_EIO

#define PLATFORM_EIO   5

Definition at line 61 of file linux.h.

◆ PLATFORM_EISCONN

#define PLATFORM_EISCONN   106

Definition at line 62 of file linux.h.

◆ PLATFORM_EISDIR

#define PLATFORM_EISDIR   21

Definition at line 63 of file linux.h.

◆ PLATFORM_ELOOP

#define PLATFORM_ELOOP   40

Definition at line 64 of file linux.h.

◆ PLATFORM_EMFILE

#define PLATFORM_EMFILE   24

Definition at line 65 of file linux.h.

◆ PLATFORM_EMLINK

#define PLATFORM_EMLINK   31

Definition at line 66 of file linux.h.

◆ PLATFORM_EMSGSIZE

#define PLATFORM_EMSGSIZE   90

Definition at line 67 of file linux.h.

◆ PLATFORM_EMULTIHOP

#define PLATFORM_EMULTIHOP   72

Definition at line 68 of file linux.h.

◆ PLATFORM_ENAMETOOLONG

#define PLATFORM_ENAMETOOLONG   36

Definition at line 69 of file linux.h.

◆ PLATFORM_ENETDOWN

#define PLATFORM_ENETDOWN   100

Definition at line 70 of file linux.h.

◆ PLATFORM_ENETRESET

#define PLATFORM_ENETRESET   102

Definition at line 71 of file linux.h.

◆ PLATFORM_ENETUNREACH

#define PLATFORM_ENETUNREACH   101

Definition at line 72 of file linux.h.

◆ PLATFORM_ENFILE

#define PLATFORM_ENFILE   23

Definition at line 73 of file linux.h.

◆ PLATFORM_ENOBUFS

#define PLATFORM_ENOBUFS   105

Definition at line 74 of file linux.h.

◆ PLATFORM_ENODATA

#define PLATFORM_ENODATA   61

Definition at line 75 of file linux.h.

◆ PLATFORM_ENODEV

#define PLATFORM_ENODEV   19

Definition at line 76 of file linux.h.

◆ PLATFORM_ENOENT

#define PLATFORM_ENOENT   2

Definition at line 77 of file linux.h.

◆ PLATFORM_ENOEXEC

#define PLATFORM_ENOEXEC   8

Definition at line 78 of file linux.h.

◆ PLATFORM_ENOLCK

#define PLATFORM_ENOLCK   37

Definition at line 79 of file linux.h.

◆ PLATFORM_ENOLINK

#define PLATFORM_ENOLINK   67

Definition at line 80 of file linux.h.

◆ PLATFORM_ENOMEM

#define PLATFORM_ENOMEM   12

Definition at line 81 of file linux.h.

◆ PLATFORM_ENOMSG

#define PLATFORM_ENOMSG   42

Definition at line 82 of file linux.h.

◆ PLATFORM_ENOPROTOOPT

#define PLATFORM_ENOPROTOOPT   92

Definition at line 83 of file linux.h.

◆ PLATFORM_ENOSPC

#define PLATFORM_ENOSPC   28

Definition at line 84 of file linux.h.

◆ PLATFORM_ENOSR

#define PLATFORM_ENOSR   63

Definition at line 85 of file linux.h.

◆ PLATFORM_ENOSTR

#define PLATFORM_ENOSTR   60

Definition at line 86 of file linux.h.

◆ PLATFORM_ENOSYS

#define PLATFORM_ENOSYS   38

Definition at line 87 of file linux.h.

◆ PLATFORM_ENOTCONN

#define PLATFORM_ENOTCONN   107

Definition at line 88 of file linux.h.

◆ PLATFORM_ENOTDIR

#define PLATFORM_ENOTDIR   20

Definition at line 89 of file linux.h.

◆ PLATFORM_ENOTEMPTY

#define PLATFORM_ENOTEMPTY   39

Definition at line 90 of file linux.h.

◆ PLATFORM_ENOTSOCK

#define PLATFORM_ENOTSOCK   88

Definition at line 91 of file linux.h.

◆ PLATFORM_ENOTSUP

#define PLATFORM_ENOTSUP   PLATFORM_EOPNOTSUPP

Definition at line 92 of file linux.h.

◆ PLATFORM_ENOTTY

#define PLATFORM_ENOTTY   25

Definition at line 93 of file linux.h.

◆ PLATFORM_ENXIO

#define PLATFORM_ENXIO   6

Definition at line 94 of file linux.h.

◆ PLATFORM_EOPNOTSUPP

#define PLATFORM_EOPNOTSUPP   95

Definition at line 95 of file linux.h.

◆ PLATFORM_EOVERFLOW

#define PLATFORM_EOVERFLOW   75

Definition at line 96 of file linux.h.

◆ PLATFORM_EPERM

#define PLATFORM_EPERM   1

Definition at line 97 of file linux.h.

◆ PLATFORM_EPIPE

#define PLATFORM_EPIPE   32

Definition at line 98 of file linux.h.

◆ PLATFORM_EPROTO

#define PLATFORM_EPROTO   71

Definition at line 99 of file linux.h.

◆ PLATFORM_EPROTONOSUPPORT

#define PLATFORM_EPROTONOSUPPORT   93

Definition at line 100 of file linux.h.

◆ PLATFORM_EPROTOTYPE

#define PLATFORM_EPROTOTYPE   91

Definition at line 101 of file linux.h.

◆ PLATFORM_ERANGE

#define PLATFORM_ERANGE   34

Definition at line 102 of file linux.h.

◆ PLATFORM_EROFS

#define PLATFORM_EROFS   30

Definition at line 103 of file linux.h.

◆ PLATFORM_ESPIPE

#define PLATFORM_ESPIPE   29

Definition at line 104 of file linux.h.

◆ PLATFORM_ESRCH

#define PLATFORM_ESRCH   3

Definition at line 105 of file linux.h.

◆ PLATFORM_ESTALE

#define PLATFORM_ESTALE   116

Definition at line 106 of file linux.h.

◆ PLATFORM_ETIME

#define PLATFORM_ETIME   62

Definition at line 107 of file linux.h.

◆ PLATFORM_ETIMEDOUT

#define PLATFORM_ETIMEDOUT   110

Definition at line 108 of file linux.h.

◆ PLATFORM_ETXTBSY

#define PLATFORM_ETXTBSY   26

Definition at line 109 of file linux.h.

◆ PLATFORM_EWOULDBLOCK

#define PLATFORM_EWOULDBLOCK   PLATFORM_EAGAIN

Definition at line 110 of file linux.h.

◆ PLATFORM_EXDEV

#define PLATFORM_EXDEV   18

Definition at line 111 of file linux.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )