fd_sets and std[fd]

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

 



can you put stdin/stdout/stderr in an fdset (well, really only
interested in stdin) and then use it in select?

I'm curious because these are pointers to struct and not actual
integers like sockets, but some documentation I read said you could do
this, and shows socket fd's and these structure pointers used
interchangeably, which just confuses me. Every fiber of my programming
being wants to put stdin->_fileno in their instead, as sockets and
filenumbers are supposed to be the same according to the
documentation.

Can someone unconfuse me?

Thanks,
-Jim


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux