PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
errno.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#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 EIDRM   36
 
#define ECHRNG   37
 
#define EL2NSYNC   38
 
#define EL3HLT   39
 
#define EL3RST   40
 
#define EWOULDBLOCK   EAGAIN
 
#define ELNRNG   41
 
#define EUNATCH   42
 
#define ENOCSI   43
 
#define EL2HLT   44
 
#define EDEADLK   45
 
#define ENOLCK   46
 
#define EFORMAT   47
 
#define EUNSUP   48
 
#define EBADE   50
 
#define EBADR   51
 
#define EXFULL   52
 
#define ENOANO   53
 
#define EBADRQC   54
 
#define EBADSLT   55
 
#define EDEADLOCK   56
 
#define EBFONT   57
 
#define ENOSTR   60
 
#define ENODATA   61
 
#define ETIME   62
 
#define ENOSR   63
 
#define ENONET   64
 
#define ENOPKG   65
 
#define EREMOTE   66
 
#define ENOLINK   67
 
#define EADV   68
 
#define ESRMNT   69
 
#define ECOMM   70
 
#define EPROTO   71
 
#define EMULTIHOP   74
 
#define ELBIN   75
 
#define EDOTDOT   76
 
#define EBADMSG   77
 
#define EFTYPE   79
 
#define ENOTUNIQ   80
 
#define EBADFD   81
 
#define EREMCHG   82
 
#define ELIBACC   83
 
#define ELIBBAD   84
 
#define ELIBSCN   85
 
#define ELIBMAX   86
 
#define ELIBEXEC   87
 
#define ENOSYS   88
 
#define ENMFILE   89
 
#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 EPROCLIM   130
 
#define EUSERS   131
 
#define EDQUOT   132
 
#define ESTALE   133
 
#define ENOTSUP   134
 
#define ENOMEDIUM   135
 
#define ENOSHARE   136
 
#define ECASECLASH   137
 
#define EILSEQ   138
 
#define EOVERFLOW   139
 
#define ECANCELED   140
 
#define ENOTRECOVERABLE   141
 
#define EOWNERDEAD   142
 
#define ESTRPIPE   143
 
#define error_to_string(errnum)   ("")
 

Functions

int errno __attribute__ ((section("data")))
 

Detailed Description

global error codes and string values This is based on newlib's errno.h, with the additions of EFORMAT and EUNSUP.

Definition in file errno.h.

Macro Definition Documentation

◆ EPERM

#define EPERM   1

Not owner

Definition at line 21 of file errno.h.

◆ ENOENT

#define ENOENT   2

No such file or directory

Definition at line 23 of file errno.h.

◆ ESRCH

#define ESRCH   3

No such process

Definition at line 25 of file errno.h.

◆ EINTR

#define EINTR   4

Interrupted system call

Definition at line 27 of file errno.h.

◆ EIO

#define EIO   5

I/O error

Definition at line 29 of file errno.h.

◆ ENXIO

#define ENXIO   6

No such device or address

Definition at line 31 of file errno.h.

◆ E2BIG

#define E2BIG   7

Arg list too long

Definition at line 33 of file errno.h.

◆ ENOEXEC

#define ENOEXEC   8

Exec format error

Definition at line 35 of file errno.h.

◆ EBADF

#define EBADF   9

Bad file number

Definition at line 37 of file errno.h.

◆ ECHILD

#define ECHILD   10

No children

Definition at line 39 of file errno.h.

◆ EAGAIN

#define EAGAIN   11

No more processes

Definition at line 41 of file errno.h.

◆ ENOMEM

#define ENOMEM   12

Not enough space

Definition at line 43 of file errno.h.

◆ EACCES

#define EACCES   13

Permission denied

Definition at line 45 of file errno.h.

◆ EFAULT

#define EFAULT   14

Bad address

Definition at line 47 of file errno.h.

◆ ENOTBLK

#define ENOTBLK   15

Block device required

Definition at line 49 of file errno.h.

◆ EBUSY

#define EBUSY   16

Device or resource busy

Definition at line 51 of file errno.h.

◆ EEXIST

#define EEXIST   17

File exists

Definition at line 53 of file errno.h.

◆ EXDEV

#define EXDEV   18

Cross-device link

Definition at line 55 of file errno.h.

◆ ENODEV

#define ENODEV   19

No such device

Definition at line 57 of file errno.h.

