* OpenVMS sockets (was: Netscape 1.0n for AXP ?) [LONG]
[not found] ` <id.Q0EI1.BQ3@nmti.com>
@ 1995-03-28 0:39 ` Cameron Laird
0 siblings, 0 replies; only message in thread
From: Cameron Laird @ 1995-03-28 0:39 UTC (permalink / raw)
In article <id.Q0EI1.BQ3@nmti.com>, Peter da Silva <peter@nmti.com> wrote:
>In article <1995Mar23.131025.1@sable>,
>Patrick MOREAU, CENA Athis, Tel: (1) 69.57.70.40 <pmoreau@cenaath.cena.dgac.fr> wrote:
>> Networking interface (sockets) is available with Posix 2.0, assuming you have
>> DEC/TCPIP installed.
>
>What if you have a third party product? Does it hide the vendor's protocol
>stack like Winsock or do you have to write for the package?
>
>> But it is probably better to build under native VMS, where
>> sockets and X window interfaces are also supported (and performance better).
>
>Probably true, but we're talking about porting here.
>
>> The DEC C library gives a rather good Unix emulation under OpenVMS.
>
>It seems to handle command line programs and curses stuff, which is the
>majority of net software. But what about stuff like Netscape that has to
>grovel around in the network API?
.
.
.
This is confusing me. I'll try to make a few points explicit,
and I hope the more DECaware will chime in as necessary.
DEC sells the OpenVMS OS for both VAX and AXP machines. The
only VMS DEC sells is called "OpenVMS", and has been for some
time; see <URL: http://www.montagar.com/dfwlug/openvms-faq.html#VMS1>
for details.
DEC has for years bundled technologies in combinations
poorly understood by customers. DECNet and TCP/IP and POSIX,
for example, have usually been "layered products" (things "on
top of" VMS) during the last decade. Sometimes they come at
no additional charge; they're now all part of an OpenVMS del-
ivery, but they're still logically distinct from OpenVMS.
However, DEC salespersons usually go to pains to express
something about the "POSIX compliance" of OpenVMS itself that
I can't translate except to note that they have to say it in
order to enter some government sites. Out-of-the-box OpenVMS
does *not* support all of POSIX (proof: vi is part of the
POSIX spec, and frequent readers of comp.os.vms know quite
well that vi isn't part of a base VMS installation). Few
people care though, because OpenVMS deliveries include a
distribution of enough software to provide full POSIX cap-
abilities. On the fourth hand, though, this is *not* what
Peter et al. were talking about. The base OpenVMS run-time
libraries come quite close to POSIX; they lack <dirent.h>,
<grp.h>, <pwd.h>, ..., fcntl(), stat(), ..., but many of these
functions are available under some other name as system
services. What's worst, from a POSIX standpoint, is trying
to figure out the what's really going on. VMS has an
<fcntl.h>, but no fcntl(); it has no <wait.h>, but does have
a wait() which relies on <processes.h>. VMS even has a
pipe(). Thus, as Peter more-or-less said, POSIX compliance
is not an issue with porting to VMS; all the usual screen,
file, process, ... management functions are available.
The big problem is with networking, which is *not* part of
the POSIX.1 standard. The base networking everyone wants to
do is Berkeley sockets, and DEC comes through again on this
one. An implementation of TCP/IP called UCX comes at no
charge with each OpenVMS license, and it provides a "C
Socket interface for socket communications" (as *DEC TCP/IP
Services for OpenVMS* puts it) just as one would hope.
What's bizarre, though, is how DEC delivers that interface.
socket() is in the run-time library, and behaves as one
would expect. There is no fcntl(), and the other obvious
way to make a channel non-blocking, ioctl(), appears not in
the run-time library, but in a source code fragment in the
"Programming Examples" directory. It's actually only a
part of ioctl(), and it's not consistent (in capitalization
of LIB$GET_EF(), for example) with other parts of the
distribution. Why does DEC do this? I don't know, and
DECSupport (a great organization, by the way) agrees that
it's a problem. In any case, the conclusion is this:
1. porting POSIX and/or Berkeley source code to
base OpenVMS is usually easy (all necessary
functions are available), but it's done best
by someone experienced in DEC quirks (some of
those functions have funny names).
2. there are parts of OpenVMS that it would seem
easier to do in a standard way, than the way
DEC has done. I'll be happy to detail examples,
should there be interest.
--
Cameron Laird http://starbase.neosoft.com/~claird/home.html
claird@Neosoft.com +1 713 267 7966
claird@litwin.com +1 713 996 8546
^ permalink raw reply [flat|nested] only message in thread