comp.lang.ada
 help / color / mirror / Atom feed
From: kilgallen@eisner.decus.org (Larry Kilgallen)
Subject: OS Bindings (was: Where is the elusive jump command?)
Date: 2000/04/06
Date: 2000-04-06T00:00:00+00:00	[thread overview]
Message-ID: <2000Apr6.081305.1@eisner> (raw)
In-Reply-To: umq8zyrmzgp.fsf@gong2.clustra.com

In article <umq8zyrmzgp.fsf@gong2.clustra.com>, Ole-Hjalmar Kristensen <ohk@clustra.com> writes:
> kilgallen@eisner.decus.org (Larry Kilgallen) writes:
> 
>> In article <umqvh1wnaad.fsf@gong2.clustra.com>, Ole-Hjalmar Kristensen <ohk@clustra.com> writes:
>> > Robert Dewar <dewar@gnat.com> writes:
>> 
>> >> But in any case, binding to C is hardly a topic that is
>> >> appropriate to people first learning the language!
>> >> 
>> > 
>> > Certainly, but writing bindings to C is one of the first things you
>> > have to do if you start using Ada for systems programming on Unix,
>> > unfortunately.
>> 
>> I am not sure what you mean by "systems programming" in this case.
>> I would presume that writing device drivers requires knowledge of
>> internal data structures, but don't vendors like Rational supply
>> bindings to Unix entrypoints that might be called by user-mode
>> programs ?
> 
> I was not thinking device drivers, but systems like communications
> systems or DBMS's, which typically will need access to Unix
> entrypoints or system calls. A thick binding designed by someone who
> is unaware of the specific needs of the system may not be suitable.
> 
> An example of the the need for system calls: A couple of months ago I
> wanted to test various implementations of asynchronous IO (Sun
> asynchronous IO, POSIX asynchronous IO, and Ada). However, to do a
> meaningful test, I need to ensure that I/O operations on the file
> descriptor complete as defined by synchronized I/O data integrity
> rules. This means either using the fcntl or fsync system calls, or
> setting the O_SYNC flag in the call to open.
> 
> In this case, needing only a few system calls, it may be more cost
> effective to write your own binding, as it's usually not difficult.
> 
> Yes, it may be possible to buy such a binding, although I have not
> seen any reference to it, either on Rational's web pages, nor on
> Adahome's list of bindings. 

On VMS, using either DEC Ada (83) or GNAT, one gets these bindings
in the package STARLET. If a competitor were to develop a compiler
for VMS without the assistance of Compaq they could achieve the same
effect with the public domain SDL program to extract the binding data
from the operating system.

On Windows NT, Aonix ships two competing sets of bindings to the
operating system calls and matching data structures.

Are you saying that no Ada vendors for Unix provide bindings ?

