Date: Mon, 31 May 2004 18:18:51 -0700 (PDT) From: Don Lewis <truckman@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/fifofs fifo_vnops.c src/sys/kern uipc_socket.c src/sys/sys socket.h Message-ID: <200406010118.i511IpUs003659@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
truckman 2004/05/31 18:18:51 PDT FreeBSD src repository Modified files: sys/fs/fifofs fifo_vnops.c sys/kern uipc_socket.c sys/sys socket.h Log: 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. Revision Changes Path 1.95 +6 -12 src/sys/fs/fifofs/fifo_vnops.c 1.172 +3 -2 src/sys/kern/uipc_socket.c 1.80 +1 -0 src/sys/sys/socket.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406010118.i511IpUs003659>