◆ ENOTDIR

#define ENOTDIR   20

Not a directory

Definition at line 59 of file errno.h.

◆ EISDIR

#define EISDIR   21

Is a directory

Definition at line 61 of file errno.h.

◆ EINVAL

#define EINVAL   22

Invalid argument

Definition at line 63 of file errno.h.

◆ ENFILE

#define ENFILE   23

Too many open files in system

Definition at line 65 of file errno.h.

◆ EMFILE

#define EMFILE   24

File descriptor value too large

Definition at line 67 of file errno.h.

◆ ENOTTY

#define ENOTTY   25

Not a character device

Definition at line 69 of file errno.h.

◆ ETXTBSY

#define ETXTBSY   26

Text file busy

Definition at line 71 of file errno.h.

◆ EFBIG

#define EFBIG   27

File too large

Definition at line 73 of file errno.h.

◆ ENOSPC

#define ENOSPC   28

No space left on device

Definition at line 75 of file errno.h.

◆ ESPIPE

#define ESPIPE   29

Illegal seek

Definition at line 77 of file errno.h.

◆ EROFS

#define EROFS   30

Read-only file system

Definition at line 79 of file errno.h.

◆ EMLINK

#define EMLINK   31

Too many links

Definition at line 81 of file errno.h.

◆ EPIPE

#define EPIPE   32

Broken pipe

Definition at line 83 of file errno.h.

◆ EDOM

#define EDOM   33

Mathematics argument out of domain of function

Definition at line 85 of file errno.h.

◆ ERANGE

#define ERANGE   34

Result too large

Definition at line 87 of file errno.h.

◆ ENOMSG

#define ENOMSG   35

No message of desired type

Definition at line 89 of file errno.h.

◆ EIDRM

#define EIDRM   36

Identifier removed

Definition at line 91 of file errno.h.

◆ ECHRNG

#define ECHRNG   37

Channel number out of range

Definition at line 93 of file errno.h.

◆ EL2NSYNC

#define EL2NSYNC   38

Level 2 not synchronized

Definition at line 95 of file errno.h.

◆ EL3HLT

#define EL3HLT   39

Level 3 halted

Definition at line 97 of file errno.h.

◆ EL3RST

#define EL3RST   40

Level 3 reset

Definition at line 99 of file errno.h.

◆ EWOULDBLOCK

#define EWOULDBLOCK   EAGAIN

Operation would block

Definition at line 101 of file errno.h.

◆ ELNRNG

#define ELNRNG   41

Link number out of range

Definition at line 103 of file errno.h.

◆ EUNATCH

#define EUNATCH   42

Protocol driver not attached

Definition at line 105 of file errno.h.

◆ ENOCSI

#define ENOCSI   43

No CSI structure available

Definition at line 107 of file errno.h.

◆ EL2HLT

#define EL2HLT   44

Level 2 halted

Definition at line 109 of file errno.h.

◆ EDEADLK

#define EDEADLK   45

Deadlock

Definition at line 111 of file errno.h.

◆ ENOLCK

#define ENOLCK   46

No lock

Definition at line 113 of file errno.h.

◆ EFORMAT

#define EFORMAT   47

Bad file format

Definition at line 115 of file errno.h.

◆ EUNSUP

#define EUNSUP   48

Operation unsupported by device

Definition at line 117 of file errno.h.

◆ EBADE

#define EBADE   50

Invalid exchange

Definition at line 119 of file errno.h.

◆ EBADR

#define EBADR   51

Invalid request descriptor

Definition at line 121 of file errno.h.

◆ EXFULL

#define EXFULL   52

Exchange full

Definition at line 123 of file errno.h.

◆ ENOANO

#define ENOANO   53

No anode

Definition at line 125 of file errno.h.

◆ EBADRQC

#define EBADRQC   54

Invalid request code

Definition at line 127 of file errno.h.

◆ EBADSLT

#define EBADSLT   55

Invalid slot

Definition at line 129 of file errno.h.

◆ EDEADLOCK

#define EDEADLOCK   56

File locking deadlock error

Definition at line 131 of file errno.h.

◆ EBFONT

#define EBFONT   57

Bad font file fmt

Definition at line 133 of file errno.h.

◆ ENOSTR

#define ENOSTR   60

Not a stream

Definition at line 135 of file errno.h.

◆ ENODATA

