sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
errno.h File Reference

Go to the source code of this file.

Macros

#define __ERRNO_H__
#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 IOP only: EE code gets newlib's errno.h, which has the same codes. This is based on newlib's errno.h, with the additions of EFORMAT and EUNSUP.

Definition in file errno.h.

Macro Definition Documentation

◆ __ERRNO_H__

#define __ERRNO_H__

Definition at line 27 of file errno.h.

◆ E2BIG

#define E2BIG   7

Arg list too long

Definition at line 42 of file errno.h.

◆ EACCES

#define EACCES   13

Permission denied

Definition at line 54 of file errno.h.

◆ EADDRINUSE

#define EADDRINUSE   112

Address already in use

Definition at line 224 of file errno.h.

◆ EADDRNOTAVAIL

#define EADDRNOTAVAIL   125

Address not available

Definition at line 250 of file errno.h.

◆ EADV

#define EADV   68

Advertise error

Definition at line 160 of file errno.h.

◆ EAFNOSUPPORT

#define EAFNOSUPPORT   106

Address family not supported by protocol family

Definition at line 212 of file errno.h.

◆ EAGAIN

#define EAGAIN   11

No more processes

Definition at line 50 of file errno.h.

◆ EALREADY

#define EALREADY   120

Socket already connected

Definition at line 240 of file errno.h.

◆ EBADE

#define EBADE   50

Invalid exchange

Definition at line 128 of file errno.h.

◆ EBADF

#define EBADF   9

Bad file number

Definition at line 46 of file errno.h.

◆ EBADFD

#define EBADFD   81

f.d. invalid for this operation

Definition at line 180 of file errno.h.

◆ EBADMSG

#define EBADMSG   77

Bad message

Definition at line 174 of file errno.h.

◆ EBADR

#define EBADR   51

Invalid request descriptor

Definition at line 130 of file errno.h.

◆ EBADRQC

#define EBADRQC   54

Invalid request code

Definition at line 136 of file errno.h.

◆ EBADSLT

#define EBADSLT   55

Invalid slot

Definition at line 138 of file errno.h.

◆ EBFONT

#define EBFONT   57

Bad font file fmt

Definition at line 142 of file errno.h.

◆ EBUSY

#define EBUSY   16

Device or resource busy

Definition at line 60 of file errno.h.

◆ ECANCELED

#define ECANCELED   140

Operation canceled

Definition at line 280 of file errno.h.

◆ ECASECLASH

#define ECASECLASH   137

Filename exists with different case

Definition at line 274 of file errno.h.

◆ ECHILD

#define ECHILD   10

No children

Definition at line 48 of file errno.h.

◆ ECHRNG

#define ECHRNG   37

Channel number out of range

Definition at line 102 of file errno.h.

◆ ECOMM

#define ECOMM   70

Communication error on send

Definition at line 164 of file errno.h.

◆ ECONNABORTED

#define ECONNABORTED   113

Software caused connection abort

Definition at line 226 of file errno.h.

◆ ECONNREFUSED

#define ECONNREFUSED   111

Connection refused

Definition at line 222 of file errno.h.

◆ ECONNRESET

#define ECONNRESET   104

Connection reset by peer

Definition at line 208 of file errno.h.

◆ EDEADLK

#define EDEADLK   45

Deadlock

Definition at line 120 of file errno.h.

◆ EDEADLOCK

#define EDEADLOCK   56

File locking deadlock error

Definition at line 140 of file errno.h.

◆ EDESTADDRREQ

#define EDESTADDRREQ   121

Destination address required

Definition at line 242 of file errno.h.

◆ EDOM

#define EDOM   33

Mathematics argument out of domain of function

Definition at line 94 of file errno.h.

◆ EDOTDOT

#define EDOTDOT   76

Cross mount point (not really error)

Definition at line 172 of file errno.h.

◆ EDQUOT

#define EDQUOT   132

Disk quota exceeded

Definition at line 264 of file errno.h.

◆ EEXIST

#define EEXIST   17

File exists

Definition at line 62 of file errno.h.

◆ EFAULT

#define EFAULT   14

Bad address

Definition at line 56 of file errno.h.

◆ EFBIG

#define EFBIG   27

File too large

Definition at line 82 of file errno.h.

◆ EFORMAT

#define EFORMAT   47

Bad file format

Definition at line 124 of file errno.h.

◆ EFTYPE

#define EFTYPE   79

Inappropriate file type or format

Definition at line 176 of file errno.h.

◆ EHOSTDOWN

#define EHOSTDOWN   117

Host is down

Definition at line 234 of file errno.h.

◆ EHOSTUNREACH

#define EHOSTUNREACH   118

Host is unreachable

Definition at line 236 of file errno.h.

◆ EIDRM

#define EIDRM   36

Identifier removed

Definition at line 100 of file errno.h.

◆ EILSEQ

#define EILSEQ   138

Illegal byte sequence

Definition at line 276 of file errno.h.

◆ EINPROGRESS

#define EINPROGRESS   119

Connection already in progress

Definition at line 238 of file errno.h.

◆ EINTR

#define EINTR   4

Interrupted system call

