comp.lang.ada
 help / color / mirror / Atom feed
* q: pkg for network/UNIX programming; system dependencies
@ 1997-05-29  0:00 Ken Raeburn
  1997-05-30  0:00 ` Jon S Anthony
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ken Raeburn @ 1997-05-29  0:00 UTC (permalink / raw)




I'm thinking about working on a couple small spare-time UNIX projects in
Ada95 to help familiarize myself with the language.  Most such projects
I'm considering right now make use of networking, both TCP and UDP.

I'm looking for a package to help me deal with UNIX system-defined types,
socket- and network-related types and functionality, domain name service,
etc.  I've looked at the "paradise" package, which seems to have some of
what I want, but the latest version I could find is about 3 years old,
only works on SunOS and HP-UX and with three specific compilers (none of
which is GNAT), and is specifically conditionalized in various places for
those systems and compilers.  If that's the closest thing available, I'll
go with it; I just wanted to know if there's anything else.


Oh and a general question: How do you usually deal with OS or
configuration dependencies in Ada?  For example, some systems have the
utmpx functions, some don't; some have wait4, some don't.  Maybe I'm
building a package with a backwards-compatibility option enabled; maybe
it's disabled.  In C and UNIX, I'd use #ifdef and maybe an
autoconf-generated script to test the system characteristics and
user-provided options, and define some macros for conditional
compilation.

The conditionally-compiled region can be very small.  Of course, there
are times when it's large, and when it seems worthwhile to use a separate
source file.  But there are times when it isn't and it doesn't....

TIA,
Ken




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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-05-29  0:00 q: pkg for network/UNIX programming; system dependencies Ken Raeburn
1997-05-30  0:00 ` Jon S Anthony
     [not found]   ` <339302B7.5044@pseserv6.fw.hac.com>
1997-06-04  0:00     ` Ken Raeburn
1997-06-07  0:00     ` Robert Dewar
1997-05-30  0:00 ` Corey Minyard
1997-05-30  0:00   ` W. Wesley Groleau (Wes)
1997-05-31  0:00 ` Nick Roberts

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