From owner-cvs-all@FreeBSD.ORG Mon May 31 18:18:55 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F0AE16A4CE; Mon, 31 May 2004 18:18:55 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5740B43D2D; Mon, 31 May 2004 18:18:55 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i511IpPg003660; Mon, 31 May 2004 18:18:51 -0700 (PDT) (envelope-from truckman@repoman.freebsd.org) Received: (from truckman@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i511IpUs003659; Mon, 31 May 2004 18:18:51 -0700 (PDT) (envelope-from truckman) Message-Id: <200406010118.i511IpUs003659@repoman.freebsd.org> From: Don Lewis Date: Mon, 31 May 2004 18:18:51 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/fs/fifofs fifo_vnops.c src/sys/kern uipc_socket.c src/sys/sys socket.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2004 01:18:55 -0000 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