home *** CD-ROM | disk | FTP | other *** search
- #ifndef __sys_errno_h
- #define __sys_errno_h
-
- /* Freenet programmers interface - sys/errno.h - 23/5/95 */
-
- #include <errno.h>
-
- #define EBADF 9 /* Bad descriptor */
- #define EAGAIN 11 /* No more ports */
- #define EFAULT 14 /* Bad address */
- #define EINVAL 22 /* Invalid argument */
- #define EWOULDBLOCK 35 /* Operation would block */
- #define EINPROGRESS 36 /* Operation now in progress */
- #define EALREADY 37 /* Operation already in progress */
- #define ENOTSOCK 38 /* Socket peration on non-socket */
- #define EDESTADDRREQ 39 /* Destination address required */
- #define EMSGSIZE 40 /* Message too long */
- #define EPROTOTYPE 41 /* Protocol wrong type for socket */
- #define ENOPROTOOPT 42 /* Protocol not available */
- #define EPROTONOSUPPORT 43 /* Protocol not supported */
- #define ESOCKTNOSUPPORT 44 /* Socket type not supported */
- #define EOPNOTSUPP 45 /* Operation not supported on socket */
- #define EPFNOSUPPORT 46 /* Protocol family not supported */
- #define EAFNOSUPPORT 47 /* Address family not supported */
- #define EADDRINUSE 48 /* Address already in use */
- #define EADDRNOTAVAIL 49 /* Can't assign requested address */
- #define ENETDOWN 50 /* Network is down */
- #define ENETUNREACH 51 /* Network is unreachable */
- #define ENETRESET 52 /* Network dropped connection on reset */
- #define ECONNABORTED 53 /* Software caused connection abort */
- #define ECONNRESET 54 /* Connection reset by peer */
- #define ENOBUFS 55 /* No buffer space available */
- #define EISCONN 56 /* Socket is already connected */
- #define ENOTCONN 57 /* Socket is not connected */
- #define ESHUTDOWN 58 /* Can't send after socket shutdown */
- #define ETOOMANYREFS 59 /* Too many references: can't splice */
- #define ETIMEDOUT 60 /* Connection timed out */
- #define ECONNREFUSED 61 /* Connection refused */
- #define EHOSTDOWN 64 /* Host is down */
- #define EHOSTUNREACH 65 /* No route to host */
-
- #endif
-