source: trunk/src/emx/include/sys/errno.h@ 339

Last change on this file since 339 was 236, checked in by zap, 23 years ago

See ChangeLog.

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