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

This commit is contained in:
Martin Willi 2014-04-09 14:21:12 +02:00
parent c079c098c4
commit 2162e50004
1 changed files with 7 additions and 0 deletions

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
*/