iPXE
Defines | Functions
linux.h File Reference

Linux platform error codes. More...

Go to the source code of this file.

Defines

#define PLATFORM_TO_ERRNO(platform)   ( (platform) & 0xff )
 Convert platform error code to platform component of iPXE error code.
#define ERRNO_TO_PLATFORM(errno)   ( (errno) & 0xff )
 Convert iPXE error code to platform error code.
#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.


Define Documentation

#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.

#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.

#define PLATFORM_ENOERR   0

Definition at line 32 of file linux.h.

#define PLATFORM_E2BIG   7

Definition at line 33 of file linux.h.

#define PLATFORM_EACCES   13

Definition at line 34 of file linux.h.

#define PLATFORM_EADDRINUSE   98

Definition at line 35 of file linux.h.

#define PLATFORM_EADDRNOTAVAIL   99

Definition at line 36 of file linux.h.

#define PLATFORM_EAFNOSUPPORT   97

Definition at line 37 of file linux.h.

#define PLATFORM_EAGAIN   11

Definition at line 38 of file linux.h.

#define PLATFORM_EALREADY   114

Definition at line 39 of file linux.h.

#define PLATFORM_EBADF   9

Definition at line 40 of file linux.h.

#define PLATFORM_EBADMSG   74

Definition at line 41 of file linux.h.

#define PLATFORM_EBUSY   16

Definition at line 42 of file linux.h.

#define PLATFORM_ECANCELED   125

Definition at line 43 of file linux.h.

#define PLATFORM_ECHILD   10

Definition at line 44 of file linux.h.

#define PLATFORM_ECONNABORTED   103

Definition at line 45 of file linux.h.

#define PLATFORM_ECONNREFUSED   111

Definition at line 46 of file linux.h.

#define PLATFORM_ECONNRESET   104

Definition at line 47 of file linux.h.

#define PLATFORM_EDEADLK   35

Definition at line 48 of file linux.h.

#define PLATFORM_EDESTADDRREQ   89

Definition at line 49 of file linux.h.

#define PLATFORM_EDOM   33

Definition at line 50 of file linux.h.

#define PLATFORM_EDQUOT   122

Definition at line 51 of file linux.h.

#define PLATFORM_EEXIST   17

Definition at line 52 of file linux.h.

#define PLATFORM_EFAULT   14

Definition at line 53 of file linux.h.

#define PLATFORM_EFBIG   27

Definition at line 54 of file linux.h.

#define PLATFORM_EHOSTUNREACH   113

Definition at line 55 of file linux.h.

#define PLATFORM_EIDRM   43

Definition at line 56 of file linux.h.

#define PLATFORM_EILSEQ   84

Definition at line 57 of file linux.h.

#define PLATFORM_EINPROGRESS   115

Definition at line 58 of file linux.h.

#define PLATFORM_EINTR   4

Definition at line 59 of file linux.h.

#define PLATFORM_EINVAL   22

Definition at line 60 of file linux.h.

#define PLATFORM_EIO   5

Definition at line 61 of file linux.h.

#define PLATFORM_EISCONN   106

Definition at line 62 of file linux.h.

#define PLATFORM_EISDIR   21

Definition at line 63 of file linux.h.

#define PLATFORM_ELOOP   40

Definition at line 64 of file linux.h.

#define PLATFORM_EMFILE   24

Definition at line 65 of file linux.h.

#define PLATFORM_EMLINK   31

Definition at line 66 of file linux.h.

#define PLATFORM_EMSGSIZE   90

Definition at line 67 of file linux.h.

#define PLATFORM_EMULTIHOP   72

Definition at line 68 of file linux.h.

#define PLATFORM_ENAMETOOLONG   36

Definition at line 69 of file linux.h.

#define PLATFORM_ENETDOWN   100

Definition at line 70 of file linux.h.

#define PLATFORM_ENETRESET   102

Definition at line 71 of file linux.h.

#define PLATFORM_ENETUNREACH   101

Definition at line 72 of file linux.h.

#define PLATFORM_ENFILE   23

Definition at line 73 of file linux.h.

#define PLATFORM_ENOBUFS   105

Definition at line 74 of file linux.h.

#define PLATFORM_ENODATA   61

Definition at line 75 of file linux.h.

#define PLATFORM_ENODEV   19

Definition at line 76 of file linux.h.

#define PLATFORM_ENOENT   2

Definition at line 77 of file linux.h.

#define PLATFORM_ENOEXEC   8

Definition at line 78 of file linux.h.

#define PLATFORM_ENOLCK   37

Definition at line 79 of file linux.h.

#define PLATFORM_ENOLINK   67

Definition at line 80 of file linux.h.

#define PLATFORM_ENOMEM   12

Definition at line 81 of file linux.h.

#define PLATFORM_ENOMSG   42

Definition at line 82 of file linux.h.

#define PLATFORM_ENOPROTOOPT   92

Definition at line 83 of file linux.h.

#define PLATFORM_ENOSPC   28

Definition at line 84 of file linux.h.

#define PLATFORM_ENOSR   63

Definition at line 85 of file linux.h.

#define PLATFORM_ENOSTR   60

Definition at line 86 of file linux.h.

#define PLATFORM_ENOSYS   38

Definition at line 87 of file linux.h.

#define PLATFORM_ENOTCONN   107

Definition at line 88 of file linux.h.

#define PLATFORM_ENOTDIR   20

Definition at line 89 of file linux.h.

#define PLATFORM_ENOTEMPTY   39

Definition at line 90 of file linux.h.

#define PLATFORM_ENOTSOCK   88

Definition at line 91 of file linux.h.

Definition at line 92 of file linux.h.

#define PLATFORM_ENOTTY   25

Definition at line 93 of file linux.h.

#define PLATFORM_ENXIO   6

Definition at line 94 of file linux.h.

#define PLATFORM_EOPNOTSUPP   95

Definition at line 95 of file linux.h.

#define PLATFORM_EOVERFLOW   75

Definition at line 96 of file linux.h.

#define PLATFORM_EPERM   1

Definition at line 97 of file linux.h.

#define PLATFORM_EPIPE   32

Definition at line 98 of file linux.h.

#define PLATFORM_EPROTO   71

Definition at line 99 of file linux.h.

#define PLATFORM_EPROTONOSUPPORT   93

Definition at line 100 of file linux.h.

#define PLATFORM_EPROTOTYPE   91

Definition at line 101 of file linux.h.

#define PLATFORM_ERANGE   34

Definition at line 102 of file linux.h.

#define PLATFORM_EROFS   30

Definition at line 103 of file linux.h.

#define PLATFORM_ESPIPE   29

Definition at line 104 of file linux.h.

#define PLATFORM_ESRCH   3

Definition at line 105 of file linux.h.

#define PLATFORM_ESTALE   116

Definition at line 106 of file linux.h.

#define PLATFORM_ETIME   62

Definition at line 107 of file linux.h.

#define PLATFORM_ETIMEDOUT   110

Definition at line 108 of file linux.h.

#define PLATFORM_ETXTBSY   26

Definition at line 109 of file linux.h.

Definition at line 110 of file linux.h.

#define PLATFORM_EXDEV   18

Definition at line 111 of file linux.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )