Microchip® Advanced Software Framework

arch.h File Reference
#include "arch/cc.h"

Macros

#define BIG_ENDIAN   4321
 
#define E2BIG   7 /* Arg list too long */
 
#define EACCES   13 /* Permission denied */
 
#define EADDRINUSE   98 /* Address already in use */
 
#define EADDRNOTAVAIL   99 /* Cannot assign requested address */
 
#define EADV   68 /* Advertise error */
 
#define EAFNOSUPPORT   97 /* Address family not supported by protocol */
 
#define EAGAIN   11 /* Try again */
 
#define EALREADY   114 /* Operation already in progress */
 
#define EBADE   52 /* Invalid exchange */
 
#define EBADF   9 /* Bad file number */
 
#define EBADFD   77 /* File descriptor in bad state */
 
#define EBADMSG   74 /* Not a data message */
 
#define EBADR   53 /* Invalid request descriptor */
 
#define EBADRQC   56 /* Invalid request code */
 
#define EBADSLT   57 /* Invalid slot */
 
#define EBFONT   59 /* Bad font file format */
 
#define EBUSY   16 /* Device or resource busy */
 
#define ECHILD   10 /* No child processes */
 
#define ECHRNG   44 /* Channel number out of range */
 
#define ECOMM   70 /* Communication error on send */
 
#define ECONNABORTED   103 /* Software caused connection abort */
 
#define ECONNREFUSED   111 /* Connection refused */
 
#define ECONNRESET   104 /* Connection reset by peer */
 
#define EDEADLK   35 /* Resource deadlock would occur */
 
#define EDEADLOCK   EDEADLK
 
#define EDESTADDRREQ   89 /* Destination address required */
 
#define EDOM   33 /* Math argument out of domain of func */
 
#define EDOTDOT   73 /* RFS specific error */
 
#define EDQUOT   122 /* Quota exceeded */
 
#define EEXIST   17 /* File exists */
 
#define EFAULT   14 /* Bad address */
 
#define EFBIG   27 /* File too large */
 
#define EHOSTDOWN   112 /* Host is down */
 
#define EHOSTUNREACH   113 /* No route to host */
 
#define EIDRM   43 /* Identifier removed */
 
#define EILSEQ   84 /* Illegal byte sequence */
 
#define EINPROGRESS   115 /* Operation now in progress */
 
#define EINTR   4 /* Interrupted system call */
 
#define EINVAL   22 /* Invalid argument */
 
#define EIO   5 /* I/O error */
 
#define EISCONN   106 /* Transport endpoint is already connected */
 
#define EISDIR   21 /* Is a directory */
 
#define EISNAM   120 /* Is a named type file */
 
#define EL2HLT   51 /* Level 2 halted */
 
#define EL2NSYNC   45 /* Level 2 not synchronized */
 
#define EL3HLT   46 /* Level 3 halted */
 
#define EL3RST   47 /* Level 3 reset */
 
#define ELIBACC   79 /* Can not access a needed shared library */
 
#define ELIBBAD   80 /* Accessing a corrupted shared library */
 
#define ELIBEXEC   83 /* Cannot exec a shared library directly */
 
#define ELIBMAX   82 /* Attempting to link in too many shared libraries */
 
#define ELIBSCN   81 /* .lib section in a.out corrupted */
 
#define ELNRNG   48 /* Link number out of range */
 
#define ELOOP   40 /* Too many symbolic links encountered */
 
#define EMEDIUMTYPE   124 /* Wrong medium type */
 
#define EMFILE   24 /* Too many open files */
 
#define EMLINK   31 /* Too many links */
 
#define EMSGSIZE   90 /* Message too long */
 
#define EMULTIHOP   72 /* Multihop attempted */
 
#define ENAMETOOLONG   36 /* File name too long */
 
#define ENAVAIL   119 /* No XENIX semaphores available */
 
#define ENETDOWN   100 /* Network is down */
 
