summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/sys/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/include/sys/socket.h')
-rw-r--r--winsup/cygwin/include/sys/socket.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/include/sys/socket.h b/winsup/cygwin/include/sys/socket.h
index 89b9af7f3..a13b55600 100644
--- a/winsup/cygwin/include/sys/socket.h
+++ b/winsup/cygwin/include/sys/socket.h
@@ -10,6 +10,11 @@ extern "C"
{
#endif
+/* SUS symbolic values for the second parm to shutdown(2) */
+#define SHUT_RD 0 /* == Win32 SD_RECEIVE */
+#define SHUT_WR 1 /* == Win32 SD_SEND */
+#define SHUT_RDWR 2 /* == Win32 SD_BOTH */
+
#ifndef __INSIDE_CYGWIN_NET__
int accept (int, struct sockaddr *__peer, int *);
int bind (int, struct sockaddr *__my_addr, int __addrlen);