From: "Tarjei Tj�stheim Jensen" <tarjei@online.no>
Subject: Re: How to FD_SET in Ada on Linux?
Date: 1999/03/07
Date: 1999-03-07T00:00:00+00:00 [thread overview]
Message-ID: <36E24E63.823E093F@online.no> (raw)
In-Reply-To: 36ddfd4e.0@news.pacifier.com
Steve Doiel wrote:
> I am porting my sockets interface from Windows NT to Red Hat Linux 5.1.
>
> In 'C' FD_ZERO, FD_SET, FD_CLR, and FD_ISSET are implemented as macros in
> the file /usr/include/selectbits.h
>
> I would like to replicate their functionality in Ada, but am having a great
> deal of difficulty in demangling the C code. Has anyone already implemented
> these functions in Ada?
The easiest way of doing this would perhaps be to write a C program that emitted
an Ada module which containes the correct values for these and other constants.
An alternative would perhaps be to use Perl instead of C. However I suspect that
a C version will be easiest to handle. It should assure portability to other
operating systems as the values would always be correct.
Greetings,
prev parent reply other threads:[~1999-03-07 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-03 0:00 How to FD_SET in Ada on Linux? Steve Doiel
1999-03-03 0:00 ` nabbasi
1999-03-04 0:00 ` David C. Hoos, Sr.
1999-03-04 0:00 ` nabbasi
1999-03-04 0:00 ` dennison
1999-03-07 0:00 ` Tarjei Tj�stheim Jensen [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox