diff options
Diffstat (limited to 'src/lib/winsock.def')
| -rw-r--r-- | src/lib/winsock.def | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/src/lib/winsock.def b/src/lib/winsock.def new file mode 100644 index 0000000000..cada779858 --- /dev/null +++ b/src/lib/winsock.def @@ -0,0 +1,90 @@ +; +; File: winsock.def +; System: MS-Windows 3.x +; Summary: Module definition file for Windows Sockets DLL. +; +; This file is from +; ftp://sunsite.unc.edu/pub/micro/pc-stuff/ms-windows/winsock/winsock-1.1 +; except that we made all the routine names uppercase, to match what +; MicroSoft C does when you declare an interface routine PASCAL +; (the way all these routines are declared in .../include/winsock.h). +; + +LIBRARY WINSOCK ; Application's module name + +DESCRIPTION 'BSD Socket API for Windows' + +EXETYPE WINDOWS ; required for all windows applications + +STUB 'WINSTUB.EXE' ; generates error message if application + ; is run without Windows + +;CODE can be FIXED in memory because of potential upcalls +CODE PRELOAD FIXED + +;DATA must be SINGLE and at a FIXED location since this is a DLL +DATA PRELOAD FIXED SINGLE + +HEAPSIZE 1024 +STACKSIZE 16384 + +; All functions that will be called by any Windows routine +; must be exported. Any additional exports beyond those defined +; here must have ordinal numbers 1000 or above. + +EXPORTS + ACCEPT @1 + BIND @2 + CLOSESOCKET @3 + CONNECT @4 + GETPEERNAME @5 + GETSOCKNAME @6 + GETSOCKOPT @7 + HTONL @8 + HTONS @9 + INET_ADDR @10 + INET_NTOA @11 + IOCTLSOCKET @12 + LISTEN @13 + NTOHL @14 + NTOHS @15 + RECV @16 + RECVFROM @17 + SELECT @18 + SEND @19 + SENDTO @20 + SETSOCKOPT @21 + SHUTDOWN @22 + SOCKET @23 + + GETHOSTBYADDR @51 + GETHOSTBYNAME @52 + GETPROTOBYNAME @53 + GETPROTOBYNUMBER @54 + GETSERVBYNAME @55 + GETSERVBYPORT @56 + GETHOSTNAME @57 + + WSAASYNCSELECT @101 + WSAASYNCGETHOSTBYADDR @102 + WSAASYNCGETHOSTBYNAME @103 + WSAASYNCGETPROTOBYNUMBER @104 + WSAASYNCGETPROTOBYNAME @105 + WSAASYNCGETSERVBYPORT @106 + WSAASYNCGETSERVBYNAME @107 + WSACANCELASYNCREQUEST @108 + WSASETBLOCKINGHOOK @109 + WSAUNHOOKBLOCKINGHOOK @110 + WSAGETLASTERROR @111 + WSASETLASTERROR @112 + WSACANCELBLOCKINGCALL @113 + WSAISBLOCKING @114 + WSASTARTUP @115 + WSACLEANUP @116 + + __WSAFDISSET @151 + + WEP @500 RESIDENTNAME + +;eof + |
