* host OS signature available thru text_io?
@ 1988-05-13 14:41 CONTR47
0 siblings, 0 replies; 2+ messages in thread
From: CONTR47 @ 1988-05-13 14:41 UTC (permalink / raw)
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?
(with a smile; Ada was designed for portability so I'm
sure there is a way) Thanks in advance.
regards, sam harbaugh
---------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: host OS signature available thru text_io?
@ 1988-05-16 17:49 Stephe Leake
0 siblings, 0 replies; 2+ messages in thread
From: Stephe Leake @ 1988-05-16 17:49 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1988-05-16 17:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1988-05-13 14:41 host OS signature available thru text_io? CONTR47
-- strict thread matches above, loose matches on Subject: below --
1988-05-16 17:49 Stephe Leake
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox