ewx: (Default)
[personal profile] ewx
If anyone has convenient access to platforms missing from the table at http://www.greenend.org.uk/rjk/2001/06/poll.html, or can fill in the existing gaps, it would be nice to hear from you.

(no subject)

Date: 2004-03-06 06:21 am (UTC)
From: [identity profile] nunfetishist.livejournal.com
NetBSD bask.i.digital-scurf.org 1.6.1 NetBSD 1.6.1 (GENERIC) #0: Wed Apr 9 03:02:04 UTC 2003 autobuild@tgm.daemon.org:/autobuild/netbsd-1-6/sparc/OBJ/autobuild/netbsd-1-6/src/sys/arch/sparc/compile/GENERIC sparc
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)
pm215: (Default)
From: [personal profile] pm215

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)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com
Pending error probably means getsockopt with SO_ERROR.

(no subject)

Date: 2004-03-06 06:56 am (UTC)
pm215: (Default)
From: [personal profile] pm215

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)
pm215: (Default)
From: [personal profile] pm215

Here's what I got out of cygwin running under WinXP:

CYGWIN_NT-5.1 enterprise 1.5.7(0.109/3/2) 2004-01-30 19:32 i686 unknown unknown Cygwin
pipe: POLLIN
socketpair: POLLHUP
SHUT_WR socketpair: POLLHUP
SHUT_RD socketpair: 0x8
SHUT_RD socketpair: wasn't at EOF after all (-1, 110)
regular: POLLIN

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)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com
Thanks l-)

November 2025

S M T W T F S
      1
2345678
91011121314 15
1617 181920 2122
23242526272829
30      

Most Popular Tags

Expand Cut Tags

No cut tags