comp.lang.ada
 help / color / mirror / Atom feed
From: leake@cme-durer.ARPA (Stephe Leake)
Subject: Re: host OS signature available thru text_io?
Date: 16 May 88 17:49:54 GMT	[thread overview]
Message-ID: <444@marvin.cme-durer.ARPA> (raw)
In-Reply-To: CONTR47@NOSC-TECR.ARPA's message of 13 May 88 14:41:47 GMT

In article <8805131445.AA23183@oldajpo.sei.cmu.edu> sam harbaugh writes:

>   We aspire to build a piece of Ada software
>   that will be portable across VMS, Unix and DOS.
>   Is there a way to determine the host OS through text_io?
>   SYSTEM.SYSTEM_NAME seems to be peculiar to the
>   compiler and we want to be able to use any
>   validated compiler so I conclude the package system
>   isn't of any help.
>	 Any other ideas on getting a host os signature?
   regards, sam harbaugh
   ---------------------

Perhaps you could try opening a file, using OS-specific file syntax,
and then whichever doesn't raise NAME_ERROR or USE_ERROR is the
correct one. (I haven't tried this yet).
-- 
NAME:   Stephe Leake                    TELE: (301) 975-3431
USMAIL: National Bureau of Standards    ARPA: leake@cme-durer.arpa
        Rm. B-124, Bldg. 220            UUCP: uunet!cme-durer!leake
        Gaithersburg, MD  20899

             reply	other threads:[~1988-05-16 17:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1988-05-16 17:49 Stephe Leake [this message]
  -- strict thread matches above, loose matches on Subject: below --
1988-05-13 14:41 host OS signature available thru text_io? CONTR47
replies disabled

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