#define ENETRESET   102 /* Network dropped connection because of reset */
 
#define ENETUNREACH   101 /* Network is unreachable */
 
#define ENFILE   23 /* File table overflow */
 
#define ENOANO   55 /* No anode */
 
#define ENOBUFS   105 /* No buffer space available */
 
#define ENOCSI   50 /* No CSI structure available */
 
#define ENODATA   61 /* No data available */
 
#define ENODEV   19 /* No such device */
 
#define ENOENT   2 /* No such file or directory */
 
#define ENOEXEC   8 /* Exec format error */
 
#define ENOLCK   37 /* No record locks available */
 
#define ENOLINK   67 /* Link has been severed */
 
#define ENOMEDIUM   123 /* No medium found */
 
#define ENOMEM   12 /* Out of memory */
 
#define ENOMSG   42 /* No message of desired type */
 
#define ENONET   64 /* Machine is not on the network */
 
#define ENOPKG   65 /* Package not installed */
 
#define ENOPROTOOPT   92 /* Protocol not available */
 
#define ENOSPC   28 /* No space left on device */
 
#define ENOSR   63 /* Out of streams resources */
 
#define ENOSTR   60 /* Device not a stream */
 
#define ENOSYS   38 /* Function not implemented */
 
#define ENOTBLK   15 /* Block device required */
 
#define ENOTCONN   107 /* Transport endpoint is not connected */
 
#define ENOTDIR   20 /* Not a directory */
 
#define ENOTEMPTY   39 /* Directory not empty */
 
#define ENOTNAM   118 /* Not a XENIX named type file */
 
#define ENOTSOCK   88 /* Socket operation on non-socket */
 
#define ENOTTY   25 /* Not a typewriter */
 
#define ENOTUNIQ   76 /* Name not unique on network */
 
#define ENXIO   6 /* No such device or address */
 
#define EOPNOTSUPP   95 /* Operation not supported on transport endpoint */
 
#define EOVERFLOW   75 /* Value too large for defined data type */
 
#define EPERM   1 /* Operation not permitted */
 Temporary: define format string for size_t if not defined in cc.h. More...
 
#define EPFNOSUPPORT   96 /* Protocol family not supported */
 
#define EPIPE   32 /* Broken pipe */
 
#define EPROTO   71 /* Protocol error */
 
#define EPROTONOSUPPORT   93 /* Protocol not supported */
 
#define EPROTOTYPE   91 /* Protocol wrong type for socket */
 
#define ERANGE   34 /* Math result not representable */
 
#define EREMCHG   78 /* Remote address changed */
 
#define EREMOTE   66 /* Object is remote */
 
#define EREMOTEIO   121 /* Remote I/O error */
 
#define ERESTART   85 /* Interrupted system call should be restarted */
 
#define EROFS   30 /* Read-only file system */
 
#define ESHUTDOWN   108 /* Cannot send after transport endpoint shutdown */
 
#define ESOCKTNOSUPPORT   94 /* Socket type not supported */
 
#define ESPIPE   29 /* Illegal seek */
 
#define ESRCH   3 /* No such process */
 
#define ESRMNT   69 /* Srmount error */
 
#define ESTALE   116 /* Stale NFS file handle */
 
#define ESTRPIPE   86 /* Streams pipe error */
 
#define ETIME   62 /* Timer expired */
 
#define ETIMEDOUT   110 /* Connection timed out */
 
#define ETOOMANYREFS   109 /* Too many references: cannot splice */
 
#define ETXTBSY   26 /* Text file busy */
 
#define EUCLEAN   117 /* Structure needs cleaning */
 
#define EUNATCH   49 /* Protocol driver not attached */
 
#define EUSERS   87 /* Too many users */
 
#define EWOULDBLOCK   EAGAIN /* Operation would block */
 
#define EXDEV   18 /* Cross-device link */
 
