Re: Poll.h
Re: Poll.h
- Subject: Re: Poll.h
- From: "Mike Davis" <email@hidden>
- Date: Fri, 17 Aug 2001 10:39:58 -0400
>
Message: 6
>
Date: Thu, 16 Aug 2001 14:37:21 -0500
>
From: Chilton Webb <email@hidden>
>
To: email@hidden
>
Subject: Poll.h
>
>
OK, yet another chunk of code from the Stevens' Networking book I can't
>
get to run. This time I realize I need the poll.h file, only I can't
>
find the poll.h. A few online resources suggest that some of the Unix
>
variants don't support Poll, just Select. Is OSX one of those that don't
>
support it?
Yes, just like NT, MacOSX doesn't have poll. I've only ever noticed it on
Solaris.
Use select() instead.
If you noticed on pp 388 (7.11 Input/Output Multiplexing) the first line
reads,
"System V Release 3 provides the poll system command, which corresponds
somewhat
to the 4.3BSD select system call."
Just incase you've not noticed, MacOSX is a BSD system and not System V ;-)
>
>
Also, where can I find information about things like this so I can stop
>
asking for help with the easy stuff? The man pages? They have an entry
>
for polling, but weren't much help beyond that. I searched every drive I
>
could find for that file. No findey nothin.
Don't assume System V is the same as BSD... that'd be a start. Mostly, the
man
pages are your best option. There're a couple of GUI apps for man, I use
one
called "ManThor".
>
>
Thanks,
>
-Chilton