Subversion Repositories shark

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
/**
22
 ------------
23
 CVS :        $Id: errno.h,v 1.1.1.1 2002-03-29 14:12:50 pj Exp $
24
 
25
 File:        $File$
26
 Revision:    $Revision: 1.1.1.1 $
27
 Last update: $Date: 2002-03-29 14:12:50 $
28
 ------------
29
 
30
 errno.h
31
 
32
**/
33
 
34
/*
35
 * Copyright (C) 2000 Paolo Gai
36
 *
37
 * This program is free software; you can redistribute it and/or modify
38
 * it under the terms of the GNU General Public License as published by
39
 * the Free Software Foundation; either version 2 of the License, or
40
 * (at your option) any later version.
41
 *
42
 * This program is distributed in the hope that it will be useful,
43
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
44
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
45
 * GNU General Public License for more details.
46
 *
47
 * You should have received a copy of the GNU General Public License
48
 * along with this program; if not, write to the Free Software
49
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
50
 *
51
 */
52
#ifndef __ERRNO_H__
53
#define __ERRNO_H__
54
 
55
#include <bits/errno.h>
56
 
57
/* this is the maximun errno offset used by this file */
58
#define LAST_STDERRNO 125
59
 
60
/* This file defines the `errno' constants.  */
61
 
62
#define ENOTSUP EOPNOTSUPP
63
#define ECANCELED        125
64
 