That seems incredible in the face of all the hype about how Unix
is ideal for programming.




  reply	other threads:[~2000-04-06  0:00 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-21  0:00 Where is the elusive jump command? dis90072
2000-03-21  0:00 ` Stanley R. Allen
2000-03-21  0:00 ` Nicolas Brunot
2000-03-21  0:00 ` Nicolas Brunot
2000-03-27  0:00 ` Robert A Duff
2000-03-28  0:00   ` Dale Stanbrough
2000-03-28  0:00   ` Ken Garlington
2000-03-28  0:00     ` Robert Dewar
2000-03-28  0:00       ` Ken Garlington
2000-03-28  0:00         ` Marin D. Condic
2000-03-28  0:00           ` Robert Dewar
2000-03-29  0:00             ` Marin D. Condic
2000-03-29  0:00               ` Gary Scott
2000-03-29  0:00                 ` Robert Dewar
2000-03-30  0:00                   ` Gary Scott
2000-03-30  0:00                   ` Gautier
2000-03-30  0:00                     ` Gary Scott
2000-03-30  0:00                       ` David Starner
2000-03-30  0:00                         ` William B. Clodius
2000-03-30  0:00                       ` Gautier
2000-03-30  0:00                   ` David Starner
2000-03-30  0:00                     ` Marin D. Condic
2000-03-30  0:00                       ` Larry Kilgallen
2000-03-30  0:00                       ` Dan Nagle
2000-03-30  0:00                         ` David Starner
2000-03-30  0:00                         ` Samuel T. Harris
2000-03-31  0:00                           ` Gisle S�lensminde
2000-03-30  0:00                       ` Samuel T. Harris
2000-03-30  0:00                       ` Gary Scott
2000-03-31  0:00                         ` Tarjei T. Jensen
2000-03-31  0:00                           ` Larry Kilgallen
2000-03-31  0:00                             ` Gary Scott
2000-03-31  0:00                       ` Gautier
2000-03-31  0:00                       ` Gisle S�lensminde
2000-03-31  0:00                       ` Tarjei T. Jensen
2000-04-12  0:00                         ` Robert A Duff
2000-04-12  0:00                           ` Stanley R. Allen
2000-04-12  0:00                             ` Samuel T. Harris
2000-04-13  0:00                               ` Stanley R. Allen
2000-04-14  0:00                                 ` Samuel T. Harris
2000-04-14  0:00                                   ` BASIC->Ada, was " tmoran
2000-04-15  0:00                                 ` Robert Dewar
2000-04-15  0:00                             ` Robert Dewar
2000-04-13  0:00                           ` Tarjei T. Jensen
2000-03-30  0:00               ` Alfred Hilscher
2000-03-29  0:00             ` Richard D Riehle
2000-03-29  0:00               ` Robert Dewar
2000-03-30  0:00                 ` Alfred Hilscher
2000-04-01  0:00                   ` Robert Dewar
2000-04-04  0:00                     ` Alfred Hilscher
2000-04-05  0:00                     ` Ole-Hjalmar Kristensen
2000-04-05  0:00                       ` Larry Kilgallen
2000-04-06  0:00                         ` Ole-Hjalmar Kristensen
2000-04-06  0:00                           ` Larry Kilgallen [this message]
2000-04-06  0:00                             ` OS Bindings (was: Where is the elusive jump command?) Ole-Hjalmar Kristensen
     [not found]                             ` <eisner comp.lang.ada:53670>
2000-04-06  0:00                               ` Larry Kilgallen
2000-04-06  0:00                                 ` Robert Dewar
2000-04-08  0:00                                   ` nickerson
2000-04-09  0:00                                     ` Robert Dewar
2000-04-06  0:00                             ` Robert Dewar
2000-04-07  0:00                               ` Tarjei T. Jensen
2000-04-09  0:00                                 ` Robert Dewar
2000-04-10  0:00                                   ` Tarjei T. Jensen
2000-04-12  0:00                                     ` Robert Dewar
2000-04-12  0:00                                       ` Robert A Duff
2000-04-12  0:00                                         ` Tarjei T. Jensen
2000-04-12  0:00                                           ` Robert Dewar
2000-04-12  0:00                                           ` Robert Dewar
2000-04-12  0:00                                           ` Robert A Duff
2000-04-12  0:00                                             ` Florian Weimer
2000-04-12  0:00                                             ` Robert Dewar
2000-04-12  0:00                                               ` Robert A Duff
2000-04-15  0:00                                                 ` Robert Dewar
2000-04-15  0:00                                                   ` Gisle S�lensminde
2000-04-15  0:00                                                 ` Robert Dewar
2000-04-13  0:00                                               ` Tarjei T. Jensen
2000-04-13  0:00                                                 ` Gisle S�lensminde
2000-04-13  0:00                                             ` Tarjei T. Jensen
2000-04-13  0:00                                               ` Robert A Duff
2000-04-18  0:00                                                 ` Tarjei T. Jensen
2000-04-15  0:00                                               ` Robert Dewar
2000-04-15  0:00                                                 ` Tarjei T. Jensen
2000-04-12  0:00                                       ` Tarjei T. Jensen
2000-04-12  0:00                                         ` Robert Dewar
2000-04-13  0:00                                           ` Tarjei T. Jensen
2000-04-15  0:00                                             ` Robert Dewar
2000-04-15  0:00                                               ` Tarjei T. Jensen
2000-03-30  0:00                 ` Where is the elusive jump command? Richard D Riehle
2000-04-01  0:00                   ` Robert A Duff
2000-04-02  0:00                     ` Richard D Riehle
2000-04-02  0:00                       ` Robert Dewar
2000-04-02  0:00                       ` Robert Dewar
2000-04-02  0:00                     ` Robert Dewar
replies disabled

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