Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 1997 00:59:18 +0100 (MET)
From:      j@uriah.heep.sax.de (J Wunsch)
To:        freebsd-hackers@freebsd.org
Subject:   Re: Why FIONREAD has no dual for write ?
Message-ID:  <199712092359.AAA04799@uriah.heep.sax.de>
References:  <199712061054.LAA25661@labinfo.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
Luigi Rizzo <luigi@labinfo.iet.unipi.it> wrote:

> There is no FIONWRITE call (how many bytes you can write before
> blocking) which would be nice to have, instead of having to resort to
> non-blocking writes.

I think estimating this number is much harder than FIONREAD: for the
read case, you do already know how much you've got.  For the write
case, you can only estimate, but perhaps have to predict a lot of
potential allocation policy (the implementation might chose to
allocate more buffer space for some reason).

I get your point though, the above is just guessing...
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712092359.AAA04799>