/[lwip]/lwip/src/include/lwip/arch.h
ViewVC logotype

Diff of /lwip/src/include/lwip/arch.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by likewise, Wed Jan 8 10:09:42 2003 UTC revision 1.3 by davidhaas, Thu Feb 6 22:18:56 2003 UTC
# Line 55  Line 55 
55  #define PACK_STRUCT_FIELD(x) x  #define PACK_STRUCT_FIELD(x) x
56  #endif /* PACK_STRUCT_FIELD */  #endif /* PACK_STRUCT_FIELD */
57    
58    #ifndef FD_SET
59      #undef  FD_SETSIZE
60      #define FD_SETSIZE    16
61      #define FD_SET(n, p)  ((p)->fd_bits[(n)/8] |=  (1 << ((n) & 7)))
62      #define FD_CLR(n, p)  ((p)->fd_bits[(n)/8] &= ~(1 << ((n) & 7)))
63      #define FD_ISSET(n,p) ((p)->fd_bits[(n)/8] &   (1 << ((n) & 7)))
64      #define FD_ZERO(p)    memset((void*)(p),0,sizeof(*(p)))
65    
66      typedef struct fd_set {
67              unsigned char fd_bits [(FD_SETSIZE+7)/8];
68            } fd_set;
69    
70      struct timeval {
71              long    tv_sec;         /* seconds */
72              long    tv_usec;        /* and microseconds */
73      };
74    
75    #endif
76    
77    
78    #ifdef LWIP_PROVIDE_ERRNO
79    
80    #define EPERM            1      /* Operation not permitted */
81    #define ENOENT           2      /* No such file or directory */
82    #define ESRCH            3      /* No such process */
83    #define EINTR            4      /* Interrupted system call */
84    #define EIO              5      /* I/O error */
85    #define ENXIO            6      /* No such device or address */
86    #define E2BIG            7      /* Arg list too long */
87    #define ENOEXEC          8      /* Exec format error */
88    #define EBADF            9      /* Bad file number */
89    #define ECHILD          10      /* No child processes */
90    #define EAGAIN          11      /* Try again */
91    #define ENOMEM          12      /* Out of memory */
92    #define EACCES          13      /* Permission denied */
93    #define EFAULT          14      /* Bad address */
94    #define ENOTBLK         15      /* Block device required */
95    #define EBUSY           16      /* Device or resource busy */
96    #define EEXIST          17      /* File exists */
97    #define EXDEV           18      /* Cross-device link */
98    #define ENODEV          19      /* No such device */
99    #define ENOTDIR         20      /* Not a directory */
100    #define EISDIR          21      /* Is a directory */
101    #define EINVAL          22      /* Invalid argument */
102    #define ENFILE          23      /* File table overflow */
103    #define EMFILE          24      /* Too many open files */
104    #define ENOTTY          25      /* Not a typewriter */
105    #define ETXTBSY         26      /* Text file busy */
106    #define EFBIG           27      /* File too large */
107    #define ENOSPC          28      /* No space left on device */
108    #define ESPIPE          29      /* Illegal seek */
109    #define EROFS           30      /* Read-only file system */
110    #define EMLINK          31      /* Too many links */
111    #define EPIPE           32      /* Broken pipe */
112    #define EDOM            33      /* Math argument out of domain of func */
113    #define ERANGE          34      /* Math result not representable */
114    #define EDEADLK         35      /* Resource deadlock would occur */
115    #define ENAMETOOLONG    36      /* File name too long */
116    #define ENOLCK          37      /* No record locks available */
117    #define ENOSYS          38      /* Function not implemented */
118    #define ENOTEMPTY       39      /* Directory not empty */
119    #define ELOOP           40      /* Too many symbolic links encountered */
120    #define EWOULDBLOCK     EAGAIN  /* Operation would block */
121    #define ENOMSG          42      /* No message of desired type */
122    #define EIDRM           43      /* Identifier removed */
123    #define ECHRNG          44      /* Channel number out of range */
124    #define EL2NSYNC        45      /* Level 2 not synchronized */
125    #define EL3HLT          46      /* Level 3 halted */
126    #define EL3RST          47      /* Level 3 reset */
127    #define ELNRNG          48      /* Link number out of range */
128    #define EUNATCH         49      /* Protocol driver not attached */
129    #define ENOCSI          50      /* No CSI structure available */
130    #define EL2HLT          51      /* Level 2 halted */
131    #define EBADE           52      /* Invalid exchange */
132    #define EBADR           53      /* Invalid request descriptor */
133    #define EXFULL          54      /* Exchange full */
134    #define ENOANO          55      /* No anode */
135    #define EBADRQC         56      /* Invalid request code */
136    #define EBADSLT         57      /* Invalid slot */
137    
138    #define EDEADLOCK       EDEADLK
139    
140    #define EBFONT          59      /* Bad font file format */
141    #define ENOSTR          60      /* Device not a stream */
142    #define ENODATA         61      /* No data available */
143    #define ETIME           62      /* Timer expired */
144    #define ENOSR           63      /* Out of streams resources */
145    #define ENONET          64      /* Machine is not on the network */
146    #define ENOPKG          65      /* Package not installed */
147    #define EREMOTE         66      /* Object is remote */
148    #define ENOLINK         67      /* Link has been severed */
149    #define EADV            68      /* Advertise error */
150    #define ESRMNT          69      /* Srmount error */
151    #define ECOMM           70      /* Communication error on send */
152    #define EPROTO          71      /* Protocol error */
153    #define EMULTIHOP       72      /* Multihop attempted */
154    #define EDOTDOT         73      /* RFS specific error */
155    #define EBADMSG         74      /* Not a data message */
156    #define EOVERFLOW       75      /* Value too large for defined data type */
157    #define ENOTUNIQ        76      /* Name not unique on network */
158    #define EBADFD          77      /* File descriptor in bad state */
159    #define EREMCHG         78      /* Remote address changed */
160    #define ELIBACC         79      /* Can not access a needed shared library */
161    #define ELIBBAD         80      /* Accessing a corrupted shared library */
162    #define ELIBSCN         81      /* .lib section in a.out corrupted */
163    #define ELIBMAX         82      /* Attempting to link in too many shared libraries */
164    #define ELIBEXEC        83      /* Cannot exec a shared library directly */
165    #define EILSEQ          84      /* Illegal byte sequence */
166    #define ERESTART        85      /* Interrupted system call should be restarted */
167    #define ESTRPIPE        86      /* Streams pipe error */
168    #define EUSERS          87      /* Too many users */
169    #define ENOTSOCK        88      /* Socket operation on non-socket */
170    #define EDESTADDRREQ    89      /* Destination address required */
171    #define EMSGSIZE        90      /* Message too long */
172    #define EPROTOTYPE      91      /* Protocol wrong type for socket */
173    #define ENOPROTOOPT     92      /* Protocol not available */
174    #define EPROTONOSUPPORT 93      /* Protocol not supported */
175    #define ESOCKTNOSUPPORT 94      /* Socket type not supported */
176    #define EOPNOTSUPP      95      /* Operation not supported on transport endpoint */
177    #define EPFNOSUPPORT    96      /* Protocol family not supported */
178    #define EAFNOSUPPORT    97      /* Address family not supported by protocol */
179    #define EADDRINUSE      98      /* Address already in use */
180    #define EADDRNOTAVAIL   99      /* Cannot assign requested address */
181    #define ENETDOWN        100     /* Network is down */
182    #define ENETUNREACH     101     /* Network is unreachable */
183    #define ENETRESET       102     /* Network dropped connection because of reset */
184    #define ECONNABORTED    103     /* Software caused connection abort */
185    #define ECONNRESET      104     /* Connection reset by peer */
186    #define ENOBUFS         105     /* No buffer space available */
187    #define EISCONN         106     /* Transport endpoint is already connected */
188    #define ENOTCONN        107     /* Transport endpoint is not connected */
189    #define ESHUTDOWN       108     /* Cannot send after transport endpoint shutdown */
190    #define ETOOMANYREFS    109     /* Too many references: cannot splice */
191    #define ETIMEDOUT       110     /* Connection timed out */
192    #define ECONNREFUSED    111     /* Connection refused */
193    #define EHOSTDOWN       112     /* Host is down */
194    #define EHOSTUNREACH    113     /* No route to host */
195    #define EALREADY        114     /* Operation already in progress */
196    #define EINPROGRESS     115     /* Operation now in progress */
197    #define ESTALE          116     /* Stale NFS file handle */
198    #define EUCLEAN         117     /* Structure needs cleaning */
199    #define ENOTNAM         118     /* Not a XENIX named type file */
200    #define ENAVAIL         119     /* No XENIX semaphores available */
201    #define EISNAM          120     /* Is a named type file */
202    #define EREMOTEIO       121     /* Remote I/O error */
203    #define EDQUOT          122     /* Quota exceeded */
204    
205    #define ENOMEDIUM       123     /* No medium found */
206    #define EMEDIUMTYPE     124     /* Wrong medium type */
207    
208    extern int errno;
209    
210    #endif /* LWIP_PROVIDE_ERRNO */
211    
212  #endif /* __LWIP_ARCH_H__ */  #endif /* __LWIP_ARCH_H__ */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26