Skip site navigation (1)Skip section navigation (2)
Date:      10 Feb 1999 16:02:24 +0100
From:      Dag-Erling Smorgrav <des@flood.ping.uio.no>
To:        "Daniel C. Sobral" <dcs@newsguy.com>
Cc:        Dag-Erling Smorgrav <des@flood.ping.uio.no>, Matthew Dillon <dillon@apollo.backplane.com>, Christoph Kukulies <kuku@gilberto.physik.RWTH-Aachen.DE>, Peter Wemm <peter@netplex.com.au>, Terry Lambert <tlambert@primenet.com>, hackers@FreeBSD.ORG
Subject:   Re: portability of shm, mmap, pipes and socket IPC
Message-ID:  <xzpww1q9u9r.fsf@flood.ping.uio.no>
In-Reply-To: "Daniel C. Sobral"'s message of "Wed, 10 Feb 1999 23:50:49 %2B0900"
References:  <199902092246.PAA10658@usr02.primenet.com> <199902100403.MAA55849@spinner.netplex.com.au> <19990210085847.A11710@gil.physik.rwth-aachen.de> <199902100907.BAA79553@apollo.backplane.com> <xzp1zjybabz.fsf@flood.ping.uio.no> <36C19CC9.62FAA6F7@newsguy.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Daniel C. Sobral" <dcs@newsguy.com> writes:
> Dag-Erling Smorgrav wrote:
> > Matthew Dillon <dillon@apollo.backplane.com> writes:
> > >     The problem is that linux updates the timeval structure on return,
> > >     telling you how much time is left.
> > Yup. I wish FreeBSD did that - the man page already states that one
> > shouldn't rely on tv not being modified, so it shouldn't break POLA.
> Manual pages aren't POLA. They are specs. Traditional usage is POLA.
> Wanna different different behavior? Create a different function.

Yep, man pages are specs, and when the spec says tv may be modified by
select(), that means you can't expect it to remain untouched.

> Besides, given that most usages have no need for this, it would be a
> wast of space and time.

On the contrary, it is extremely useful for implementing higher-level
timeouts. If you want to see the new installer come true, I need to
implement protocol-level timeouts in libfetch, and that means either
add a lot of gettimeofday() logic or fix select() to modify tv.

DES
-- 
Dag-Erling Smorgrav - des@flood.ping.uio.no

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



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