RetroArch
need_errno.h
Go to the documentation of this file.
1 /***
2 * errno.h - system wide error numbers (set by system calls)
3 *
4 * Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
5 *
6 * Purpose:
7 * This file defines the system-wide error numbers (set by
8 * system calls). Conforms to the XENIX standard. Extended
9 * for compatibility with Uniforum standard.
10 * [System V]
11 *
12 * [Public]
13 *
14 ****/
15 
16 #ifndef _INC_ERRNO
17 #define _INC_ERRNO
18 
19 #ifdef __cplusplus
20 extern "C"
21  {
22 #endif
23 
24 
25 
26  /* declare reference to errno */
27 
28  extern int errno;
29 
30  /* Error Codes */
31 
32 #define EPERM 1
33 #define ENOENT 2
34 #define ESRCH 3
35 #define EINTR 4
36 #define EIO 5
37 #define ENXIO 6
38 #define E2BIG 7
39 #define ENOEXEC 8
40 #define EBADF 9
41 #define ECHILD 10
42 #define EAGAIN 11
43 #define ENOMEM 12
44 #define EACCES 13
45 #define EFAULT 14
46 #define EBUSY 16
47 #define EEXIST 17
48 #define EXDEV 18
49 #define ENODEV 19
50 #define ENOTDIR 20
51 #define EISDIR 21
52 #define EINVAL 22
53 #define ENFILE 23
54 #define EMFILE 24
55 #define ENOTTY 25
56 #define EFBIG 27
57 #define ENOSPC 28
58 #define ESPIPE 29
59 #define EROFS 30
60 #define EMLINK 31
61 #define EPIPE 32
62 #define EDOM 33
63 #define ERANGE 34
64 #define EDEADLK 36
65 
66  /* defined differently in winsock.h on WinCE */
67 #ifndef ENAMETOOLONG
68 #define ENAMETOOLONG 38
69 #endif
70 
71 #define ENOLCK 39
72 #define ENOSYS 40
73 
74  /* defined differently in winsock.h on WinCE */
75 #ifndef ENOTEMPTY
76 #define ENOTEMPTY 41
77 #endif
78 
79 #define EILSEQ 42
80 
81  /*
82  * Support EDEADLOCK for compatibiity with older MS-C versions.
83  */
84 #define EDEADLOCK EDEADLK
85 
86 #ifdef __cplusplus
87  }
88 #endif
89 
90 #endif /* _INC_ERRNO */
int errno