From owner-freebsd-questions@FreeBSD.ORG Tue Jun 29 18:26:32 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2AA116A4CE for ; Tue, 29 Jun 2004 18:26:31 +0000 (GMT) Received: from vvi.com (vvionly.penn.com [208.22.30.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF85043D39 for ; Tue, 29 Jun 2004 18:26:30 +0000 (GMT) (envelope-from lbland@vvi.com) Received: from [206.229.112.1] ([206.229.112.1] verified) by vvi.com (CommuniGate Pro SMTP 4.1.5) with ESMTP id 3990423; Tue, 29 Jun 2004 14:27:37 -0400 In-Reply-To: <200406291411.46266@misha-mx.virtual-estates.net> References: <200406291411.46266@misha-mx.virtual-estates.net> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: lbland Date: Tue, 29 Jun 2004 14:27:36 -0400 To: Mikhail Teterin X-Mailer: Apple Mail (2.618) cc: questions@FreeBSD.org Subject: Re: select(2)'s timeout argument X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 18:26:32 -0000 On Jun 29, 2004, at 2:11 PM, Mikhail Teterin wrote: > Why is the pointer to the `struct timeval' not declared as `const'? > > Can select(2) ever modify the structure pointed to? Thanks! hi- Some versions of Linux modified timeval. Posix.1g specifies const qualifier. I think most unixes don't modify it. I think ?? in the old days some unixes did modify it. legacy and compatibility issues. thanks!- -lance Lance Bland mailto:lbland@vvi.com VVI Mac OS X Charting http://www.vvi.com