From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: d180ab3bd8,5e74e0b23842db90 X-Google-Attributes: gidd180ab3bd8,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.75.82 with SMTP id a18mr3084490wiw.0.1366252698473; Wed, 17 Apr 2013 19:38:18 -0700 (PDT) Path: p18ni78755wiv.0!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.nobody.at!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: Access to RSTS/E IOPAGE Registers Date: Sun, 14 Apr 2013 20:28:16 +0200 Organization: Update Computer Club Message-ID: References: <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> <516ad94c.41223435@nntp.aioe.org> NNTP-Posting-Host: 178-83-31-172.dynamic.hispeed.ch Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1365964096 10335 178.83.31.172 (14 Apr 2013 18:28:16 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Sun, 14 Apr 2013 18:28:16 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: <516ad94c.41223435@nntp.aioe.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2013-04-14 18:48, paramucho wrote: > On Wed, 20 Mar 2013 22:42:46 +0100, Johnny Billquist > wrote: > >> On 2013-03-20 14:01, Johnny Billquist wrote: >>> On 2013-03-20 11:15, paramucho wrote: >>>> On Thu, 07 Mar 2013 00:51:26 +0100, Johnny Billquist >>>> wrote: >>>> >>>> >>>>> RT11SH.SYS on the other hand is by default expected to be found in >>>>> LB:[1,1]. >>>>> >>>>> The moving of system independent tasks only came about in M+. Before >>>>> that there was only SYSUIC, and everything was expected to sit there. >>>> >>>> What I need is a simple default location, so I guess I'll use [1,1]. >>>> >>> >>> For things similar to RT11SH.SYS, [1,1] is a pretty reasonable place. >>> >>>> 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. >>> >>> Unfortunately, the answer is "no". Running a task that is installed >>> don't have a directory associated with it. Installed tasks just "are". >> >> By the way, depending on what is in those files, you might want to >> reconsider. >> If it is content that different users might want to configure >> differently, then you should either try to figure out there login >> directory, or possibly just use the current directory. >> And if we're talking about system global configuration files and >> whatnot, then the common solution is to use a known directory. For >> example [1,1], but there are many directories that might make sense, >> depending on what it is. Also, you could create your own directory that >> you use. No need to necessarily use any already existing directory. > > It is configurable (although I don't expect to find many users :-), > but I like simple, sensible defaults so that no setup is required most > of the time. I haven't found any information about standard > directories for tasks etc other than [1,1] and [1,54]. Let's see, from the top of my head: [1,1] System libraries and files of general use. [1,2] System help files, system command files [1,3] Recovered files [1,4] System console logs [1,6] Errorlog files, and also FAL log files [1,54] System executables (system dependent) [2,54] Baseline system [3,54] System executables (system independent, M+ only) [6,54] Standalone system [*,10] Sources [*,24] Command files to build sources [*,34] Listings from builds [*,54] Destination task files [11,*] Kernel and device drivers [12,*] MCR and related [13,*] FCP [14,*] RMD [15,*] Executive utilities [16,*] Multiuser utilities [17,*] ERRLOG [20,*] File system related [22,*] MTAACP [23,*] DCL [24,*] TDX [25,*] QMG [26,*] BPR [27,*] CON,HRC [30,*] MAC [31,*] TKB [32,*] PIP [33,*] FLX [34,*] VFY [35,*] DMP [36,*] DSC [37,*] EDI [40,*] SLP [42,*] LBR [45,*] K-series [46,*] PRT [47,*] ODT [50,*] FCS [55,*] SYSLIB [57,*] ZAP [60,*] PIPUTL [61,*] RSXMAC (RSX macros) [62,*] BAD [65,*] CRF [70,*] VMR [74,*] BRU [75,*] RCT [77,*] ISC,ICP [103,*] RPT [104,*] ERRLOG control files [107,*] CMP [111,*] PAT [112,*] FMT [113,*] IOX [117,*] CDA [120,*] CRP [121,*] LPP [123,*] VCP [125,*] Shadow recording [126,*] Accounting [200,*] SYSGEN Although not as official, [5,*] is usually where DECnet for the running system resides. (Actually, that became a little more than the top of my head, but there is more documentation somewhere in the manuals, that we could check if you want to.) > RTX is more or less functional (I can assemble RTX with all the source > files and binaries in F11A directories) and I'm adding some bells and > whistles while I bed it down. I wrote a couple of apps to call MCR and > DCL from within RTX, but I can't do things like DCL MOUNT because of > insufficient privilege. Is there some way around this? I've never > worked out how to create a privileged image/user etc. First of all, in which way is things like mount failing? It should normally not try to run ...MOU yourself, but instead call MCR with the command line, and MCR will invoke MOUNT in the proper way. (Or call DCL, same deal.) However, MOUNT expects you to either mount a volume foreign, or else provide the disk label. You cannot use the /OVR switch without being privileged. Also, "privilege" in RSX can be a bit confusing before you get the grasp of things. There are several independent things called privilege. First of all, your terminal have a "privilege" attribute. This is probably the most important kind of privilege there is. All kind of commands that looks for "privilege" is looking at this terminal attribute. Second is the file system (and regions), which looks at UIC, and any UIC with a group number of 10 or less is considered SYSTEM, and goes under that protection mask. Third is task privilege. A task can be privileged. This decides whether the task can do some system calls or not. Things like aborting a task running at another terminal requires that the task is privileged. That's the three things we have to play with. In order to run any task, it needs to be installed. In general, only privileged terminals can install tasks. There is a special variant of install that can be done, which is a flying install, where the task is removed again when it finishes. This is what "RUN" do. And this is the only way non-privileged terminals can install tasks. One additional restriction on this is that non-privileged terminals can only install tasks that are non-privileged. So, for a non-privileged terminal to run a privileged task, it must already have been installed by a privileged terminal. At this point, it is left to the task itself to decide whether or not to allow some operations. So, MOU for example, checks if the terminal is privileged or not, and refuses certain switches if the terminal is not privileged. However, if you try to run the MOUNT.TSK binary yourself, you cannot if you are not a privileged terminal, as the task have the privileged attribute set. A task have the privileged attribute set if, when task built, you give the /PR:n switch. The :n can have three values. 0 - Privileged task with no special mapping 4 - Privileged task mapped to the kernel in a 16K kernel. 5 - Privileged task mapped to the kernel in a 20K kernel. 5 is the default. The /AC:n switch also implies the /PR switch. Finally, tasks that are installed in the form of ...xxx or xxx$$$ are so called prototype tasks, and cannot be run (under M+). Instead they are just templates used by MCR when you give the command, and a copy is created which is deleted when the task finishes. Sorry for the long-winded reply, but maybe it helps. :-) Johnny -- Johnny Billquist || "I'm on a bus || on a psychedelic trip email: bqt@softjar.se || Reading murder books pdp is alive! || tryin' to stay hip" - B. Idol