+++ /dev/null
-/*\r
- * Copyright (c) 2001-2004 Swedish Institute of Computer Science.\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without modification,\r
- * are permitted provided that the following conditions are met:\r
- *\r
- * 1. Redistributions of source code must retain the above copyright notice,\r
- * this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright notice,\r
- * this list of conditions and the following disclaimer in the documentation\r
- * and/or other materials provided with the distribution.\r
- * 3. The name of the author may not be used to endorse or promote products\r
- * derived from this software without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED\r
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT\r
- * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\r
- * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING\r
- * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY\r
- * OF SUCH DAMAGE.\r
- *\r
- * This file is part of the lwIP TCP/IP stack.\r
- *\r
- * Author: Adam Dunkels <adam@sics.se>\r
- *\r
- */\r
-#ifndef __LWIP_ARCH_H__\r
-#define __LWIP_ARCH_H__\r
-\r
-#ifndef LITTLE_ENDIAN\r
-#define LITTLE_ENDIAN 1234\r
-#endif\r
-\r
-#ifndef BIG_ENDIAN\r
-#define BIG_ENDIAN 4321\r
-#endif\r
-\r
-#include "arch/cc.h"\r
-\r
-#ifdef __cplusplus\r
-extern "C" {\r
-#endif\r
-\r
-#ifndef PACK_STRUCT_BEGIN\r
-#define PACK_STRUCT_BEGIN\r
-#endif /* PACK_STRUCT_BEGIN */\r
-\r
-#ifndef PACK_STRUCT_END\r
-#define PACK_STRUCT_END\r
-#endif /* PACK_STRUCT_END */\r
-\r
-#ifndef PACK_STRUCT_FIELD\r
-#define PACK_STRUCT_FIELD(x) x\r
-#endif /* PACK_STRUCT_FIELD */\r
-\r
-\r
-#ifndef LWIP_UNUSED_ARG\r
-#define LWIP_UNUSED_ARG(x) (void)x\r
-#endif /* LWIP_UNUSED_ARG */\r
-\r
-\r
-#ifdef LWIP_PROVIDE_ERRNO\r
-\r
-#define EPERM 1 /* Operation not permitted */\r
-#define ENOENT 2 /* No such file or directory */\r
-#define ESRCH 3 /* No such process */\r
-#define EINTR 4 /* Interrupted system call */\r
-#define EIO 5 /* I/O error */\r
-#define ENXIO 6 /* No such device or address */\r
-#define E2BIG 7 /* Arg list too long */\r
-#define ENOEXEC 8 /* Exec format error */\r
-#define EBADF 9 /* Bad file number */\r
-#define ECHILD 10 /* No child processes */\r
-#define EAGAIN 11 /* Try again */\r
-#define ENOMEM 12 /* Out of memory */\r
-#define EACCES 13 /* Permission denied */\r
-#define EFAULT 14 /* Bad address */\r
-#define ENOTBLK 15 /* Block device required */\r
-#define EBUSY 16 /* Device or resource busy */\r
-#define EEXIST 17 /* File exists */\r
-#define EXDEV 18 /* Cross-device link */\r
-#define ENODEV 19 /* No such device */\r
-#define ENOTDIR 20 /* Not a directory */\r
-#define EISDIR 21 /* Is a directory */\r
-#define EINVAL 22 /* Invalid argument */\r
-#define ENFILE 23 /* File table overflow */\r
-#define EMFILE 24 /* Too many open files */\r
-#define ENOTTY 25 /* Not a typewriter */\r
-#define ETXTBSY 26 /* Text file busy */\r
-#define EFBIG 27 /* File too large */\r
-#define ENOSPC 28 /* No space left on device */\r
-#define ESPIPE 29 /* Illegal seek */\r
-#define EROFS 30 /* Read-only file system */\r
-#define EMLINK 31 /* Too many links */\r
-#define EPIPE 32 /* Broken pipe */\r
-#define EDOM 33 /* Math argument out of domain of func */\r
-#define ERANGE 34 /* Math result not representable */\r
-#define EDEADLK 35 /* Resource deadlock would occur */\r
-#define ENAMETOOLONG 36 /* File name too long */\r
-#define ENOLCK 37 /* No record locks available */\r
-#define ENOSYS 38 /* Function not implemented */\r
-#define ENOTEMPTY 39 /* Directory not empty */\r
-#define ELOOP 40 /* Too many symbolic links encountered */\r
-#define EWOULDBLOCK EAGAIN /* Operation would block */\r
-#define ENOMSG 42 /* No message of desired type */\r
-#define EIDRM 43 /* Identifier removed */\r
-#define ECHRNG 44 /* Channel number out of range */\r
-#define EL2NSYNC 45 /* Level 2 not synchronized */\r
-#define EL3HLT 46 /* Level 3 halted */\r
-#define EL3RST 47 /* Level 3 reset */\r
-#define ELNRNG 48 /* Link number out of range */\r
-#define EUNATCH 49 /* Protocol driver not attached */\r
-#define ENOCSI 50 /* No CSI structure available */\r
-#define EL2HLT 51 /* Level 2 halted */\r
-#define EBADE 52 /* Invalid exchange */\r
-#define EBADR 53 /* Invalid request descriptor */\r
-#define EXFULL 54 /* Exchange full */\r
-#define ENOANO 55 /* No anode */\r
-#define EBADRQC 56 /* Invalid request code */\r
-#define EBADSLT 57 /* Invalid slot */\r
-\r
-#define EDEADLOCK EDEADLK\r
-\r
-#define EBFONT 59 /* Bad font file format */\r
-#define ENOSTR 60 /* Device not a stream */\r
-#define ENODATA 61 /* No data available */\r
-#define ETIME 62 /* Timer expired */\r
-#define ENOSR 63 /* Out of streams resources */\r
-#define ENONET 64 /* Machine is not on the network */\r
-#define ENOPKG 65 /* Package not installed */\r
-#define EREMOTE 66 /* Object is remote */\r
-#define ENOLINK 67 /* Link has been severed */\r
-#define EADV 68 /* Advertise error */\r
-#define ESRMNT 69 /* Srmount error */\r
-#define ECOMM 70 /* Communication error on send */\r
-#define EPROTO 71 /* Protocol error */\r
-#define EMULTIHOP 72 /* Multihop attempted */\r
-#define EDOTDOT 73 /* RFS specific error */\r
-#define EBADMSG 74 /* Not a data message */\r
-#define EOVERFLOW 75 /* Value too large for defined data type */\r
-#define ENOTUNIQ 76 /* Name not unique on network */\r
-#define EBADFD 77 /* File descriptor in bad state */\r
-#define EREMCHG 78 /* Remote address changed */\r
-#define ELIBACC 79 /* Can not access a needed shared library */\r
-#define ELIBBAD 80 /* Accessing a corrupted shared library */\r
-#define ELIBSCN 81 /* .lib section in a.out corrupted */\r
-#define ELIBMAX 82 /* Attempting to link in too many shared libraries */\r
-#define ELIBEXEC 83 /* Cannot exec a shared library directly */\r
-#define EILSEQ 84 /* Illegal byte sequence */\r
-#define ERESTART 85 /* Interrupted system call should be restarted */\r
-#define ESTRPIPE 86 /* Streams pipe error */\r
-#define EUSERS 87 /* Too many users */\r
-#define ENOTSOCK 88 /* Socket operation on non-socket */\r
-#define EDESTADDRREQ 89 /* Destination address required */\r
-#define EMSGSIZE 90 /* Message too long */\r
-#define EPROTOTYPE 91 /* Protocol wrong type for socket */\r
-#define ENOPROTOOPT 92 /* Protocol not available */\r
-#define EPROTONOSUPPORT 93 /* Protocol not supported */\r
-#define ESOCKTNOSUPPORT 94 /* Socket type not supported */\r
-#define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */\r
-#define EPFNOSUPPORT 96 /* Protocol family not supported */\r
-#define EAFNOSUPPORT 97 /* Address family not supported by protocol */\r
-#define EADDRINUSE 98 /* Address already in use */\r
-#define EADDRNOTAVAIL 99 /* Cannot assign requested address */\r
-#define ENETDOWN 100 /* Network is down */\r
-#define ENETUNREACH 101 /* Network is unreachable */\r
-#define ENETRESET 102 /* Network dropped connection because of reset */\r
-#define ECONNABORTED 103 /* Software caused connection abort */\r
-#define ECONNRESET 104 /* Connection reset by peer */\r
-#define ENOBUFS 105 /* No buffer space available */\r
-#define EISCONN 106 /* Transport endpoint is already connected */\r
-#define ENOTCONN 107 /* Transport endpoint is not connected */\r
-#define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */\r
-#define ETOOMANYREFS 109 /* Too many references: cannot splice */\r
-#define ETIMEDOUT 110 /* Connection timed out */\r
-#define ECONNREFUSED 111 /* Connection refused */\r
-#define EHOSTDOWN 112 /* Host is down */\r
-#define EHOSTUNREACH 113 /* No route to host */\r
-#define EALREADY 114 /* Operation already in progress */\r
-#define EINPROGRESS 115 /* Operation now in progress */\r
-#define ESTALE 116 /* Stale NFS file handle */\r
-#define EUCLEAN 117 /* Structure needs cleaning */\r
-#define ENOTNAM 118 /* Not a XENIX named type file */\r
-#define ENAVAIL 119 /* No XENIX semaphores available */\r
-#define EISNAM 120 /* Is a named type file */\r
-#define EREMOTEIO 121 /* Remote I/O error */\r
-#define EDQUOT 122 /* Quota exceeded */\r
-\r
-#define ENOMEDIUM 123 /* No medium found */\r
-#define EMEDIUMTYPE 124 /* Wrong medium type */\r
-\r
-\r
-#define ENSROK 0 /* DNS server returned answer with no data */\r
-#define ENSRNODATA 160 /* DNS server returned answer with no data */\r
-#define ENSRFORMERR 161 /* DNS server claims query was misformatted */\r
-#define ENSRSERVFAIL 162 /* DNS server returned general failure */\r
-#define ENSRNOTFOUND 163 /* Domain name not found */\r
-#define ENSRNOTIMP 164 /* DNS server does not implement requested operation */\r
-#define ENSRREFUSED 165 /* DNS server refused query */\r
-#define ENSRBADQUERY 166 /* Misformatted DNS query */\r
-#define ENSRBADNAME 167 /* Misformatted domain name */\r
-#define ENSRBADFAMILY 168 /* Unsupported address family */\r
-#define ENSRBADRESP 169 /* Misformatted DNS reply */\r
-#define ENSRCONNREFUSED 170 /* Could not contact DNS servers */\r
-#define ENSRTIMEOUT 171 /* Timeout while contacting DNS servers */\r
-#define ENSROF 172 /* End of file */\r
-#define ENSRFILE 173 /* Error reading file */\r
-#define ENSRNOMEM 174 /* Out of memory */\r
-#define ENSRDESTRUCTION 175 /* Application terminated lookup */\r
-#define ENSRQUERYDOMAINTOOLONG 176 /* Domain name is too long */\r
-#define ENSRCNAMELOOP 177 /* Domain name is too long */\r
-\r
-#ifndef errno\r
-extern int errno;\r
-#endif\r
-\r
-#endif /* LWIP_PROVIDE_ERRNO */\r
-\r
-#ifdef __cplusplus\r
-}\r
-#endif\r
-\r
-#endif /* __LWIP_ARCH_H__ */\r