[Mono-devel-list] patch to add poll to Mono.Posix

Marek Habersack grendel at caudium.net
Wed Sep 1 14:48:48 EDT 2004


On Wed, Sep 01, 2004 at 09:45:31AM -0700, Jackson Harper scribbled:
> On Wed, 2004-09-01 at 15:47 +0200, Paolo Molaro wrote:
> > On 08/31/04 Jackson Harper wrote:
> > > Does anyone have any issues with the attached patch? 
> > 
> > As Dick noted, the POLL* values may not be the same on all the
> > platforms, same for the order of the fields inside struct pollfd.
> > This is a general problem with the posix module, we need to rework how
> > it's built anyway later.
> > Also note that poll is not available on some architectures (macosx comes
> > to mind, but there are others for sure).
> > That said, both issues could be solved later on when we actually hit
> > them.
> 
> 	I was under the impression that they were constant across platforms
> from the docs I read, however docs can be misleading. I need this
POSIX/SUS define only the event symbolic names and their meanings, the
values assigned to the names are not defined there. I think in reality they
might be the same across platforms, but you must not rely on it IMO. I think
the tough problem is that the constants cannot even be reliably queried on
the runtime, so basically there will always be a threat you're using invalid
values (unless you, perhaps, provide a C code snippet compiled for the
target platform, of course).

regards,

marek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040901/e713921e/attachment.bin 


More information about the Mono-devel-list mailing list