From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,5e74e0b23842db90 X-Google-NewGroupId: yes X-Google-Attributes: gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.93.230 with SMTP id cx6mr26214wib.5.1363800892263; Wed, 20 Mar 2013 10:34:52 -0700 (PDT) Path: bp2ni106848wib.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!us.feeder.erje.net!news.ripco.com!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Date: Wed, 20 Mar 2013 12:33:36 -0500 From: "Jerome H. Fine" Organization: Just Sufficient User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: Access to RSTS/E IOPAGE Registers References: <511e2731.130278790@nntp.aioe.org> <511e442b.137696544@nntp.aioe.org> <5120d34f.47638789@nntp.aioe.org> <512385cb.224392072@nntp.aioe.org> <512a1f3b.52491122@nntp.aioe.org> <51375fe9.58270507@nntp.aioe.org> <51498b34.39612647@nntp.aioe.org> In-Reply-To: <51498b34.39612647@nntp.aioe.org> Message-ID: <5149f339$0$32104$14726298@news.sunsite.dk> NNTP-Posting-Host: 206.248.171.217 X-Trace: news.sunsite.dk DXC=GQee9CaL^_FK0]X@\@M^fKYSB=nbEKnkK\B35ejE16cFc`DZ:1Pparamucho wrote: >Is there anyway for a task to determine the directory from which the >task was run? I can find the device and unit using "OV", but I can't >see anyway to work out the directory. I want to use this information >to automatically find related files--for example, when RTX.TSK is >activated I want to be able to read "RTX.INI" from the same directory >and to access "RTX.DSK" likewise from the same directory. > I don't think that you are asking about running under RT-11. Since I don't know about RSX-11 internals, I will defer to Johnny. Under RT-11, any program which runs using overlays has access via the .CStatus EMT request to the physical device name where the program is located. Since any program can be declared to use overlays by setting the correct bit in the $Jsw location in the program image file - location 44 octal - all programs under RT-11 are able to locate and read the entry for their file label on the disk drive where the file was first read when the program was started. This means that even if a file under RT-11 is RENAMEd and copied to a different directory, that new file name and location can be determined by the program. Both DIR.SAV and PIP.SAV do this all the time, although not to determine their own file name or location. Jerome Fine