From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!attcan!uunet!cme-durer!leake From: leake@cme-durer.ARPA (Stephe Leake) Newsgroups: comp.lang.ada Subject: Re: host OS signature available thru text_io? Message-ID: <444@marvin.cme-durer.ARPA> Date: 16 May 88 17:49:54 GMT Organization: National Bureau of Standards, Gaithersburg, MD In-reply-to: CONTR47@NOSC-TECR.ARPA's message of 13 May 88 14:41:47 GMT List-Id: 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