* include/sys/socket.h: Move SHUT_xx definitoins from here...

* include/cygwin/socket.h: ...to here.
This commit is contained in:
Corinna Vinschen 2013-05-31 18:08:25 +00:00
parent 697ce3c45f
commit cd9ca871b0
3 changed files with 14 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2013-05-31 Corinna Vinschen <corinna@vinschen.de>
* include/sys/socket.h: Move SHUT_xx definitoins from here...
* include/cygwin/socket.h: ...to here.
2013-05-31 Corinna Vinschen <corinna@vinschen.de>
* include/cygwin/if.h: Include cygwin/socket.h rather than sys/socket.h

View File

@ -1,7 +1,7 @@
/* cygwin/socket.h
Copyright 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007, 2009, 2010, 2012
Red Hat, Inc.
Copyright 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007, 2009, 2010, 2012,
2013 Red Hat, Inc.
This file is part of Cygwin.
@ -302,6 +302,11 @@ struct OLD_msghdr
#define TCP_MAXSEG 2
#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 */
/* The various priorities. */
#define SOPRI_INTERACTIVE 0
#define SOPRI_NORMAL 1

View File

@ -1,7 +1,7 @@
/* sys/socket.h
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2005, 2006, 2009, 2010
Red Hat, Inc.
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2005, 2006, 2009, 2010,
2013 Red Hat, Inc.
This file is part of Cygwin.
@ -21,11 +21,6 @@ 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, socklen_t *);
int accept4 (int, struct sockaddr *__peer, socklen_t *, int flags);