diff options
author | Don Lewis <truckman@FreeBSD.org> | 2004-06-01 01:18:51 +0000 |
---|---|---|
committer | Don Lewis <truckman@FreeBSD.org> | 2004-06-01 01:18:51 +0000 |
commit | 866046f5a6dadedc4686d667d14b21b0649c7961 (patch) | |
tree | 70cc910e8da4e8552af2295511fb0f6609b4adb4 /sys/sys/socket.h | |
parent | 8fb8b5fb278c5142d8ad733b3b9044dc3d870fad (diff) | |
download | src-866046f5a6dadedc4686d667d14b21b0649c7961.tar.gz src-866046f5a6dadedc4686d667d14b21b0649c7961.zip |
Add MSG_NBIO flag option to soreceive() and sosend() that causes
them to behave the same as if the SS_NBIO socket flag had been set
for this call. The SS_NBIO flag for ordinary sockets is set by
fcntl(fd, F_SETFL, O_NONBLOCK).
Pass the MSG_NBIO flag to the soreceive() and sosend() calls in
fifo_read() and fifo_write() instead of frobbing the SS_NBIO flag
on the underlying socket for each I/O operation. The O_NONBLOCK
flag is a property of the descriptor, and unlike ordinary sockets,
fifos may be referenced by multiple descriptors.
Notes
Notes:
svn path=/head/; revision=129911
Diffstat (limited to 'sys/sys/socket.h')
-rw-r--r-- | sys/sys/socket.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/socket.h b/sys/sys/socket.h index de96518ed01d..6efdaee6b3ff 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -393,6 +393,7 @@ struct msghdr { #if __BSD_VISIBLE #define MSG_DONTWAIT 0x80 /* this message should be nonblocking */ #define MSG_EOF 0x100 /* data completes connection */ +#define MSG_NBIO 0x4000 /* FIONBIO mode, used by fifofs */ #define MSG_COMPAT 0x8000 /* used in sendit() */ #endif |