comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: Unix SELECT Ada binding
Date: 1999/07/21
Date: 1999-07-21T00:00:00+00:00	[thread overview]
Message-ID: <P1JRAm80#GA.217@newstoo.hiwaay.net> (raw)
In-Reply-To: 379638B1.101427E5@res.raytheon.com


Andy Askey <askeya@res.raytheon.com> wrote in message
news:379638B1.101427E5@res.raytheon.com...
> Has anyone created an Ada package with binding into the SELECT C library
> function that does I/O multiplexing?  The binding is straight forward
> but there are several macros (FD_SET, FD_CLR, ...) that have to be
> translated into Ada.
>
> For example, the select.h file has the following macro for FD_SET:
>
> #define FD_SET(__n, __p)        ((__p)->fds_bits[(__n)/FD_NFDBITS] |= \
>                                     ((unsigned)1 << ((__n) %
> FD_NFDBITS)))
>
>
> If anyone has an example of this they care to share, we will greatly
> appreciated it.

Walk over to the EADTB side of your building.  I did it for VADS in
the EADTB networking code, some five years ago.






  reply	other threads:[~1999-07-21  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-21  0:00 Unix SELECT Ada binding Andy Askey
1999-07-21  0:00 ` David C. Hoos, Sr. [this message]
1999-07-22  0:00 ` Gisle S�lensminde
1999-07-22  0:00 ` Andi Kleen
1999-07-22  0:00 ` Samuel T. Harris
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox