~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to extras/mini-os/include/errno.h

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _ERRNO_H
 
2
#define _ERRNO_H
 
3
 
 
4
#include <mini-os/errno-base.h>
 
5
 
 
6
typedef int error_t;
 
7
 
 
8
#define EDEADLK         35      /* Resource deadlock would occur */
 
9
#define ENAMETOOLONG    36      /* File name too long */
 
10
#define ENOLCK          37      /* No record locks available */
 
11
#define ENOSYS          38      /* Function not implemented */
 
12
#define ENOTEMPTY       39      /* Directory not empty */
 
13
#define ELOOP           40      /* Too many symbolic links encountered */
 
14
#define EWOULDBLOCK     EAGAIN  /* Operation would block */
 
15
#define ENOMSG          42      /* No message of desired type */
 
16
#define EIDRM           43      /* Identifier removed */
 
17
#define ECHRNG          44      /* Channel number out of range */
 
18
#define EL2NSYNC        45      /* Level 2 not synchronized */
 
19
#define EL3HLT          46      /* Level 3 halted */
 
20
#define EL3RST          47      /* Level 3 reset */
 
21
#define ELNRNG          48      /* Link number out of range */
 
22
#define EUNATCH         49      /* Protocol driver not attached */
 
23
#define ENOCSI          50      /* No CSI structure available */
 
24
#define EL2HLT          51      /* Level 2 halted */
 
25
#define EBADE           52      /* Invalid exchange */
 
26
#define EBADR           53      /* Invalid request descriptor */
 
27
#define EXFULL          54      /* Exchange full */
 
28
#define ENOANO          55      /* No anode */
 
29
#define EBADRQC         56      /* Invalid request code */
 
30
#define EBADSLT         57      /* Invalid slot */
 
31
 
 
32
#define EDEADLOCK       EDEADLK
 
33
 
 
34
#define EBFONT          59      /* Bad font file format */
 
35
#define ENOSTR          60      /* Device not a stream */
 
36
#define ENODATA         61      /* No data available */
 
37
#define ETIME           62      /* Timer expired */
 
38
#define ENOSR           63      /* Out of streams resources */
 
39
#define ENONET          64      /* Machine is not on the network */
 
40
#define ENOPKG          65      /* Package not installed */
 
41
#define EREMOTE         66      /* Object is remote */
 
42
#define ENOLINK         67      /* Link has been severed */
 
43
#define EADV            68      /* Advertise error */
 
44
#define ESRMNT          69      /* Srmount error */
 
45
#define ECOMM           70      /* Communication error on send */
 
46
#define EPROTO          71      /* Protocol error */
 
47
#define EMULTIHOP       72      /* Multihop attempted */
 
48
#define EDOTDOT         73      /* RFS specific error */
 
49
#define EBADMSG         74      /* Not a data message */
 
50
#define EOVERFLOW       75      /* Value too large for defined data type */
 
51
#define ENOTUNIQ        76      /* Name not unique on network */
 
52
#define EBADFD          77      /* File descriptor in bad state */
 
53
#define EREMCHG         78      /* Remote address changed */
 
54
#define ELIBACC         79      /* Can not access a needed shared library */
 
55
#define ELIBBAD         80      /* Accessing a corrupted shared library */
 
56
#define ELIBSCN         81      /* .lib section in a.out corrupted */
 
57
#define ELIBMAX         82      /* Attempting to link in too many shared libraries */
 
58
#define ELIBEXEC        83      /* Cannot exec a shared library directly */
 
59
#define EILSEQ          84      /* Illegal byte sequence */
 
60
#define ERESTART        85      /* Interrupted system call should be restarted */
 
61
#define ESTRPIPE        86      /* Streams pipe error */
 
62
#define EUSERS          87      /* Too many users */
 
63
#define ENOTSOCK        88      /* Socket operation on non-socket */
 
64
#define EDESTADDRREQ    89      /* Destination address required */
 
65
#define EMSGSIZE        90      /* Message too long */
 
66
#define EPROTOTYPE      91      /* Protocol wrong type for socket */
 
67
#define ENOPROTOOPT     92      /* Protocol not available */
 
68
#define EPROTONOSUPPORT 93      /* Protocol not supported */
 
69
#define ESOCKTNOSUPPORT 94      /* Socket type not supported */
 
70
#define EOPNOTSUPP      95      /* Operation not supported on transport endpoint */
 
71
#define ENOTSUP EOPNOTSUPP
 
72
#define EPFNOSUPPORT    96      /* Protocol family not supported */
 
73
#define EAFNOSUPPORT    97      /* Address family not supported by protocol */
 
74
#define EADDRINUSE      98      /* Address already in use */
 
75
#define EADDRNOTAVAIL   99      /* Cannot assign requested address */
 
76
#define ENETDOWN        100     /* Network is down */
 
77
#define ENETUNREACH     101     /* Network is unreachable */
 
78
#define ENETRESET       102     /* Network dropped connection because of reset */
 
79
#define ECONNABORTED    103     /* Software caused connection abort */
 
80
#define ECONNRESET      104     /* Connection reset by peer */
 
81
#define ENOBUFS         105     /* No buffer space available */
 
82
#define EISCONN         106     /* Transport endpoint is already connected */
 
83
#define ENOTCONN        107     /* Transport endpoint is not connected */
 
84
#define ESHUTDOWN       108     /* Cannot send after transport endpoint shutdown */
 
85
#define ETOOMANYREFS    109     /* Too many references: cannot splice */
 
86
#define ETIMEDOUT       110     /* Connection timed out */
 
87
#define ECONNREFUSED    111     /* Connection refused */
 
88
#define EHOSTDOWN       112     /* Host is down */
 
89
#define EHOSTUNREACH    113     /* No route to host */
 
90
#define EALREADY        114     /* Operation already in progress */
 
91
#define EINPROGRESS     115     /* Operation now in progress */
 
92
#define ESTALE          116     /* Stale NFS file handle */
 
93
#define EUCLEAN         117     /* Structure needs cleaning */
 
94
#define ENOTNAM         118     /* Not a XENIX named type file */
 
95
#define ENAVAIL         119     /* No XENIX semaphores available */
 
96
#define EISNAM          120     /* Is a named type file */
 
97
#define EREMOTEIO       121     /* Remote I/O error */
 
98
#define EDQUOT          122     /* Quota exceeded */
 
99
 
 
100
#define ENOMEDIUM       123     /* No medium found */
 
101
#define EMEDIUMTYPE     124     /* Wrong medium type */
 
102
#define ECANCELED       125     /* Operation Canceled */
 
103
#define ENOKEY          126     /* Required key not available */
 
104
#define EKEYEXPIRED     127     /* Key has expired */
 
105
#define EKEYREVOKED     128     /* Key has been revoked */
 
106
#define EKEYREJECTED    129     /* Key was rejected by service */
 
107
 
 
108
/* for robust mutexes */
 
109
#define EOWNERDEAD      130     /* Owner died */
 
110
#define ENOTRECOVERABLE 131     /* State not recoverable */
 
111
 
 
112
 
 
113
#define EFTYPE          132     /* Inappropriate file type or format */
 
114
 
 
115
#ifdef HAVE_LIBC
 
116
#include <mini-os/sched.h>
 
117
extern int errno;
 
118
#define ERRNO
 
119
#define errno (get_current()->reent._errno)
 
120
#endif
 
121
 
 
122
#endif