From owner-freebsd-hackers Wed Oct 18 06:21:22 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id GAA01403 for hackers-outgoing; Wed, 18 Oct 1995 06:21:22 -0700 Received: from chrome.jdl.com (chrome.onramp.net [199.1.166.202]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id GAA01397 for ; Wed, 18 Oct 1995 06:21:19 -0700 Received: from localhost.jdl.com (localhost.jdl.com [127.0.0.1]) by chrome.jdl.com (8.6.11/8.6.9) with SMTP id IAA09420; Wed, 18 Oct 1995 08:20:56 -0500 Message-Id: <199510181320.IAA09420@chrome.jdl.com> X-Authentication-Warning: chrome.jdl.com: Host localhost.jdl.com didn't use HELO protocol To: imp@village.org cc: freebsd-hackers@FreeBSD.ORG Subject: select(2) timeval Clarity-Index: null Reply-To: jdl@chromatic.com Threat-Level: none Software-Engineering-Dead-Seriousness: There's no excuse for unreadable code. Net-thought: If you meet the Buddha on the net, put him in your Kill file. Date: Wed, 18 Oct 1995 08:20:55 -0500 From: Jon Loeliger Sender: owner-hackers@FreeBSD.ORG Precedence: bulk > : > In addition, the select(2) call in BSD reserves the right to modify the > : > timeval structure to indicate the remaining time to allow the use of > : > the timeout as an even outcall mechanism for logical multithreading. > > As someone who ported an application that depended on select(2) not > doing that, I can tell you that only Linux will really change the > value of timeval in a select call. If that is not correct, I'd like > to know who else does change it (rather than merely reserve the right > to change it). As a point of reference, about a year ago, I wrote a time-based delta queue application under AIX. As I recall, it's BSD interface did NOT adjust the timeval in a select() call, and so I ended up having to compensate for it in my code. jdl