I notice that you're including sys/poll.h; POSIX says it's poll.h
(and indeed intent doesn't provide sys/poll.h).
Also, you don't return any value from main.
intent doesn't support socketpair() (we do support actual TCP/IP
sockets, just not UNIX domain sockets); we return POLLIN for both
regular file and pipe.
In related news, I see that POSIX's select() says that the 3rd fdset
should include both 'exceptional conditions' and 'pending errors',
whatever they are. (I think that pending error should result in
the fd being marked as both readable and writeable, but what do I know?)
But that's a socket-specific thing, and the poll() specification
explicitly says that 'pending error' is a generic condition and not
file-type-specific.
(no subject)
Date: 2004-03-06 06:21 am (UTC)pipe: POLLIN|POLLHUP
socketpair: POLLIN
SHUT_WR socketpair: POLLIN
SHUT_RD socketpair: POLLIN
regular: POLLIN
I'll try to get QNX going for you later. :)
(no subject)
Date: 2004-03-06 06:50 am (UTC)I notice that you're including sys/poll.h; POSIX says it's poll.h (and indeed intent doesn't provide sys/poll.h). Also, you don't return any value from main.
intent doesn't support socketpair() (we do support actual TCP/IP sockets, just not UNIX domain sockets); we return POLLIN for both regular file and pipe.
In related news, I see that POSIX's select() says that the 3rd fdset should include both 'exceptional conditions' and 'pending errors', whatever they are. (I think that pending error should result in the fd being marked as both readable and writeable, but what do I know?)
(no subject)
Date: 2004-03-06 06:53 am (UTC)(no subject)
Date: 2004-03-06 06:56 am (UTC)But that's a socket-specific thing, and the poll() specification explicitly says that 'pending error' is a generic condition and not file-type-specific.
(no subject)
Date: 2004-03-07 04:48 am (UTC)Here's what I got out of cygwin running under WinXP:
0x8 is POLLERR. Errno 110 is ESHUTDOWN.
I had to add string.h to the list of includes, because you've used memset().
(no subject)
Date: 2004-03-07 07:34 am (UTC)