Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Migrating C header files from VMS to DEC Unix
@ 1996-05-30  4:00 Keith Dancey
  1996-05-30  4:00 ` Robert Koehler
  1996-05-30  4:00 ` Migrating C header files from VMS to DEC Keith Dancey
  0 siblings, 2 replies; 3+ messages in thread
From: Keith Dancey @ 1996-05-30  4:00 UTC (permalink / raw)




Hello,

I have just "inherited" some code from unfamiliar environments:-}

I have VMS C code which #includes <unixio.h> and <file.h> header files, and which
I am porting to DEC Unix (OSF).  These header files, however, do not appear to be 
known to DEC Unix (OSF) despite using the -migrate and -vaxc switches..

Replacing them with <stdio> has proved insufficient (undeclared symbol).

The OpenVMS C User's Guide and Run-Time Library do not mention these header files
in any detail (as far as I can see), and there's no reference to them in the DEC 
Unix (OSF) cc man pages:-(

Does anyone know if these header files are tucked away somewhere in DEC Unix (they
are not in /usr/include) or subsumed in some other header file, please?

Is the only solution a bit of re-writing?


Cheers,

Keith Dancey
Earth Observation Data Group





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Migrating C header files from VMS to DEC
  1996-05-30  4:00 Migrating C header files from VMS to DEC Unix Keith Dancey
  1996-05-30  4:00 ` Robert Koehler
@ 1996-05-30  4:00 ` Keith Dancey
  1 sibling, 0 replies; 3+ messages in thread
From: Keith Dancey @ 1996-05-30  4:00 UTC (permalink / raw)




In article gee@newton.cc.rl.ac.uk, kgd@inf.rl.ac.uk (Keith Dancey) writes:
>
>Hello,
>
>I have just "inherited" some code from unfamiliar environments:-}
>
>I have VMS C code which #includes <unixio.h> and <file.h> header files, and which
>I am porting to DEC Unix (OSF).  These header files, however, do not appear to be 
>known to DEC Unix (OSF) despite using the -migrate and -vaxc switches..
>
>Replacing them with <stdio> has proved insufficient (undeclared symbol).
>
>The OpenVMS C User's Guide and Run-Time Library do not mention these header files
>in any detail (as far as I can see), and there's no reference to them in the DEC 
>Unix (OSF) cc man pages:-(
>
>Does anyone know if these header files are tucked away somewhere in DEC Unix (they
>are not in /usr/include) or subsumed in some other header file, please?


Ha!  Answering my own questions now!

Digging around the OpenVMS header files to see what they contained led me to
discover <unixio.h> and <file.h> are effectively subsumed by <fcntl.h>, 
<sys/stat.h> and <sys/types.h> in DEC Unix:-)


Happy now.

Keith Dancey
Earth Observation Data Group





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Migrating C header files from VMS to DEC Unix
  1996-05-30  4:00 Migrating C header files from VMS to DEC Unix Keith Dancey
@ 1996-05-30  4:00 ` Robert Koehler
  1996-05-30  4:00 ` Migrating C header files from VMS to DEC Keith Dancey
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Koehler @ 1996-05-30  4:00 UTC (permalink / raw)



Keith Dancey (kgd@inf.rl.ac.uk) wrote:

: Hello,

: I have just "inherited" some code from unfamiliar environments:-}

: I have VMS C code which #includes <unixio.h> and <file.h> header files, and which

unixio.h could be replaced by unistd.h, file.h you should have somewhere,
but maybe not /usr/include.


------------------------------------------------------------------------------
Bob Koehler                     | CSC/SSD/MITG
rkoehler@csc.com                |



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-05-30  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-05-30  4:00 Migrating C header files from VMS to DEC Unix Keith Dancey
1996-05-30  4:00 ` Robert Koehler
1996-05-30  4:00 ` Migrating C header files from VMS to DEC Keith Dancey

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