Definition at line 36 of file errno.h.

◆ EINVAL

#define EINVAL   22

Invalid argument

Definition at line 72 of file errno.h.

◆ EIO

#define EIO   5

I/O error

Definition at line 38 of file errno.h.

◆ EISCONN

#define EISCONN   127

Socket is already connected

Definition at line 254 of file errno.h.

◆ EISDIR

#define EISDIR   21

Is a directory

Definition at line 70 of file errno.h.

◆ EL2HLT

#define EL2HLT   44

Level 2 halted

Definition at line 118 of file errno.h.

◆ EL2NSYNC

#define EL2NSYNC   38

Level 2 not synchronized

Definition at line 104 of file errno.h.

◆ EL3HLT

#define EL3HLT   39

Level 3 halted

Definition at line 106 of file errno.h.

◆ EL3RST

#define EL3RST   40

Level 3 reset

Definition at line 108 of file errno.h.

◆ ELBIN

#define ELBIN   75

Inode is remote (not really error)

Definition at line 170 of file errno.h.

◆ ELIBACC

#define ELIBACC   83

Can't access a needed shared lib

Definition at line 184 of file errno.h.

◆ ELIBBAD

#define ELIBBAD   84

Accessing a corrupted shared lib

Definition at line 186 of file errno.h.

◆ ELIBEXEC

#define ELIBEXEC   87

Attempting to exec a shared library

Definition at line 192 of file errno.h.

◆ ELIBMAX

#define ELIBMAX   86

Attempting to link in too many libs

Definition at line 190 of file errno.h.

◆ ELIBSCN

#define ELIBSCN   85

.lib section in a.out corrupted

Definition at line 188 of file errno.h.

◆ ELNRNG

#define ELNRNG   41

Link number out of range

Definition at line 112 of file errno.h.

◆ ELOOP

#define ELOOP   92

Too many symbolic links

Definition at line 202 of file errno.h.

◆ EMFILE

#define EMFILE   24

File descriptor value too large

Definition at line 76 of file errno.h.

◆ EMLINK

#define EMLINK   31

Too many links

Definition at line 90 of file errno.h.

◆ EMSGSIZE

#define EMSGSIZE   122

Message too long

Definition at line 244 of file errno.h.

◆ EMULTIHOP

#define EMULTIHOP   74

Multihop attempted

Definition at line 168 of file errno.h.

◆ ENAMETOOLONG

#define ENAMETOOLONG   91

File or path name too long

Definition at line 200 of file errno.h.

◆ ENETDOWN

#define ENETDOWN   115

Network interface is not configured

Definition at line 230 of file errno.h.

◆ ENETRESET

#define ENETRESET   126

Connection aborted by network

Definition at line 252 of file errno.h.

◆ ENETUNREACH

#define ENETUNREACH   114

Network is unreachable

Definition at line 228 of file errno.h.

◆ ENFILE

#define ENFILE   23

Too many open files in system

Definition at line 74 of file errno.h.

◆ ENMFILE

#define ENMFILE   89

No more files

Definition at line 196 of file errno.h.

◆ ENOANO

#define ENOANO   53

No anode

Definition at line 134 of file errno.h.

◆ ENOBUFS

#define ENOBUFS   105

No buffer space available

Definition at line 210 of file errno.h.

◆ ENOCSI

#define ENOCSI   43

No CSI structure available

Definition at line 116 of file errno.h.

◆ ENODATA

#define ENODATA   61

No data (for no delay io)

Definition at line 146 of file errno.h.

◆ ENODEV

#define ENODEV   19

No such device

Definition at line 66 of file errno.h.

◆ ENOENT

#define ENOENT   2

No such file or directory

Definition at line 32 of file errno.h.

◆ ENOEXEC

#define ENOEXEC   8

Exec format error

Definition at line 44 of file errno.h.

◆ ENOLCK

#define ENOLCK   46

No lock

Definition at line 122 of file errno.h.

◆ ENOLINK

#define ENOLINK   67

Virtual circuit is gone

Definition at line 158 of file errno.h.

◆ ENOMEDIUM

#define ENOMEDIUM   135

No medium (in tape drive)

Definition at line 270 of file errno.h.

◆ ENOMEM

#define ENOMEM   12

Not enough space

Definition at line 52 of file errno.h.

◆ ENOMSG

#define ENOMSG   35

No message of desired type

Definition at line 98 of file errno.h.

◆ ENONET

#define ENONET   64

Machine is not on the network

Definition at line 152 of file errno.h.

◆ ENOPKG

#define ENOPKG   65

Package not installed

Definition at line 154 of file errno.h.

◆ ENOPROTOOPT

#define ENOPROTOOPT   109

Protocol not available

Definition at line 218 of file errno.h.

◆ ENOSHARE

#define ENOSHARE   136

No such host or network path

Definition at line 272 of file errno.h.

◆ ENOSPC

#define ENOSPC   28

No space left on device

Definition at line 84 of file errno.h.

◆ ENOSR

#define ENOSR   63

No stream resources

Definition at line 150 of file errno.h.

◆ ENOSTR

#define ENOSTR   60

Not a stream

