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=-1.9 required=5.0 tests=BAYES_00,LOTS_OF_MONEY autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: How to find the type of operating system. Date: Wed, 6 Apr 2016 16:41:31 -0500 Organization: JSA Research & Innovation Message-ID: References: <57053167$0$4216$e4fe514c@news.kpn.nl> NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1459978892 2089 24.196.82.226 (6 Apr 2016 21:41:32 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Wed, 6 Apr 2016 21:41:32 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Response Xref: news.eternal-september.org comp.lang.ada:30027 Date: 2016-04-06T16:41:31-05:00 List-Id: "ldries46" wrote in message news:57053167$0$4216$e4fe514c@news.kpn.nl... > How can I fin in which operating system a program runs and other details > of that operating system. Ada has System.System_Name provides an implementation-defined indication of the name of the target, but that often isn't set in any useful way. (Dunno what GNAT does with it, if anything.) So I would say that essentially Ada provides no such information. Of course, individual Ada packages provide some information about the target system (System.Tick which gives info about Calendar.Time, various functions in Ada.Directories give info about the file system, etc.) Randy.