windows: Provide shutdown(2) operation aliases mapping to those on Windows
This commit is contained in:
1 parent
c079c098c4
commit
2162e50004
1 file changed
+7
@@ -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
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user