public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* fd_sets and std[fd]
@ 2006-02-23 17:41 Jim Stapleton
  2006-02-23 18:11 ` Ian Lance Taylor
  0 siblings, 1 reply; 4+ messages in thread
From: Jim Stapleton @ 2006-02-23 17:41 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-28  6:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-23 17:41 fd_sets and std[fd] Jim Stapleton
2006-02-23 18:11 ` Ian Lance Taylor
2006-02-27 12:49   ` Jim Stapleton
2006-02-28  6:08     ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).