1 (in-package :sockint)
\r
3 (defconstant af-unix 1)
\r
4 (defconstant af-inet 2)
\r
5 (defconstant af-local af-unix)
\r
6 (defconstant msg-oob 1)
\r
7 (defconstant msg-peek 2)
\r
8 (defconstant msg-trunc #x8000)
\r
9 (defconstant msg-waitall 0)
\r
11 (defconstant ip-options 1)
\r
12 (defconstant so-debug 1)
\r
13 (defconstant so-acceptconn 2)
\r
14 (defconstant so-reuseaddr 4)
\r
15 (defconstant so-keepalive 8)
\r
16 (defconstant so-dontroute 16)
\r
17 (defconstant so-broadcast 32)
\r
18 (defconstant so-useloopback 64)
\r
19 (defconstant so-linger 128)
\r
20 (defconstant so-oobinline 256)
\r
21 (defconstant so-dontlinger (lognot so-linger))
\r
22 (defconstant so-excludiveaddruse (lognot so-reuseaddr))
\r
23 (defconstant so-sndbuf #x1001)
\r
24 (defconstant so-rcvbuf #x1002)
\r
25 (defconstant so-sndlowat #x1003)
\r
26 (defconstant so-rcvlowat #x1004)
\r
27 (defconstant so-sndtimeo #x1005)
\r
28 (defconstant so-rcvtimeo #x1006)
\r
29 (defconstant so-error #x1007)
\r
30 (defconstant so-type #x1008)
\r
32 (defconstant socket-error -1)
\r
33 (defconstant sock-stream 1)
\r
34 (defconstant sock-dgram 2)
\r
35 (defconstant sock-raw 3)
\r
36 (defconstant sock-rdm 4)
\r
37 (defconstant sock-seqpacket 5)
\r
38 (defconstant tcp-nodelay #x0001)
\r
39 (defconstant o-append #x0008)
\r
41 ;; some other windows error code
\r
42 (defconstant ERROR_NOT_ENOUGH_MEMORY 8)
\r
44 ;; misc unixy error codes
\r
45 (defconstant ENOMEM ERROR_NOT_ENOUGH_MEMORY)
\r
46 (defconstant EPERM 1)
\r
48 ;; basic socket errors
\r
49 (defconstant WSABASEERR 10000)
\r
50 (defconstant EINTR (+ WSABASEERR 4))
\r
51 (defconstant EBADF (+ WSABASEERR 9))
\r
52 (defconstant EACCES (+ WSABASEERR 13))
\r
53 (defconstant EFAULT (+ WSABASEERR 14))
\r
54 (defconstant EINVAL (+ WSABASEERR 22))
\r
55 (defconstant EMFILE (+ WSABASEERR 24))
\r
56 (defconstant EWOULDBLOCK (+ WSABASEERR 35))
\r
57 (defconstant EAGAIN EWOULDBLOCK)
\r
58 (defconstant EINPROGRESS (+ WSABASEERR 36))
\r
59 (defconstant EALREADY (+ WSABASEERR 37))
\r
60 (defconstant ENOTSOCK (+ WSABASEERR 38))
\r
61 (defconstant EDESTADDRREQ (+ WSABASEERR 39))
\r
62 (defconstant EMSGSIZE (+ WSABASEERR 40))
\r
63 (defconstant EPROTOTYPE (+ WSABASEERR 41))
\r
64 (defconstant ENOPROTOOPT (+ WSABASEERR 42))
\r
65 (defconstant EPROTONOSUPPORT (+ WSABASEERR 43))
\r
66 (defconstant ESOCKTNOSUPPORT (+ WSABASEERR 44))
\r
67 (defconstant EOPNOTSUPP (+ WSABASEERR 45))
\r
68 (defconstant EPFNOSUPPORT (+ WSABASEERR 46))
\r
69 (defconstant EAFNOSUPPORT (+ WSABASEERR 47))
\r
70 (defconstant EADDRINUSE (+ WSABASEERR 48))
\r
71 (defconstant EADDRNOTAVAIL (+ WSABASEERR 49))
\r
72 (defconstant ENETDOWN (+ WSABASEERR 50))
\r
73 (defconstant ENETUNREACH (+ WSABASEERR 51))
\r
74 (defconstant ENETRESET (+ WSABASEERR 52))
\r
75 (defconstant ECONNABORTED (+ WSABASEERR 53))
\r
76 (defconstant ECONNRESET (+ WSABASEERR 54))
\r
77 (defconstant ENOBUFS (+ WSABASEERR 55))
\r
78 (defconstant EISCONN (+ WSABASEERR 56))
\r
79 (defconstant ENOTCONN (+ WSABASEERR 57))
\r
80 (defconstant ESHUTDOWN (+ WSABASEERR 58))
\r
81 (defconstant ETOOMANYREFS (+ WSABASEERR 59))
\r
82 (defconstant ETIMEDOUT (+ WSABASEERR 60))
\r
83 (defconstant ECONNREFUSED (+ WSABASEERR 61))
\r
84 (defconstant ELOOP (+ WSABASEERR 62))
\r
85 (defconstant ENAMETOOLONG (+ WSABASEERR 63))
\r
86 (defconstant EHOSTDOWN (+ WSABASEERR 64))
\r
87 (defconstant EHOSTUNREACH (+ WSABASEERR 65))
\r
88 (defconstant ENOTEMPTY (+ WSABASEERR 66))
\r
89 (defconstant EPROCLIM (+ WSABASEERR 67))
\r
90 (defconstant EUSERS (+ WSABASEERR 68))
\r
91 (defconstant EDQUOT (+ WSABASEERR 69))
\r
92 (defconstant ESTALE (+ WSABASEERR 70))
\r
93 (defconstant EREMOTE (+ WSABASEERR 71))
\r
94 (defconstant EDISCON (+ WSABASEERR 101))
\r
95 (defconstant SYSNOTREADY (+ WSABASEERR 91))
\r
96 (defconstant VERNOTSUPPORTED (+ WSABASEERR 92))
\r
97 (defconstant NOTINITIALISED (+ WSABASEERR 93))
\r
98 (defconstant HOST_NOT_FOUND (+ WSABASEERR 1001))
\r
99 (defconstant TRY_AGAIN (+ WSABASEERR 1002))
\r
100 (defconstant NO_RECOVERY (+ WSABASEERR 1003))
\r
101 (defconstant NO_DATA (+ WSABASEERR 1004))
\r
102 (defconstant WSAENOMORE (+ WSABASEERR 102))
\r
103 (defconstant WSAECANCELLED (+ WSABASEERR 103))
\r
104 (defconstant WSAEINVALIDPROCTABLE (+ WSABASEERR 104))
\r
105 (defconstant WSAEINVALIDPROVIDER (+ WSABASEERR 105))
\r
106 (defconstant WSAEPROVIDERFAILEDINIT (+ WSABASEERR 106))
\r
107 (defconstant WSASYSCALLFAILURE (+ WSABASEERR 107))
\r
108 (defconstant WSASERVICE_NOT_FOUND (+ WSABASEERR 108))
\r
109 (defconstant WSATYPE_NOT_FOUND (+ WSABASEERR 109))
\r
110 (defconstant WSA_E_NO_MORE (+ WSABASEERR 110))
\r
111 (defconstant WSA_E_CANCELLED (+ WSABASEERR 111))
\r
112 (defconstant WSAEREFUSED (+ WSABASEERR 112))
\r
113 (defconstant WSA_QOS_RECEIVERS (+ WSABASEERR 1005))
\r
114 (defconstant WSA_QOS_SENDERS (+ WSABASEERR 1006))
\r
115 (defconstant WSA_QOS_NO_SENDERS (+ WSABASEERR 1007))
\r
116 (defconstant WSA_QOS_NO_RECEIVERS (+ WSABASEERR 1008))
\r
117 (defconstant WSA_QOS_REQUEST_CONFIRMED (+ WSABASEERR 1009))
\r
118 (defconstant WSA_QOS_ADMISSION_FAILURE (+ WSABASEERR 1010))
\r
119 (defconstant WSA_QOS_POLICY_FAILURE (+ WSABASEERR 1011))
\r
120 (defconstant WSA_QOS_BAD_STYLE (+ WSABASEERR 1012))
\r
121 (defconstant WSA_QOS_BAD_OBJECT (+ WSABASEERR 1013))
\r
122 (defconstant WSA_QOS_TRAFFIC_CTRL_ERROR (+ WSABASEERR 1014))
\r
123 (defconstant WSA_QOS_GENERIC_ERROR (+ WSABASEERR 1015))
\r
124 (defconstant WSA_QOS_ESERVICETYPE (+ WSABASEERR 1016))
\r
125 (defconstant WSA_QOS_EFLOWSPEC (+ WSABASEERR 1017))
\r
126 (defconstant WSA_QOS_EPROVSPECBUF (+ WSABASEERR 1018))
\r
127 (defconstant WSA_QOS_EFILTERSTYLE (+ WSABASEERR 1019))
\r
128 (defconstant WSA_QOS_EFILTERTYPE (+ WSABASEERR 1020))
\r
129 (defconstant WSA_QOS_EFILTERCOUNT (+ WSABASEERR 1021))
\r
130 (defconstant WSA_QOS_EOBJLENGTH (+ WSABASEERR 1022))
\r
131 (defconstant WSA_QOS_EFLOWCOUNT (+ WSABASEERR 1023))
\r
132 (defconstant WSA_QOS_EUNKOWNPSOBJ (+ WSABASEERR 1024))
\r
133 (defconstant WSA_QOS_EPOLICYOBJ (+ WSABASEERR 1025))
\r
134 (defconstant WSA_QOS_EFLOWDESC (+ WSABASEERR 1026))
\r
135 (defconstant WSA_QOS_EPSFLOWSPEC (+ WSABASEERR 1027))
\r
136 (defconstant WSA_QOS_EPSFILTERSPEC (+ WSABASEERR 1028))
\r
137 (defconstant WSA_QOS_ESDMODEOBJ (+ WSABASEERR 1029))
\r
138 (defconstant WSA_QOS_ESHAPERATEOBJ (+ WSABASEERR 1030))
\r
139 (defconstant WSA_QOS_RESERVED_PETYPE (+ WSABASEERR 1031))
\r
141 (defconstant HOST-NOT-FOUND (+ WSABASEERR 1001))
\r
142 (defconstant TRY-AGAIN (+ WSABASEERR 1002))
\r
143 (defconstant NO-RECOVERY (+ WSABASEERR 1003))
\r
144 (defconstant NO-ADDRESS NO_DATA)
\r
145 (defconstant SOL-SOCKET #xffff)