#define EXFULL   54 /* Exchange full */
 
#define LITTLE_ENDIAN   1234
 

Variables

int errno
 

#define BIG_ENDIAN   4321
#define E2BIG   7 /* Arg list too long */
#define EACCES   13 /* Permission denied */
#define EADDRINUSE   98 /* Address already in use */
#define EADDRNOTAVAIL   99 /* Cannot assign requested address */

Referenced by lwip_setsockopt_impl().

#define EADV   68 /* Advertise error */
#define EAFNOSUPPORT   97 /* Address family not supported by protocol */
#define EAGAIN   11 /* Try again */
#define EALREADY   114 /* Operation already in progress */
#define EBADE   52 /* Invalid exchange */
#define EBADF   9 /* Bad file number */
#define EBADFD   77 /* File descriptor in bad state */
#define EBADMSG   74 /* Not a data message */
#define EBADR   53 /* Invalid request descriptor */
#define EBADRQC   56 /* Invalid request code */
#define EBADSLT   57 /* Invalid slot */
#define EBFONT   59 /* Bad font file format */
#define EBUSY   16 /* Device or resource busy */
#define ECHILD   10 /* No child processes */
#define ECHRNG   44 /* Channel number out of range */
#define ECOMM   70 /* Communication error on send */
#define ECONNABORTED   103 /* Software caused connection abort */
#define ECONNREFUSED   111 /* Connection refused */
#define ECONNRESET   104 /* Connection reset by peer */
#define EDEADLK   35 /* Resource deadlock would occur */
#define EDEADLOCK   EDEADLK
#define EDESTADDRREQ   89 /* Destination address required */
#define EDOM   33 /* Math argument out of domain of func */
#define EDOTDOT   73 /* RFS specific error */
#define EDQUOT   122 /* Quota exceeded */
#define EEXIST   17 /* File exists */
#define EFAULT   14 /* Bad address */

Referenced by lwip_getsockopt(), and lwip_setsockopt().

#define EFBIG   27 /* File too large */
#define EHOSTDOWN   112 /* Host is down */
#define EHOSTUNREACH   113 /* No route to host */
#define EIDRM   43 /* Identifier removed */
#define EILSEQ   84 /* Illegal byte sequence */
#define EINPROGRESS   115 /* Operation now in progress */

Referenced by lwip_getsockopt_impl().

#define EINTR   4 /* Interrupted system call */
#define EINVAL   22 /* Invalid argument */
#define EIO   5 /* I/O error */
#define EISCONN   106 /* Transport endpoint is already connected */
#define EISDIR   21 /* Is a directory */
#define EISNAM   120 /* Is a named type file */
#define EL2HLT   51 /* Level 2 halted */
#define EL2NSYNC   45 /* Level 2 not synchronized */
#define EL3HLT   46 /* Level 3 halted */
#define EL3RST   47 /* Level 3 reset */
#define ELIBACC   79 /* Can not access a needed shared library */
#define ELIBBAD   80 /* Accessing a corrupted shared library */
#define ELIBEXEC   83 /* Cannot exec a shared library directly */
#define ELIBMAX   82 /* Attempting to link in too many shared libraries */
#define ELIBSCN   81 /* .lib section in a.out corrupted */
#define ELNRNG   48 /* Link number out of range */
#define ELOOP   40 /* Too many symbolic links encountered */
#define EMEDIUMTYPE   124 /* Wrong medium type */
#define EMFILE   24 /* Too many open files */
#define EMLINK   31 /* Too many links */
#define EMSGSIZE   90 /* Message too long */
#define EMULTIHOP   72 /* Multihop attempted */
#define ENAMETOOLONG   36 /* File name too long */
#define ENAVAIL   119 /* No XENIX semaphores available */
#define ENETDOWN   100 /* Network is down */
#define ENETRESET   102 /* Network dropped connection because of reset */
#define ENETUNREACH   101 /* Network is unreachable */
#define ENFILE   23 /* File table overflow */

