From owner-freebsd-arch Tue Oct 29 0: 0:29 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 208BB37B401 for ; Tue, 29 Oct 2002 00:00:28 -0800 (PST) Received: from InterJet.elischer.org (12-232-206-8.client.attbi.com [12.232.206.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F2D643E3B for ; Tue, 29 Oct 2002 00:00:27 -0800 (PST) (envelope-from julian@elischer.org) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id XAA27781; Mon, 28 Oct 2002 23:42:36 -0800 (PST) Date: Mon, 28 Oct 2002 23:42:35 -0800 (PST) From: Julian Elischer To: Kelly Yancey Cc: freebsd-arch@freebsd.org Subject: Re: RFC: Exporting number of bytes of protocol data to userland In-Reply-To: <20021028230434.U91753-200000@alicia.nttmcl.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It seems reasonable to me, but have you run a lot of apps? Also I'd like to know what the standards say about these interfaces. On Mon, 28 Oct 2002, Kelly Yancey wrote: > > The attached patch is rather short so the impatient can probably skip > right to the source. > > The background is that there are at least 3 interfaces which report the > "number of bytes in the socket buffer" to userland: > ioctl(s, FIONREAD, &len) > stat(2) via the st_size member of struct stat > kqueue(2) via data member of struct kevents returned for > EVFILT_READ filters. > [...] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message