Subversion Repositories Kolibri OS

Rev

Rev 8793 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8687 turbocat 1
#ifndef _ERRNO_H_
2
#define _ERRNO_H_
3
 
4
#include 
5
 
8787 turbocat 6
#ifdef _BUILD_LIBC
9766 turbocat 7
#define errno __errno
8
extern int __errno;
8787 turbocat 9
#else
9766 turbocat 10
extern int* __errno;
11
#define errno *__errno
8787 turbocat 12
#endif
8687 turbocat 13
 
9766 turbocat 14
#define ENOTSUP   2  // Function is not supported
15
#define EUNKNFS   3  // Unknown file system
16
#define ENOTFOUND 5  // File not found
17
#define EEOF      6  // End of file
18
#define EFAULT    7  // Pointer lies outside of application memory
19
#define EDQUOT    8  // Disk is full
20
#define EFS       9  // File system error
21
#define EACCES    10 // Access denied
22
#define EDEV      11 // Device error
23
#define ENOMEMFS  12 // File system requires more memory
8687 turbocat 24
 
9766 turbocat 25
#define ENOMEM   30 // Not enough memory
26
#define ENOEXEC  31 // Is not executable
27
#define EPROCLIM 32 // Too many processes
28
#define EINVAL   33 // Invalid argument
8687 turbocat 29
 
9766 turbocat 30
#define EDOM   50 // Numerical argument out of domain
31
#define ERANGE 51 // Result too large
32
#define EILSEQ 52 // Illegal byte sequence
8687 turbocat 33
 
9766 turbocat 34
#define ENOBUFS      60 // Broken buffer
35
#define EINPROGRESS  61 // Operation now in progress
36
#define EOPNOTSUPP   62 // Operation not supported on transport endpoint
37
#define EWOULDBLOCK  63 // Operation would block
38
#define ENOTCONN     64 // Transport endpoint is not connected
39
#define EALREADY     65 // Operation already in progress
40
#define EMSGSIZE     66 // Message too long
41
#define EADDRINUSE   67 // Address already in use
42
#define ECONNREFUSED 68 // Connection refused
43
#define ECONNRESET   69 // Connection reset by peer
44
#define EISCONN      70 // Transport endpoint is already connected
45
#define ETIMEDOUT    71 // Connection timed out
46
#define ECONNABORTED 72 // Software caused connection abort
8687 turbocat 47
 
9766 turbocat 48
/*
49
* UNIX-like errno
50
* Will be removed after changing STDIO.
51
*/
8687 turbocat 52
 
9766 turbocat 53
#define ENOTDIR   80
54
#define EBADF     81
55
#define EIO       82
56
#define EISDIR    83
57
#define ENOENT    84
58
#define EOVERFLOW 85
8687 turbocat 59
 
8787 turbocat 60
#endif // _ERRNO_H_