65
#define EPERM             1  /* Operation not permitted */
66
#define ENOENT            2  /* No such file or directory */
67
#define ESRCH             3  /* No such process */
68
#define EINTR             4  /* Interrupted system call */
69
#define EIO               5  /* I/O error */
70
#define ENXIO             6  /* No such device or address */
71
#define E2BIG             7  /* Arg list too long */
72
#define ENOEXEC           8  /* Exec format error */
73
#define EBADF             9  /* Bad file number */
74
#define ECHILD           10  /* No child processes */
75
#define EAGAIN           11  /* Try again */
76
#define ENOMEM           12  /* Out of memory */
77
#define EACCES           13  /* Permission denied */
78
#define EFAULT           14  /* Bad address */
79
#define ENOTBLK          15  /* Block device required */
80
#define EBUSY            16  /* Device or resource busy */
81
#define EEXIST           17  /* File exists */
82
#define EXDEV            18  /* Cross-device link */
83
#define ENODEV           19  /* No such device */
84
#define ENOTDIR          20  /* Not a directory */
85
#define EISDIR           21  /* Is a directory */
86
#define EINVAL           22  /* Invalid argument */
87
#define ENFILE           23  /* File table overflow */
88
#define EMFILE           24  /* Too many open files */
89
#define ENOTTY           25  /* Not a typewriter */
90
#define ETXTBSY          26  /* Text file busy */
91
#define EFBIG            27  /* File too large */
92
#define ENOSPC           28  /* No space left on device */
93
#define ESPIPE           29  /* Illegal seek */
94
#define EROFS            30  /* Read-only file system */
95
#define EMLINK           31  /* Too many links */
96
#define EPIPE            32  /* Broken pipe */
97
#define EDEADLK          35  /* Resource deadlock would occur */
98
#define ENAMETOOLONG     36  /* File name too long */
99
#define ENOLCK           37  /* No record locks available */
100
#define ENOSYS           38  /* Function not implemented */
101
#define ENOTEMPTY        39  /* Directory not empty */
102
#define ELOOP            40  /* Too many symbolic links encountered */
103
#define EWOULDBLOCK     EAGAIN            /* Operation would block */
104
#define ENOMSG           42  /* No message of desired type */
105
#define EIDRM            43  /* Identifier removed */
106
#define ECHRNG           44  /* Channel number out of range */
107
#define EL2NSYNC         45  /* Level 2 not synchronized */
108
#define EL3HLT           46  /* Level 3 halted */
109
#define EL3RST           47  /* Level 3 reset */
110
#define ELNRNG           48  /* Link number out of range */
111
#define EUNATCH          49  /* Protocol driver not attached */
112
#define ENOCSI           50  /* No CSI structure available */
113
#define EL2HLT           51  /* Level 2 halted */
114
#define EBADE            52  /* Invalid exchange */
115
#define EBADR            53  /* Invalid request descriptor */
116
#define EXFULL           54  /* Exchange full */
117
#define ENOANO           55  /* No anode */
118
#define EBADRQC          56  /* Invalid request code */
119
#define EBADSLT          57  /* Invalid slot */
120
#define EDEADLOCK       EDEADLK
121
#define EBFONT           59  /* Bad font file format */
122
#define ENOSTR           60  /* Device not a stream */
123
#define ENODATA          61  /* No data available */
124
#define ETIME            62  /* Timer expired */
125
#define ENOSR            63  /* Out of streams resources */
126
#define ENONET           64  /* Machine is not on the network */
127
#define ENOPKG           65  /* Package not installed */
128
#define EREMOTE          66  /* Object is remote */
129
#define ENOLINK          67  /* Link has been severed */
130
#define EADV             68  /* Advertise error */
131
#define ESRMNT           69  /* Srmount error */
132
#define ECOMM            70  /* Communication error on send */
133
#define EPROTO           71  /* Protocol error */
134
#define EMULTIHOP        72  /* Multihop attempted */
135
#define EDOTDOT          73  /* RFS specific error */
136
#define EBADMSG          74  /* Not a data message */
137
#define EOVERFLOW        75  /* Value too large for defined data type */
138
#define ENOTUNIQ         76  /* Name not unique on network */
139
#define EBADFD           77  /* File descriptor in bad state */
140
#define EREMCHG          78  /* Remote address changed */
141
#define ELIBACC          79  /* Can not access a needed shared library */
142
#define ELIBBAD          80  /* Accessing a corrupted shared library */
143
#define ELIBSCN          81  /* .lib section in a.out corrupted */
144
#define ELIBMAX          82  /* Attempting to link in too many shared libraries */
145
#define ELIBEXEC         83  /* Cannot exec a shared library directly */
146
#define ERESTART         85  /* Interrupted system call should be restarted */
147
#define ESTRPIPE         86  /* Streams pipe error */
148
#define EUSERS           87  /* Too many users */
149
#define ENOTSOCK         88  /* Socket operation on non-socket */
150
#define EDESTADDRREQ     89  /* Destination address required */
151
#define EMSGSIZE         90  /* Message too long */
152
#define EPROTOTYPE       91  /* Protocol wrong type for socket */
153
#define ENOPROTOOPT      92  /* Protocol not available */
154
#define EPROTONOSUPPORT  93  /* Protocol not supported */
155
#define ESOCKTNOSUPPORT  94  /* Socket type not supported */
156
#define EOPNOTSUPP       95  /* Operation not supported on transport endpoint */
157
#define EPFNOSUPPORT     96  /* Protocol family not supported */
158
#define EAFNOSUPPORT     97  /* Address family not supported by protocol */
159
#define EADDRINUSE       98  /* Address already in use */
160
#define EADDRNOTAVAIL    99  /* Cannot assign requested address */
161
#define ENETDOWN         100  /* Network is down */
162
#define ENETUNREACH      101  /* Network is unreachable */
163
#define ENETRESET        102  /* Network dropped connection because of reset */
164
#define ECONNABORTED     103  /* Software caused connection abort */
165
#define ECONNRESET       104  /* Connection reset by peer */
166
#define ENOBUFS          105  /* No buffer space available */
167
#define EISCONN          106  /* Transport endpoint is already connected */
168
#define ENOTCONN         107  /* Transport endpoint is not connected */
169
#define ESHUTDOWN        108  /* Cannot send after transport endpoint shutdown */
170
#define ETOOMANYREFS     109  /* Too many references: cannot splice */
171
#define ETIMEDOUT        110  /* Connection timed out */
172
#define ECONNREFUSED     111  /* Connection refused */
173
#define EHOSTDOWN        112  /* Host is down */
174
#define EHOSTUNREACH     113  /* No route to host */
175
#define EALREADY         114  /* Operation already in progress */
176
#define EINPROGRESS      115  /* Operation now in progress */
177
#define ESTALE           116  /* Stale NFS file handle */
178
#define EUCLEAN          117  /* Structure needs cleaning */
179
#define ENOTNAM          118  /* Not a XENIX named type file */
180
#define ENAVAIL          119  /* No XENIX semaphores available */
181
#define EISNAM           120  /* Is a named type file */
182
#define EREMOTEIO        121  /* Remote I/O error */
183
#define EDQUOT           122  /* Quota exceeded */
184
#define ENOMEDIUM        123  /* No medium found */
185
#define EMEDIUMTYPE      124  /* Wrong medium type */
186
 
187
#endif