ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
errno.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
16
#ifndef __ERRNO_H__
17
#define __ERRNO_H__
18
20
#define EPERM 1
22
#define ENOENT 2
24
#define ESRCH 3
26
#define EINTR 4
28
#define EIO 5
30
#define ENXIO 6
32
#define E2BIG 7
34
#define ENOEXEC 8
36
#define EBADF 9
38
#define ECHILD 10
40
#define EAGAIN 11
42
#define ENOMEM 12
44
#define EACCES 13
46
#define EFAULT 14
48
#define ENOTBLK 15
50
#define EBUSY 16
52
#define EEXIST 17
54
#define EXDEV 18
56
#define ENODEV 19
58
#define ENOTDIR 20
60
#define EISDIR 21
62
#define EINVAL 22
64
#define ENFILE 23
66
#define EMFILE 24
68
#define ENOTTY 25
70
#define ETXTBSY 26
72
#define EFBIG 27
74
#define ENOSPC 28
76
#define ESPIPE 29
78
#define EROFS 30
80
#define EMLINK 31
82
#define EPIPE 32
84
#define EDOM 33
86
#define ERANGE 34
88
#define ENOMSG 35
90
#define EIDRM 36
92
#define ECHRNG 37
94
#define EL2NSYNC 38
96
#define EL3HLT 39
98
#define EL3RST 40
100
#define EWOULDBLOCK EAGAIN
102
#define ELNRNG 41
104
#define EUNATCH 42
106
#define ENOCSI 43
108
#define EL2HLT 44
110
#define EDEADLK 45
112
#define ENOLCK 46
114
#define EBADE 50
116
#define EBADR 51
118
#define EXFULL 52
120
#define ENOANO 53
122
#define EBADRQC 54
124
#define EBADSLT 55
126
#define EDEADLOCK 56
128
#define EBFONT 57
130
#define ENOSTR 60
132
#define ENODATA 61
134
#define ETIME 62
136
#define ENOSR 63
138
#define ENONET 64
140
#define ENOPKG 65
142
#define EREMOTE 66
144
#define ENOLINK 67
146
#define EADV 68
148
#define ESRMNT 69
150
#define ECOMM 70
152
#define EPROTO 71
154
#define EMULTIHOP 74
156
#define ELBIN 75
158
#define EDOTDOT 76
160
#define EBADMSG 77
162
#define EFTYPE 79
164
#define ENOTUNIQ 80
166
#define EBADFD 81
168
#define EREMCHG 82
170
#define ELIBACC 83
172
#define ELIBBAD 84
174
#define ELIBSCN 85
176
#define ELIBMAX 86
178
#define ELIBEXEC 87
180
#define ENOSYS 88
182
#define ENMFILE 89
184
#define ENOTEMPTY 90
186
#define ENAMETOOLONG 91
188
#define ELOOP 92
190
#define EOPNOTSUPP 95
192
#define EPFNOSUPPORT 96
194
#define ECONNRESET 104
196
#define ENOBUFS 105
198
#define EAFNOSUPPORT 106
200
#define EPROTOTYPE 107
202
#define ENOTSOCK 108
204
#define ENOPROTOOPT 109
206
#define ESHUTDOWN 110
208
#define ECONNREFUSED 111
210
#define EADDRINUSE 112
212
#define ECONNABORTED 113
214
#define ENETUNREACH 114
216
#define ENETDOWN 115
218
#define ETIMEDOUT 116
220
#define EHOSTDOWN 117
222
#define EHOSTUNREACH 118
224
#define EINPROGRESS 119
226
#define EALREADY 120
228
#define EDESTADDRREQ 121
230
#define EMSGSIZE 122
232
#define EPROTONOSUPPORT 123
234
#define ESOCKTNOSUPPORT 124
236
#define EADDRNOTAVAIL 125
237
#define ENETRESET 126
239
#define EISCONN 127
241
#define ENOTCONN 128
242
#define ETOOMANYREFS 129
243
#define EPROCLIM 130
244
#define EUSERS 131
245
#define EDQUOT 132
246
#define ESTALE 133
248
#define ENOTSUP 134
250
#define ENOMEDIUM 135
252
#define ENOSHARE 136
254
#define ECASECLASH 137
255
#define EILSEQ 138
257
#define EOVERFLOW 139
258
259
#ifndef E_USE_NAMES
260
#define error_to_string(errnum) (""
)
261
#else
262
char
*file_errors[] = {
263
""
,
// 0
264
"Not super-user"
,
// 1
265
"No such file or directory"
,
// 2
266
"No such process"
,
// 3
267
"Interrupted system call"
,
// 4
268
"I/O error"
,
// 5
269
"No such device or address"
,
// 6
270
"Arg list too long"
,
// 7
271
"Exec format error"
,
// 8
272
"Bad file number"
,
// 9
273
"No children"
,
// 10
274
"No more processes"
,
// 11
275
"Not enough core"
,
// 12
276
"Permission denied"
,
// 13
277
"Bad address"
,
// 14
278
"Block device required"
,
// 15
279
"Mount device busy"
,
// 16
280
"File exists"
,
// 17
281
"Cross-device link"
,
// 18
282
"No such device"
,
// 19
283
"Not a directory"
,
// 20
284
"Is a directory"
,
// 21
285
"Invalid argument"
,
// 22
286
"Too many open files in system"
,
// 23
287
"Too many open files"
,
// 24
288
"Not a typewriter"
,
// 25
289
"Text file busy"
,
// 26
290
"File too large"
,
// 27
291
"No space left on device"
,
// 28
292
"Illegal seek"
,
// 29
293
"Read only file system"
,
// 30
294
"Too many links"
,
// 31
295
"Broken pipe"
,
// 32
296
"Math arg out of domain of func"
,
// 33
297
"Math result not representable"
,
// 34
298
"No message of desired type"
,
// 35
299
"Identifier removed"
,
// 36
300
"Channel number out of range"
,
// 37
301
"Level 2 not synchronized"
,
// 38
302
"Level 3 halted"
,
// 39
303
"Level 3 reset"
,
// 40
304
"Link number out of range"
,
// 41
305
"Protocol driver not attached"
,
// 42
306
"No CSI structure available"
,
// 43
307
"Level 2 halted"
,
// 44
308
"Deadlock condition"
,
// 45
309
"No record locks available"
,
// 46
310
""
,
// 47
311
""
,
// 48
312
""
,
// 49
313
"Invalid exchange"
,
// 50
314
"Invalid request descriptor"
,
// 51
315
"Exchange full"
,
// 52
316
"No anode"
,
// 53
317
"Invalid request code"
,
// 54
318
"Invalid slot"
,
// 55
319
"File locking deadlock error"
,
// 56
320
"Bad font file fmt"
,
// 57
321
""
,
// 58
322
""
,
// 59
323
"Device not a stream"
,
// 60
324
"No data (for no delay io)"
,
// 61
325
"Timer expired"
,
// 62
326
"Out of streams resources"
,
// 63
327
"Machine is not on the network"
,
// 64
328
"Package not installed"
,
// 65
329
"The object is remote"
,
// 66
330
"The link has been severed"
,
// 67
331
"Advertise error"
,
// 68
332
"Srmount error"
,
// 69
333
"Communication error on send"
,
// 70
334
"Protocol error"
,
// 71
335
""
,
// 72
336
""
,
// 73
337
"Multihop attempted"
,
// 74
338
"Inode is remote (not really error)"
,
// 75
339
340
341
"Cross mount point (not really error)"
,
// 76
342
"Trying to read unreadable message"
,
// 77
343
""
,
// 78
344
"Inappropriate file type or format"
,
// 79
345
"Given log. name not unique"
,
// 80
346
"f.d. invalid for this operation"
,
// 81
347
"Remote address changed"
,
// 82
348
"Can't access a needed shared lib"
,
// 83
349
"Accessing a corrupted shared lib"
,
// 84
350
".lib section in a.out corrupted"
,
// 85
351
"Attempting to link in too many libs"
,
// 86
352
"Attempting to exec a shared library"
,
// 87
353
"Function not implemented"
,
// 88
354
"No more files"
,
// 89
355
"Directory not empty"
,
// 90
356
"File or path name too long"
,
// 91
357
"Too many symbolic links"
,
// 92
358
""
,
// 93
359
""
,
// 94
360
"Operation not supported on transport endpoint"
,
// 95
361
"Protocol family not supported"
,
// 96
362
""
,
// 97
363
""
,
// 98
364
""
,
// 99
365
""
,
// 100
366
""
,
// 101
367
""
,
// 102
368
""
,
// 103
369
"Connection reset by peer"
,
// 104
370
"No buffer space available"
,
// 105
371
"Address family not supported by protocol family"
,
// 106
372
"Protocol wrong type for socket"
,
// 107
373
"Socket operation on non-socket"
,
// 108
374
"Protocol not available"
,
// 109
375
"Can't send after socket shutdown"
,
// 110
376
"Connection refused"
,
// 111
377
"Address already in use"
,
// 112
378
"Connection aborted"
,
// 113
379
"Network is unreachable"
,
// 114
380
"Network interface is not configured"
,
// 115
381
"Connection timed out"
,
// 116
382
"Host is down"
,
// 117
383
"Host is unreachable"
,
// 118
384
"Connection already in progress"
,
// 119
385
"Socket already connected"
,
// 120
386
"Destination address required"
,
// 121
387
"Message too long"
,
// 122
388
"Unknown protocol"
,
// 123
389
"Socket type not supported"
,
// 124
390
"Address not available"
,
// 125
391
""
,
// 126
392
"Socket is already connected"
,
// 127
393
"Socket is not connected"
,
// 128
394
""
,
// 129
395
"EPROCLIM"
,
// 130
396
"EUSERS"
,
// 131
397
"EDQUOT"
,
// 132
398
"ESTALE"
,
// 133
399
"Not supported"
,
// 134
400
"No medium (in tape drive)"
,
// 135
401
"No such host or network path"
,
// 136
402
"Filename exists with different case"
,
// 137
403
"EILSEQ"
,
// 138
404
"Value too large for defined data type"
,
// 139
405
""
};
406
#define error_to_string(errnum) (file_errors[errnum*-1])
407
#endif
408
409
extern
int
errno
__attribute__((section(
"data"
)));
410
411
#endif
/* __ERRNO_H__ */
errno
int errno
common
include
errno.h
Generated on Thu Feb 11 2021 11:42:21 for ps2sdk by
1.9.2