comp.lang.ada
 help / color / mirror / Atom feed
* Unix SELECT Ada binding
@ 1999-07-21  0:00 Andy Askey
  1999-07-21  0:00 ` David C. Hoos, Sr.
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Andy Askey @ 1999-07-21  0:00 UTC (permalink / 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          |
---------------------------------------------------




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-07-22  0:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-21  0:00 Unix SELECT Ada binding Andy Askey
1999-07-21  0:00 ` David C. Hoos, Sr.
1999-07-22  0:00 ` Andi Kleen
1999-07-22  0:00 ` Samuel T. Harris
1999-07-22  0:00 ` Gisle S�lensminde

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