Referenced by lwip_accept(), and lwip_socket().

#define ENOANO   55 /* No anode */
#define ENOBUFS   105 /* No buffer space available */
#define ENOCSI   50 /* No CSI structure available */
#define ENODATA   61 /* No data available */
#define ENODEV   19 /* No such device */
#define ENOENT   2 /* No such file or directory */
#define ENOEXEC   8 /* Exec format error */
#define ENOLCK   37 /* No record locks available */
#define ENOLINK   67 /* Link has been severed */
#define ENOMEDIUM   123 /* No medium found */
#define ENOMEM   12 /* Out of memory */

Referenced by lwip_select().

#define ENOMSG   42 /* No message of desired type */
#define ENONET   64 /* Machine is not on the network */
#define ENOPKG   65 /* Package not installed */
#define ENOPROTOOPT   92 /* Protocol not available */
#define ENOSPC   28 /* No space left on device */
#define ENOSR   63 /* Out of streams resources */
#define ENOSTR   60 /* Device not a stream */
#define ENOSYS   38 /* Function not implemented */

Referenced by lwip_fcntl(), and lwip_ioctl().

#define ENOTBLK   15 /* Block device required */
#define ENOTCONN   107 /* Transport endpoint is not connected */

Referenced by lwip_shutdown().

#define ENOTDIR   20 /* Not a directory */
#define ENOTEMPTY   39 /* Directory not empty */
#define ENOTNAM   118 /* Not a XENIX named type file */
#define ENOTSOCK   88 /* Socket operation on non-socket */
#define ENOTTY   25 /* Not a typewriter */
#define ENOTUNIQ   76 /* Name not unique on network */
#define ENXIO   6 /* No such device or address */
#define EOPNOTSUPP   95 /* Operation not supported on transport endpoint */
#define EOVERFLOW   75 /* Value too large for defined data type */
#define EPERM   1 /* Operation not permitted */

Temporary: define format string for size_t if not defined in cc.h.

Temporary upgrade helper: define format string for u8_t as hex if not defined in cc.h

#define EPFNOSUPPORT   96 /* Protocol family not supported */
#define EPIPE   32 /* Broken pipe */
#define EPROTO   71 /* Protocol error */
#define EPROTONOSUPPORT   93 /* Protocol not supported */
#define EPROTOTYPE   91 /* Protocol wrong type for socket */
#define ERANGE   34 /* Math result not representable */

Referenced by lwip_gethostbyname_r().

#define EREMCHG   78 /* Remote address changed */
#define EREMOTE   66 /* Object is remote */
#define EREMOTEIO   121 /* Remote I/O error */
#define ERESTART   85 /* Interrupted system call should be restarted */
#define EROFS   30 /* Read-only file system */
#define ESHUTDOWN   108 /* Cannot send after transport endpoint shutdown */
#define ESOCKTNOSUPPORT   94 /* Socket type not supported */
#define ESPIPE   29 /* Illegal seek */
#define ESRCH   3 /* No such process */
#define ESRMNT   69 /* Srmount error */
#define ESTALE   116 /* Stale NFS file handle */
#define ESTRPIPE   86 /* Streams pipe error */
#define ETIME   62 /* Timer expired */
#define ETIMEDOUT   110 /* Connection timed out */
#define ETOOMANYREFS   109 /* Too many references: cannot splice */
#define ETXTBSY   26 /* Text file busy */
#define EUCLEAN   117 /* Structure needs cleaning */
#define EUNATCH   49 /* Protocol driver not attached */
#define EUSERS   87 /* Too many users */
#define EWOULDBLOCK   EAGAIN /* Operation would block */

Referenced by lwip_accept(), and lwip_recvfrom().

#define EXDEV   18 /* Cross-device link */
#define EXFULL   54 /* Exchange full */
#define LITTLE_ENDIAN   1234

int errno