Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2000-12-11 22:45:54 +0300
committerCorinna Vinschen <corinna@vinschen.de>2000-12-11 22:45:54 +0300
commit947411367d78a0fcbecb21f47711bce31c5a0d08 (patch)
tree397dfac2979317e5550ae50f7fc15843ae81645c /winsup/cygwin/include/sys
parent772231a0550283e1fa78bfc3cf3bc49014c0e239 (diff)
* net.cc (cygwin_rexec): Eliminate superfluous call to
`set_socket_inheritance'. * include/sys/socket.h: Add SUS defines for option values to `shutdown'.
Diffstat (limited to 'winsup/cygwin/include/sys')
-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);