Re: One question for select call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 11, 2003 at 04:36:25PM +0530, Ajay Bansal wrote:
> Should I shift to  #include <sys/select.h>???
That's the new header blessed by Single UNIX Specification v3.
Implementations [as in "implementation of the standard" = OS product]
are allowed to still declare select in sys/time.h, and most probably
do so in order to preserve backward compatibility.

If you want your program running on current "real" systems, use
sys/time.h. If you want it portable "according to the spec", use
sys/select.h.

It is not clear which one is more preferable right now. In the long
term, sys/select.h is the way to go, but probably quite a few "legacy" OSes in
wide use are lacking it.
	Mirek



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux