[Info-vax] Non-portable code

Ken Fairfield ken.fairfield at gmail.com
Wed Jan 6 12:43:08 EST 2010


On Jan 6, 4:36 am, Jan-Erik Söderholm <jan-erik.soderh... at telia.com>
wrote:
> > In article <mn.2d1b7da1fb0d0bdb.104... at brutele.be>, Marc Van Dyck
> > <marc.vand... at brutele.be> writes:
> >> G'd evening to all...
>
> >> I have a program on my systems, that was written in the VAX ages, and
> >> that I use to display which version of layered products, tools, etc,
> >> are installed. It simply extracts from the image headers the version
> >> info that has been put there by the linker, with the IDENT clause of
> >> the link options file. ...
>
> Check if this works on your system :
>
> $ dir sys$system:DCPS$SMB.EXE
>
> Directory SYS$COMMON:[SYSEXE]
>
> DCPS$SMB.EXE;1
>
> Total of 1 file.
>
> $ analyze/image/sel=(arch,ident,link_time) sys$system:DCPS$SMB.EXE
> SYS$COMMON:[SYSEXE]DCPS$SMB.EXE;1
> OpenVMS Alpha
> "DCPS V2.6 ECO 3"
> 14-SEP-2007 10:41:47.22
>
> $ sh sym analyze$*
>    ANALYZE$ARCHITECTURE = "OpenVMS Alpha"
>    ANALYZE$BUILD_IDENTIFICATION = ""
>    ANALYZE$FILE_TYPE = ""
>    ANALYZE$IDENTIFICATION = ""DCPS V2.6 ECO 3""
>    ANALYZE$IMAGE_TYPE = ""
>    ANALYZE$LINKER_IDENTIFICATION = ""
>    ANALYZE$LINK_TIME = "14-SEP-2007 10:41:47.22"
>    ANALYZE$NAME = ""
> $
>
> See "$ help analyze /image /select" for details.

FYI, the ANALYZE$* symbols are not created on VMS/Alpha 7.3-2,
but they are created on VMS/Alpha 8.3.  Curious as to when this
was added...

    -Ken



More information about the Info-vax mailing list