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: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.