From: Andy Askey <askeya@res.raytheon.com>
Subject: Unix SELECT Ada binding
Date: 1999/07/21
Date: 1999-07-21T20:16:39+00:00 [thread overview]
Message-ID: <379638B1.101427E5@res.raytheon.com> (raw)
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.
Thanx.
Andy
--
---------------------------------------------------
| Andy Askey |
| Software Engineer |
| Raytheon Systems Company |
| 670 Discovery Drive, Huntsville, AL 35806 |
| Phone: (256) 971-2367 Fax: (256) 971-2306 |
| andrew_j_askey@res.raytheon.com |
---------------------------------------------------
next 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 Andy Askey [this message]
1999-07-21 0:00 ` Unix SELECT Ada binding David C. Hoos, Sr.
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