Re: select() - Linux vs. BSD

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Tue May 29 2001 - 14:51:41 EST


> In BSD, select() states that when a time out occurs, the bits passed to
> select will not be altered. In Linux, which claims BSD compliancy for this

Nope. BSD manual pages (the authentic ones anyway) say that the timeout value
may well be written back but that this was a future enhancement and that users
shoulsnt rely on the value being unchanged.

> in the man page (but does not state either way what will happen to the
> bits), zeros the users bit masks when a timeout occurs. I have written a
> test case, and run on both systems; BSD behaves as stated, Linux does not
> act like BSD.
>
> Should the man pages be changed to reflect reality, or select() fixed to
> act like BSD?

BSD should stop changing its mind if its changed its man pages

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu May 31 2001 - 21:00:41 EST