windows: Provide shutdown(2) operation aliases mapping to those on Windows

This commit is contained in:
Martin Willi
2014-06-04 15:53:12 +02:00
parent c079c098c4
commit 2162e50004
+7
View File
@@ -280,6 +280,13 @@ char* getpass(const char *prompt);
#define ECONNRESET ENXIO
#endif
/**
* shutdown(2) "how"-aliases, to use Unix variant on Windows
*/
#define SHUT_RD SD_RECEIVE
#define SHUT_WR SD_SEND
#define SHUT_RDWR SD_BOTH
/**
* close(2) working for file handles and Winsock sockets
*/