Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jun 2004 14:27:36 -0400
From:      lbland <lbland@vvi.com>
To:        Mikhail Teterin <mi+mx@aldan.algebra.com>
Cc:        questions@FreeBSD.org
Subject:   Re: select(2)'s timeout argument
Message-ID:  <FE73F1A2-C9F9-11D8-835B-0030659A531A@vvi.com>
In-Reply-To: <200406291411.46266@misha-mx.virtual-estates.net>
References:  <200406291411.46266@misha-mx.virtual-estates.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FE73F1A2-C9F9-11D8-835B-0030659A531A>