From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,5b80e6cfed4da938 X-Google-Attributes: gidf7344,public X-Google-Thread: 10f8a1,5b80e6cfed4da938 X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1164f8,bf3c6d52d516443f,start X-Google-Attributes: gid1164f8,public X-Google-Thread: fce85,bf3c6d52d516443f,start X-Google-Attributes: gidfce85,public X-Google-ArrivalTime: 1995-03-27 18:43:51 PST Path: nntp.gmd.de!dearn!blekul11!ccsdec1.ufsia.ac.be!reks.uia.ac.be!idefix.CS.kuleuven.ac.be! Belgium.EU.net!EU.net!howland.reston.ans.net!news2.near.net!das-news2.harvard.edu!oitnews.harvard.edu!news.sesqui.net!uuneo.neosoft.com!Starbase.NeoSoft.COM!not-for-mail From: claird@Starbase.NeoSoft.COM (Cameron Laird) Newsgroups: comp.os.vms,vmsnet.alpha,comp.sys.dec,vmsnet.vms-posix Subject: OpenVMS sockets (was: Netscape 1.0n for AXP ?) [LONG] Followup-To: comp.os.vms Date: 27 Mar 1995 18:39:14 -0600 Organization: NeoSoft Internet Services +1 713 968 5800 Message-ID: <3l7lri$88i@Starbase.NeoSoft.COM> References: <1995Mar3.083918.1@ugcmu> <1995Mar23.131025.1@sable> NNTP-Posting-Host: 198.64.6.26 Xref: nntp.gmd.de comp.os.vms:67570 vmsnet.alpha:3471 comp.sys.dec:22655 vmsnet.vms-posix:331 In article , Peter da Silva wrote: >In article <1995Mar23.131025.1@sable>, >Patrick MOREAU, CENA Athis, Tel: (1) 69.57.70.40 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 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 , , , ..., 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 , but no fcntl(); it has no , but does have a wait() which relies on . 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