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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,814d0ec938d6e4da X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-24 10:44:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!easynet-tele!easynet-melon!easynet.net!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: How to find directory where the program is? Date: Wed, 24 Apr 2002 17:44:24 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <3CC6D15A.2070509@mail.com> NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1019670264 7106 129.241.83.78 (24 Apr 2002 17:44:24 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 24 Apr 2002 17:44:24 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:23069 Date: 2002-04-24T17:44:24+00:00 List-Id: On Wed, 24 Apr 2002 11:38:02 -0400, Hyman Rosen wrote: > Preben Randhol wrote: >> How can one in Ada95 find out from which directory the Ada program is >> stored in. I mean I need to find out if my program is stored in >> /usr/bin/ or /usr/local/bin or some other directory. > > There is no a priori reason for this to even be possible. Your Ada > program could be loaded in PROM on your toaster, and even in UNIX, > the same executable file could have many links to it in different > directories, with different names. > I hope nobody puts my program in a toaster ;-), but I see what you mean. Preben