#define ENODATA   61

No data (for no delay io)

Definition at line 137 of file errno.h.

◆ ETIME

#define ETIME   62

Stream ioctl timeout

Definition at line 139 of file errno.h.

◆ ENOSR

#define ENOSR   63

No stream resources

Definition at line 141 of file errno.h.

◆ ENONET

#define ENONET   64

Machine is not on the network

Definition at line 143 of file errno.h.

◆ ENOPKG

#define ENOPKG   65

Package not installed

Definition at line 145 of file errno.h.

◆ EREMOTE

#define EREMOTE   66

The object is remote

Definition at line 147 of file errno.h.

◆ ENOLINK

#define ENOLINK   67

Virtual circuit is gone

Definition at line 149 of file errno.h.

◆ EADV

#define EADV   68

Advertise error

Definition at line 151 of file errno.h.

◆ ESRMNT

#define ESRMNT   69

Srmount error

Definition at line 153 of file errno.h.

◆ ECOMM

#define ECOMM   70

Communication error on send

Definition at line 155 of file errno.h.

◆ EPROTO

#define EPROTO   71

Protocol error

Definition at line 157 of file errno.h.

◆ EMULTIHOP

#define EMULTIHOP   74

Multihop attempted

Definition at line 159 of file errno.h.

◆ ELBIN

#define ELBIN   75

Inode is remote (not really error)

Definition at line 161 of file errno.h.

◆ EDOTDOT

#define EDOTDOT   76

Cross mount point (not really error)

Definition at line 163 of file errno.h.

◆ EBADMSG

#define EBADMSG   77

Bad message

Definition at line 165 of file errno.h.

◆ EFTYPE

#define EFTYPE   79

Inappropriate file type or format

Definition at line 167 of file errno.h.

◆ ENOTUNIQ

#define ENOTUNIQ   80

Given log. name not unique

Definition at line 169 of file errno.h.

◆ EBADFD

#define EBADFD   81

f.d. invalid for this operation

Definition at line 171 of file errno.h.

◆ EREMCHG

#define EREMCHG   82

Remote address changed

Definition at line 173 of file errno.h.

◆ ELIBACC

#define ELIBACC   83

Can't access a needed shared lib

Definition at line 175 of file errno.h.

◆ ELIBBAD

#define ELIBBAD   84

Accessing a corrupted shared lib

Definition at line 177 of file errno.h.

◆ ELIBSCN

#define ELIBSCN   85

.lib section in a.out corrupted

Definition at line 179 of file errno.h.

◆ ELIBMAX

#define ELIBMAX   86

Attempting to link in too many libs

Definition at line 181 of file errno.h.

◆ ELIBEXEC

#define ELIBEXEC   87

Attempting to exec a shared library

Definition at line 183 of file errno.h.

◆ ENOSYS

#define ENOSYS   88

Function not implemented

Definition at line 185 of file errno.h.

◆ ENMFILE

#define ENMFILE   89

No more files

Definition at line 187 of file errno.h.

◆ ENOTEMPTY

#define ENOTEMPTY   90

Directory not empty

Definition at line 189 of file errno.h.

◆ ENAMETOOLONG

#define ENAMETOOLONG   91

File or path name too long

Definition at line 191 of file errno.h.

◆ ELOOP

#define ELOOP   92

Too many symbolic links

Definition at line 193 of file errno.h.

◆ EOPNOTSUPP

#define EOPNOTSUPP   95

Operation not supported on socket

Definition at line 195 of file errno.h.

◆ EPFNOSUPPORT

#define EPFNOSUPPORT   96

Protocol family not supported

Definition at line 197 of file errno.h.

◆ ECONNRESET

#define ECONNRESET   104

Connection reset by peer

Definition at line 199 of file errno.h.

◆ ENOBUFS

#define ENOBUFS   105

No buffer space available

Definition at line 201 of file errno.h.

◆ EAFNOSUPPORT

#define EAFNOSUPPORT   106

Address family not supported by protocol family

Definition at line 203 of file errno.h.

◆ EPROTOTYPE

#define EPROTOTYPE   107

Protocol wrong type for socket

Definition at line 205 of file errno.h.

◆ ENOTSOCK

#define ENOTSOCK   108

Socket operation on non-socket

Definition at line 207 of file errno.h.

◆ ENOPROTOOPT

#define ENOPROTOOPT   109

