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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f890526de6a8a218 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news2.volia.net!news.germany.com!news.belwue.de!news.uni-stuttgart.de!carbon.eu.sun.com!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: How to detect OS type and version? Date: Sat, 15 Oct 2005 14:12:42 +0000 (UTC) Organization: BT Openworld Message-ID: References: <22jsk1pnk6664cr4so2nig7ssi2u0d6bv7@4ax.com> <434e4a25_1@glkas0286.greenlnk.net> <434f643e$1_1@glkas0286.greenlnk.net> NNTP-Posting-Host: host86-131-222-95.range86-131.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com 1129385562 951 86.131.222.95 (15 Oct 2005 14:12:42 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Sat, 15 Oct 2005 14:12:42 +0000 (UTC) In-Reply-To: X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) Xref: g2news1.google.com comp.lang.ada:5701 Date: 2005-10-15T14:12:42+00:00 List-Id: Larry Kilgallen wrote: > In article , "Randy Brukardt" writes: > > >>Ada 83 compounded the problem by implying that users could simply use a >>pragma System_Name to change the target. > > > If it describes the target, certainly that must be under the > control of the user, since compilation might be in a different > environment from execution. If you are cross compiling then the version of package System for the target would have a System.Name to reflect the target. I'm not sure why this is a problem for any 'closed' compiler, as the vendor must know the exact target (OS + processor + switches). I can understand there is a problem for 'open' compilers, as anyone can build for any OS+processor+switches and make the system name anything - even erroneous! Cheers -- Martin