* fhandler_socket.cc (fhandler_socket::recv_internal): Add MSG_WAITALL

handling.  Use explicit flag values instead of MSG_WINMASK.
	(fhandler_socket::send_internal): Use explicit flag values instead of
	MSG_WINMASK.
	* include/cygwin/socket.h (MSG_WINMASK): Remove definition.
	(MSG_WAITALL): Define.
This commit is contained in:
Corinna Vinschen
2007-11-28 15:54:17 +00:00
parent 02cb1fd853
commit 023a2fa789
3 changed files with 54 additions and 10 deletions

View File

@ -189,7 +189,7 @@ struct OLD_msghdr
#define MSG_OOB 0x1 /* process out-of-band data */
#define MSG_PEEK 0x2 /* peek at incoming message */
#define MSG_DONTROUTE 0x4 /* send without using routing tables */
#define MSG_WINMASK 0x7 /* flags understood by WinSock calls */
#define MSG_WAITALL 0x8 /* wait for all requested bytes */
#define MSG_NOSIGNAL 0x20 /* Don't raise SIGPIPE */
#define MSG_TRUNC 0x0100 /* Normal data truncated */
#define MSG_CTRUNC 0x0200 /* Control data truncated */