Definition at line 144 of file errno.h.

◆ ENOSYS

#define ENOSYS   88

Function not implemented

Definition at line 194 of file errno.h.

◆ ENOTBLK

#define ENOTBLK   15

Block device required

Definition at line 58 of file errno.h.

◆ ENOTCONN

#define ENOTCONN   128

Socket is not connected

Definition at line 256 of file errno.h.

◆ ENOTDIR

#define ENOTDIR   20

Not a directory

Definition at line 68 of file errno.h.

◆ ENOTEMPTY

#define ENOTEMPTY   90

Directory not empty

Definition at line 198 of file errno.h.

◆ ENOTRECOVERABLE

#define ENOTRECOVERABLE   141

State not recoverable

Definition at line 282 of file errno.h.

◆ ENOTSOCK

#define ENOTSOCK   108

Socket operation on non-socket

Definition at line 216 of file errno.h.

◆ ENOTSUP

#define ENOTSUP   134

Not supported

Definition at line 268 of file errno.h.

◆ ENOTTY

#define ENOTTY   25

Not a character device

Definition at line 78 of file errno.h.

◆ ENOTUNIQ

#define ENOTUNIQ   80

Given log. name not unique

Definition at line 178 of file errno.h.

◆ ENXIO

#define ENXIO   6

No such device or address

Definition at line 40 of file errno.h.

◆ EOPNOTSUPP

#define EOPNOTSUPP   95

Operation not supported on socket

Definition at line 204 of file errno.h.

◆ EOVERFLOW

#define EOVERFLOW   139

Value too large for defined data type

Definition at line 278 of file errno.h.

◆ EOWNERDEAD

#define EOWNERDEAD   142

Previous owner died

Definition at line 284 of file errno.h.

◆ EPERM

#define EPERM   1

Not owner

Definition at line 30 of file errno.h.

◆ EPFNOSUPPORT

#define EPFNOSUPPORT   96

Protocol family not supported

Definition at line 206 of file errno.h.

◆ EPIPE

#define EPIPE   32

Broken pipe

Definition at line 92 of file errno.h.

◆ EPROCLIM

#define EPROCLIM   130

Too many processes

Definition at line 260 of file errno.h.

◆ EPROTO

#define EPROTO   71

Protocol error

Definition at line 166 of file errno.h.

◆ EPROTONOSUPPORT

#define EPROTONOSUPPORT   123

Unknown protocol

Definition at line 246 of file errno.h.

◆ EPROTOTYPE

#define EPROTOTYPE   107

Protocol wrong type for socket

Definition at line 214 of file errno.h.

◆ ERANGE

#define ERANGE   34

Result too large

Definition at line 96 of file errno.h.

◆ EREMCHG

#define EREMCHG   82

Remote address changed

Definition at line 182 of file errno.h.

◆ EREMOTE

#define EREMOTE   66

The object is remote

Definition at line 156 of file errno.h.

◆ EROFS

#define EROFS   30

Read-only file system

Definition at line 88 of file errno.h.

◆ error_to_string

#define error_to_string ( errnum)
Value:
("")

Definition at line 289 of file errno.h.

◆ ESHUTDOWN

#define ESHUTDOWN   110

Can't send after socket shutdown

Definition at line 220 of file errno.h.

◆ ESOCKTNOSUPPORT

#define ESOCKTNOSUPPORT   124

Socket type not supported

Definition at line 248 of file errno.h.

◆ ESPIPE

#define ESPIPE   29

Illegal seek

Definition at line 86 of file errno.h.

◆ ESRCH

#define ESRCH   3

No such process

Definition at line 34 of file errno.h.

◆ ESRMNT

#define ESRMNT   69

Srmount error

Definition at line 162 of file errno.h.

◆ ESTALE

#define ESTALE   133

Stale file handle

Definition at line 266 of file errno.h.

◆ ESTRPIPE

#define ESTRPIPE   143

Streams pipe error

Definition at line 286 of file errno.h.

◆ ETIME

#define ETIME   62

Stream ioctl timeout

Definition at line 148 of file errno.h.

◆ ETIMEDOUT

#define ETIMEDOUT   116

Connection timed out

Definition at line 232 of file errno.h.

◆ ETOOMANYREFS

#define ETOOMANYREFS   129

Too many references: cannot splice

Definition at line 258 of file errno.h.

◆ ETXTBSY

#define ETXTBSY   26

Text file busy

Definition at line 80 of file errno.h.

◆ EUNATCH

#define EUNATCH   42

Protocol driver not attached

Definition at line 114 of file errno.h.

◆ EUNSUP

#define EUNSUP   48

Operation unsupported by device

Definition at line 126 of file errno.h.

◆ EUSERS

#define EUSERS   131

Too many users

Definition at line 262 of file errno.h.

◆ EWOULDBLOCK

#define EWOULDBLOCK   EAGAIN

Operation would block

Definition at line 110 of file errno.h.

◆ EXDEV

#define EXDEV   18

Cross-device link

Definition at line 64 of file errno.h.

◆ EXFULL

#define EXFULL   52

Exchange full

Definition at line 132 of file errno.h.