Subject: const-ness of select() timeout arg
To: None <tech-kern@NetBSD.ORG>
From: Luke Mewburn <>
List: tech-kern
Date: 02/17/1997 10:38:41
I saw this on USENET, and thought it might be relevant.
It is about POSIX 1.g, and its definition of select() to have
a "const" timeout arg.

I think I read on one of our mailing lists that NetBSD
doesn't depend upon a non-const arg, however our Linux
emulation may.

In any case, something that should be investigated?


> From: (W. Richard Stevens)
> Newsgroups: comp.unix.programmer
> Subject: Re: select call timeout argument
> Date: 13 Feb 1997 13:57:50 GMT
> Organization: National Optical Astronomy Observatories, Tucson, AZ, USA
> Lines: 5

Posix.1g, which is standardizing select() and poll(), add the "const"
qualifier to the "struct timeval *".  So any system that does update
this structure today, will have to change.