From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,f67af2b8753f41be X-Google-Attributes: gid1164f8,public From: hoffman@xdelta.enet.dec.nospam (Hoff Hoffman) Subject: Re: Unix port to VMS Date: 1999/01/26 Message-ID: <78lits$6n9@usenet.pa.dec.com>#1/1 X-Deja-AN: 437297837 Distribution: world References: <78589k$lot$1@news.ncal.verio.com> Organization: Compaq Computer Corporation Reply-To: hoffman@xdelta.zko.dec.nospam Newsgroups: comp.sys.dec In article <78589k$lot$1@news.ncal.verio.com>, "Eric Fish" writes: :I have a requirement to port a program which collects data on a TCP/IP :stream and writes the data using standard C functions to the local system. :Currently, the program works under Unix and NT. : :How hard would it be to port this to a VMS environment? This question is difficult to answer -- without seeing the code. I've seen some ports take minutes, while others take rather longer. How long a port might take depends highly on the general portability of the code, and particularly on exactly what the code is doing... Things tend to get more interesting when porting code using process control or platform-specific operations -- fork/exec, etc. :Does the VMS environment support the standard C library and TCP/IP socket :library? Yes. The C runtime is present by default. The IP libraries (used from within the C runtime) require the installation of a TCP/IP package, such as TCP/IP Services for OpenVMS. :Is there some type of "Unix mode" which is supported under/alongside VMS, so :that Unix apps can be run seamlessly without having to know anything about :VMS? Assuming use of ANSI C calls and typical ANSI or XPG functions -- and short of attempting to use system() to start up a platform-specific tool -- the existing C code should work with little or no effort. :How does one start and monitor a program from the command line in VMS? With DCL$PATH enabled, one simply enters the executable image filename or the name of the DCL command procedure. Without DCL$PATH enabled, one uses the RUN command or the foreign command mechanism. See DCL1 and PROG2 in the OpenVMS FAQ. The OpenVMS User's Guide as well as the Programming Concepts manuals will be of interest, as will the C and TCP/IP documentation. -- The comp.os.vms newsgroup is a better spot for OpenVMS questions. comp.sys.dec tends to have rather more traffic unrelated to OpenVMS... -------------------------- pure personal opinion --------------------------- Hoff (Stephen) Hoffman OpenVMS Engineering hoffman#xdelta.zko.dec.com