Protocol not available

Definition at line 209 of file errno.h.

◆ ESHUTDOWN

#define ESHUTDOWN   110

Can't send after socket shutdown

Definition at line 211 of file errno.h.

◆ ECONNREFUSED

#define ECONNREFUSED   111

Connection refused

Definition at line 213 of file errno.h.

◆ EADDRINUSE

#define EADDRINUSE   112

Address already in use

Definition at line 215 of file errno.h.

◆ ECONNABORTED

#define ECONNABORTED   113

Software caused connection abort

Definition at line 217 of file errno.h.

◆ ENETUNREACH

#define ENETUNREACH   114

Network is unreachable

Definition at line 219 of file errno.h.

◆ ENETDOWN

#define ENETDOWN   115

Network interface is not configured

Definition at line 221 of file errno.h.

◆ ETIMEDOUT

#define ETIMEDOUT   116

Connection timed out

Definition at line 223 of file errno.h.

◆ EHOSTDOWN

#define EHOSTDOWN   117

Host is down

Definition at line 225 of file errno.h.

◆ EHOSTUNREACH

#define EHOSTUNREACH   118

Host is unreachable

Definition at line 227 of file errno.h.

◆ EINPROGRESS

#define EINPROGRESS   119

Connection already in progress

Definition at line 229 of file errno.h.

◆ EALREADY

#define EALREADY   120

Socket already connected

Definition at line 231 of file errno.h.

◆ EDESTADDRREQ

#define EDESTADDRREQ   121

Destination address required

Definition at line 233 of file errno.h.

◆ EMSGSIZE

#define EMSGSIZE   122

Message too long

Definition at line 235 of file errno.h.

◆ EPROTONOSUPPORT

#define EPROTONOSUPPORT   123

Unknown protocol

Definition at line 237 of file errno.h.

◆ ESOCKTNOSUPPORT

#define ESOCKTNOSUPPORT   124

Socket type not supported

Definition at line 239 of file errno.h.

◆ EADDRNOTAVAIL

#define EADDRNOTAVAIL   125

Address not available

Definition at line 241 of file errno.h.

◆ ENETRESET

#define ENETRESET   126

Connection aborted by network

Definition at line 243 of file errno.h.

◆ EISCONN

#define EISCONN   127

Socket is already connected

Definition at line 245 of file errno.h.

◆ ENOTCONN

#define ENOTCONN   128

Socket is not connected

Definition at line 247 of file errno.h.

◆ ETOOMANYREFS

#define ETOOMANYREFS   129

Too many references: cannot splice

Definition at line 249 of file errno.h.

◆ EPROCLIM

#define EPROCLIM   130

Too many processes

Definition at line 251 of file errno.h.

◆ EUSERS

#define EUSERS   131

Too many users

Definition at line 253 of file errno.h.

◆ EDQUOT

#define EDQUOT   132

Disk quota exceeded

Definition at line 255 of file errno.h.

◆ ESTALE

#define ESTALE   133

Stale file handle

Definition at line 257 of file errno.h.

◆ ENOTSUP

#define ENOTSUP   134

Not supported

Definition at line 259 of file errno.h.

◆ ENOMEDIUM

#define ENOMEDIUM   135

No medium (in tape drive)

Definition at line 261 of file errno.h.

◆ ENOSHARE

#define ENOSHARE   136

No such host or network path

Definition at line 263 of file errno.h.

◆ ECASECLASH

#define ECASECLASH   137

Filename exists with different case

Definition at line 265 of file errno.h.

◆ EILSEQ

#define EILSEQ   138

Illegal byte sequence

Definition at line 267 of file errno.h.

◆ EOVERFLOW

#define EOVERFLOW   139

Value too large for defined data type

Definition at line 269 of file errno.h.

◆ ECANCELED

#define ECANCELED   140

Operation canceled

Definition at line 271 of file errno.h.

◆ ENOTRECOVERABLE

#define ENOTRECOVERABLE   141

State not recoverable

Definition at line 273 of file errno.h.

◆ EOWNERDEAD

#define EOWNERDEAD   142

Previous owner died

Definition at line 275 of file errno.h.

◆ ESTRPIPE

#define ESTRPIPE   143

Streams pipe error

Definition at line 277 of file errno.h.

◆ error_to_string

#define error_to_string (   errnum)    ("")

Definition at line 280 of file errno.h.