comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic.brenta@insalien.org>
Subject: Re: ISO/IEC 14519 - Ada POSIX binding
Date: 22 Jun 2003 00:28:48 +0200
Date: 2003-06-22T00:28:48+02:00	[thread overview]
Message-ID: <m3brwrrrof.fsf@insalien.org> (raw)
In-Reply-To: ZwV4HxdnEIJ6@eisner.encompasserve.org

Kilgallen@SpamCop.net (Larry Kilgallen) writes:
> VMS direct IP access uses the QIO system service which returns
> status on every call and after every IO completion.  Layering a
> C-language socket structure on top of that introduces the awful
> "errno" business.  Now should an IP package for Ada go through that
> C-language layer and try to undo the "errno" business, or should it
> call the QIO system service directly and never get tied up in
> "errno" at all ?

The POSIX.5 Ada interface does not have to be implemented on top of
the C interface, so on VMS, a well-written Ada binding would call the
QIO service directly.

As noted elsewhere in this thread, POSIX.5 uses an exception
(Posix.Posix_Error) to report that an error occurred, and an
"errno"-like variable to specify what kind of error occurred.  Thanks
to the exception, a lot of the ugliness goes away, and thanks to the
variable, it is easier to add new error codes to POSIX.5 without
breaking existing apps.
 
> > Furthermore, I would think that anyone designing
> > a new OS in the next ten years would want to make it POSIX-compliant,
> > because it would be too difficult to try an impose an alternative API.
> > In fact, you've probably noticed that even the MVS and z/OS mainframe
> > operating systems became POSIX-compliant for just that reason.
> 
> When VMS added Posix-compliant calls it was to allow C programmers
> to use it in a fashion to which they were accustomed.  They did
> _not_ force all programmers to use those C conventions.  Is the MVS
> situation somehow more restrictive ?

No, the other interfaces to the same operating system services are
still available (note the plural: there are several for different
languages like assembler, PL/I and Rexx).  The addition of a POSIX
interface just makes it easier to port applications to mainframes,
which in today's world appears to be a condition for survival.

-- 
Ludovic Brenta.




  reply	other threads:[~2003-06-21 22:28 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-19 21:43 ISO/IEC 14519 - Ada POSIX binding Mark Lorenzen
2003-06-19 21:29 ` tmoran
2003-06-28 23:48   ` Richard Riehle
2003-06-20 11:57 ` Marin David Condic
2003-06-20 14:08   ` Ludovic Brenta
2003-06-20 16:39     ` Warren W. Gay VE3WWG
2003-06-20 18:33       ` tmoran
2003-06-20 19:09         ` Warren W. Gay VE3WWG
2003-06-21 19:14         ` Florian Weimer
2003-06-21 19:42           ` tmoran
2003-06-21 21:04             ` Robert I. Eachus
2003-06-29 15:05             ` Florian Weimer
2003-06-20 19:24       ` Georg Bauhaus
2003-06-20 20:49         ` Warren W. Gay VE3WWG
2003-06-20 20:49       ` Wesley Groleau
2003-06-20 23:05         ` Mark Lorenzen
2003-06-21  1:49         ` David Emery
2003-06-21 19:19           ` Florian Weimer
2003-06-21 21:47             ` David Emery
2003-06-21 22:22               ` Larry Kilgallen
2003-06-23 16:13               ` Warren W. Gay VE3WWG
2003-06-23 22:41                 ` Berend de Boer
2003-06-24  9:52                   ` Lutz Donnerhacke
2003-06-24 20:43                     ` Berend de Boer
2003-06-25  9:02                       ` Pascal Obry
2003-06-25  9:46                       ` Lutz Donnerhacke
2003-06-25 21:19                         ` Berend de Boer
2003-06-21 13:01       ` Pascal Obry
2003-06-21 12:11     ` Marin David Condic
2003-06-21 12:44       ` Ludovic Brenta
2003-06-21 13:03         ` Larry Kilgallen
2003-06-21 22:28           ` Ludovic Brenta [this message]
2003-06-22  3:45             ` Larry Kilgallen
2003-06-22  8:47               ` Mark Lorenzen
2003-06-23 16:36         ` Warren W. Gay VE3WWG
2003-06-24 11:46           ` Marin David Condic
2003-06-21 19:09 ` Florian Weimer
2003-06-21 22:38   ` Mark Lorenzen
2003-06-21 22:51     ` Ludovic Brenta
2003-06-23 16:54       ` Warren W. Gay VE3WWG
2003-06-24 11:49         ` Marin David Condic
2003-06-24 13:31           ` Warren W. Gay VE3WWG
2003-06-23 16:46     ` Warren W. Gay VE3WWG
2003-06-23 22:43       ` Berend de Boer
2003-06-29 15:10     ` Florian Weimer
2003-06-29 20:58       ` David Emery
replies disabled

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