Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 28 Mar 2002 08:28:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 28 Mar 2002 08:28:00 -0500 Received: from ezri.xs4all.nl ([194.109.253.9]:28900 "HELO ezri.xs4all.nl") by vger.kernel.org with SMTP id ; Thu, 28 Mar 2002 08:27:54 -0500 Date: Thu, 28 Mar 2002 14:27:52 +0100 (CET) From: Eric Lammerts To: Mark Atwood cc: linux-kernel@vger.kernel.org Subject: Re: How to tell how much to expect from a fd In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 27 Mar 2002, Mark Atwood wrote: > Does there exist a fcntl or some other way to tell how much data is > "ready to be read" from a fd? int val; ioctl(fd, FIONREAD, &val); See tcp(7). Eric - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/