From owner-freebsd-hackers Wed Feb 10 07:02:41 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA08247 for freebsd-hackers-outgoing; Wed, 10 Feb 1999 07:02:41 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA08238 for ; Wed, 10 Feb 1999 07:02:39 -0800 (PST) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.2/8.9.1) id QAA13877; Wed, 10 Feb 1999 16:02:24 +0100 (CET) (envelope-from des) To: "Daniel C. Sobral" Cc: Dag-Erling Smorgrav , Matthew Dillon , Christoph Kukulies , Peter Wemm , Terry Lambert , hackers@FreeBSD.ORG Subject: Re: portability of shm, mmap, pipes and socket IPC References: <199902092246.PAA10658@usr02.primenet.com> <199902100403.MAA55849@spinner.netplex.com.au> <19990210085847.A11710@gil.physik.rwth-aachen.de> <199902100907.BAA79553@apollo.backplane.com> <36C19CC9.62FAA6F7@newsguy.com> From: Dag-Erling Smorgrav Date: 10 Feb 1999 16:02:24 +0100 In-Reply-To: "Daniel C. Sobral"'s message of "Wed, 10 Feb 1999 23:50:49 +0900" Message-ID: Lines: 24 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Daniel C. Sobral" writes: > Dag-Erling Smorgrav wrote: > > Matthew Dillon 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