source: vendor/emx/current/include/sys/errno.h

Last change on this file was 18, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 5.2 KB
Line 
1/* sys/errno.h (emx+gcc) */
2
3#ifndef _SYS_ERRNO_H
4#define _SYS_ERRNO_H
5
6#if defined (__cplusplus)
7extern "C" {
8#endif
9
10#if !defined (__ASSEMBLER__) && !defined (_ERRNO)
11#define _ERRNO
12#if defined (__MT__) || defined (__ST_MT_ERRNO__)
13extern int *_errno (void);
14#define errno (*_errno ())
15#else
16extern int errno;
17#endif
18#endif
19
20#define EPERM 1 /* Operation not permitted */
21#define ENOENT 2 /* No such file or directory */
22#define ESRCH 3 /* No such process */
23#define EINTR 4 /* Interrupted system call */
24#define EIO 5 /* I/O error */
25#define ENXIO 6 /* No such device or address */
26#define E2BIG 7 /* Arguments or environment too big */
27#define ENOEXEC 8 /* Invalid executable file format */
28#define EBADF 9 /* Bad file number */
29#define ECHILD 10 /* No child processes */
30#define EAGAIN 11 /* Resource temporarily unavailable */
31#define ENOMEM 12 /* Not enough memory */
32#define EACCES 13 /* Permission denied */
33#define EFAULT 14 /* Bad address */
34#define ENOLCK 15 /* No locks available */
35#define EBUSY 16 /* Resource busy */
36#define EEXIST 17 /* File exists */
37#define EXDEV 18 /* Cross-device link */
38#define ENODEV 19 /* No such device */
39#define ENOTDIR 20 /* Not a directory */
40#define EISDIR 21 /* Is a directory */
41#define EINVAL 22 /* Invalid argument */
42#define ENFILE 23 /* Too many open files in system */
43#define EMFILE 24 /* Too many open files */
44#define ENOTTY 25 /* Inappropriate ioctl */
45#define EDEADLK 26 /* Resource deadlock avoided */
46#define EFBIG 27 /* File too large */
47#define ENOSPC 28 /* Disk full */
48#define ESPIPE 29 /* Invalid seek */
49#define EROFS 30 /* Read-only file system */
50#define EMLINK 31 /* Too many links */
51#define EPIPE 32 /* Broken pipe */
52#define EDOM 33 /* Domain error */
53#define ERANGE 34 /* Result too large */
54#define ENOTEMPTY 35 /* Directory not empty */
55#define EINPROGRESS 36 /* Operation now in progress */
56#define ENOSYS 37 /* Function not implemented */
57#define ENAMETOOLONG 38 /* File name too long */
58#define EDESTADDRREQ 39 /* Destination address required */
59#define EMSGSIZE 40 /* Message too long */
60#define EPROTOTYPE 41 /* Protocol wrong type for socket */
61#define ENOPROTOOPT 42 /* Option not supported by protocol */
62#define EPROTONOSUPPORT 43 /* Protocol not supported */
63#define ESOCKTNOSUPPORT 44 /* Socket type not supported */
64#define EOPNOTSUPP 45 /* Operation not supported on socket */
65#define EPFNOSUPPORT 46 /* Protocol family not supported */
66#define EAFNOSUPPORT 47 /* Address family not supported by protocol family */
67#define EADDRINUSE 48 /* Address already in use */
68#define EADDRNOTAVAIL 49 /* Can't assigned requested address */
69#define ENETDOWN 50 /* Network is down */
70#define ENETUNREACH 51 /* Network is unreachable */
71#define ENETRESET 52 /* Network dropped connection on reset */
72#define ECONNABORTED 53 /* Software caused connection abort */
73#define ECONNRESET 54 /* Connection reset by peer */
74#define ENOBUFS 55 /* No buffer space available */
75#define EISCONN 56 /* Socket is already connected */
76#define ENOTCONN 57 /* Socket is not connected */
77#define ESHUTDOWN 58 /* Can't send after socket shutdown */
78#define ETOOMANYREFS 59 /* Too many references: can't splice */
79#define ETIMEDOUT 60 /* Connection timed out */
80#define ECONNREFUSED 61 /* Connection refused */
81#define ELOOP 62 /* Too many levels of symbolic links */
82#define ENOTSOCK 63 /* Socket operation on non-socket */
83#define EHOSTDOWN 64 /* Host is down */
84#define EHOSTUNREACH 65 /* No route to host */
85#define EALREADY 66 /* Operation already in progress */
86
87#define EWOULDBLOCK EAGAIN
88
89#if (!defined (__STRICT_ANSI__) && !defined (_POSIX_SOURCE)) \
90 || defined (_WITH_UNDERSCORE)
91
92#if !defined (__ASSEMBLER__)
93int *_errno (void);
94#endif
95
96#endif
97
98
99#if defined (__cplusplus)
100}
101#endif
102
103#endif /* not _SYS_ERRNO_H */
Note: See TracBrowser for help on using the repository browser.