From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: ffc31,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidf4c4f7386e,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.241.37 with SMTP id wf5mr17644424pbc.4.1329820721336; Tue, 21 Feb 2012 02:38:41 -0800 (PST) Path: wr5ni50942pbc.0!nntp.google.com!news1.google.com!goblin3!goblin.stu.neva.ru!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: PDP11 Values from MFPT Date: Tue, 21 Feb 2012 11:38:40 +0100 Organization: Update Computer Club Message-ID: References: <4f3a87d9.14307647@nntp.aioe.org> <4f3ca414.21534066@nntp.aioe.org> <4f3dab02.35785786@nntp.aioe.org> <4f3d06f0.6951576@nntp.aioe.org> <4f3f4ae9.40953632@nntp.aioe.org> <4f41ae68$0$281$14726298@news.sunsite.dk> <4f44e048.2611144@nntp.aioe.org> <4f430fa8$0$294$14726298@news.sunsite.dk> <4f434899.23922519@nntp.aioe.org> NNTP-Posting-Host: 2620:0:105f:b:462a:60ff:fefb:aad8 Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1329820720 4375 2620:0:105f:b:462a:60ff:fefb:aad8 (21 Feb 2012 10:38:40 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Tue, 21 Feb 2012 10:38:40 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 In-Reply-To: <4f434899.23922519@nntp.aioe.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-02-21 09.06, paramucho wrote: > On Mon, 20 Feb 2012 22:29:03 -0500, "Jerome H. Fine" > wrote: > >>> RT-11 does not provide a directory scan system call, so utilities must >>> access the directory directly to scan them. RT-11 guarantees that a >>> directory structure begins at block 6 of a file structured device. >>> >> Actually, while DEC ALWAYS starts the directory structure >> at block 6 of a file structured device, that is not required since >> in block 1, there is a value which holds the starting block number. >> >> I stress that DEC has never used a different value and that ALL >> present code ignores the starting block number specified within >> block 1, but it is a possibility. > > Right. I'm aware of that home block value. It was never used by any > version of RT-11 that I know of. I've sometimes thought it might have > been used by RTEM. I thought of using it myself when I implemented > RUST/SJ sub-directories, but it wasn't worth it. Funny that you mention RTEM, since I seem to have come across a copy that I now have running on my RSX systems. It is weird, and I have not looked at all details. Also, a friend of mine have been doing most of the fooling around. He did get it to boot RT-11 V5.7 after a few patches to RT-11. Seems like RTEM got broken after V5.5 in the RT-11 side. I don't know exactly how it works, but it uses a disk split into two parts. One is shared by all users, and holds all the normal binaries and stuff you'd expect, while the other part is your private disk, which holds all the rest of the stuff you do. But they are merged into one disk in the view of RT-11. Also, it seems like the file protection is used, and all files on the shared part of the disk are protected, which seems like a wise thing. :-) ***** .run rtem RTE>/vs RTEM-11 (VAX/VMS) V01.00 RT-11FB V05.07 .SET SL ON .show all RT-11FB V05.07 Booted from VS0:RTEMFB USR is set SWAP EXIT is set SWAP KMON is set NOIND MODE is set NOSJ TT is set NOQUIET ERROR is set ERROR SL is set ON EDIT is set KED FORTRAN is set FORTRA KMON nesting depth is 3 Global .SCCA flag is disabled CLI is set DCL, CCL, UCL, NO UCF Emulated RT-11 environment, processor type unknown 60KB of memory FP11 Hardware Floating Point Unit Extended Instruction Set (EIS) 50 Hertz System Clock Multi-terminal support Global .SCCA support FPU support Extended unit support Device Status CSR Vector(s) ------ ------ --- --------- LD Installed 000000 000 BA Installed 000000 000 NL Installed 000000 000 SL 122622 000000 000 SD Installed 000000 000 VS Resident 000000 000 TT (Resident) VS (Resident) VS0 = DK , SY MQ (Resident) BA NL LD SL (Loaded) SD 1 free slots Job Name Console Level State Low High Impure --- ---- ------- ----- ----- --- ---- ------ 0 RESORC 0 0 Run 000000 122546 137600 Unit Owner Type WIDTH TAB CRLF FORM SCOPE SPEED -------------------------------------------------------- 0 S-Console DL 80 Yes No No Yes N/A Address Module Words ------- ------ ----- 165324 VS 854. 136020 RMON 5986. 122614 SL 2882. 001000 ..BG.. 20934. No LD units mounted .dir 21-Feb-2012 SWAP .SYS 28P 31-Oct-1998 RTEMFB.SYS 108P 02-Feb-2012 LDM .SYS 11P 01-Feb-2012 BAM .SYS 7P 01-Feb-2012 NLM .SYS 2P 01-Feb-2012 SLM .SYS 17P 30-Jan-2012 SDM .SYS 23P 30-Jan-2012 VSM .SYS 6P 01-Feb-2012 DIR .SAV 20P 31-Oct-1998 PIP .SAV 30P 31-Oct-1998 DUP .SAV 52P 31-Oct-1998 RESORC.SAV 35P 31-Oct-1998 IND .SAV 58P 31-Oct-1998 UCL .SAV 16P 31-Oct-1998 UCF .SAV 16P 31-Oct-1998 UCL .DAT 9P 29-Jan-1984 JOAT .SAV 52P 29-Jan-2012 EDIT .SAV 19P 31-Oct-1998 K52 .SAV 81P 07-Apr-2011 KED .SAV 85P 31-Oct-1998 MACRO .SAV 63P 31-Oct-1998 CREF .SAV 6P 31-Oct-1998 LINK .SAV 59P 31-Oct-1998 LIBR .SAV 24P 31-Oct-1998 FILEX .SAV 22P 31-Oct-1998 SRCCOM.SAV 26P 31-Oct-1998 BINCOM.SAV 25P 31-Oct-1998 SLP .SAV 13P 31-Oct-1998 DUMP .SAV 10P 31-Oct-1998 SIPP .SAV 21P 31-Oct-1998 BUP .SAV 68P 31-Oct-1998 PAT .SAV 11P 31-Oct-1998 HELP .SAV 161P 31-Oct-1998 BATCH .SAV 26P 31-Oct-1998 SETUP .SAV 43P 31-Oct-1998 LET .SAV 6P 31-Oct-1998 SPLIT .SAV 3P 31-Oct-1998 TRANSF.SAV 16P 31-Oct-1998 TRANSF.TSK 76P 31-Oct-1998 TRANSF.EXE 45P 31-Oct-1998 DBGSYM.SAV 10P 31-Oct-1998 INDEX .SAV 11P 31-Oct-1998 INDEXX.SAV 14P 31-Oct-1998 INDEXA.IMG 164P 31-Oct-1998 INDEXB.IMG 165P 31-Oct-1998 INDEX .IDX 7P 31-Oct-1998 PASCAL.SAV 52P 29-Jan-1984 FORTRA.SAV 128P 29-Jan-1984 F77 .SAV 327P 29-Jan-1984 BASIC .SAV 56P 29-Jan-1984 TECO .SAV 50P 31-Oct-1998 SYS .SAV 3P 29-Jan-1984 SYSMAC.SML 66P 19-Dec-1988 SYSLIB.OBJ 47P 19-Dec-1988 PASCAL.OBJ 89P 19-Aug-1986 FORLIB.OBJ 205P 31-Dec-1982 F77OTS.OBJ 135P 29-Jan-1984 F77CVF.OBJ 4P 29-Jan-1984 F77NER.OBJ 1P 29-Jan-1984 F77MAP.OBJ 33P 29-Jan-1984 F77EIS.OBJ 3P 29-Jan-1984 F77RAN.OBJ 2P 29-Jan-1984 F77COM.MSG 14P 29-Jan-1984 ODT .OBJ 8P 31-Oct-1998 VDT .OBJ 8P 31-Oct-1998 STARTM.COM 1P 29-Jan-1984 66 Files, 3002 Blocks 486 Free blocks . ***** >> There are other still "undocumented" features in RT-11 such >> as READ ONLY / WRITE PROTECTED files. > > They are directory entry flags which were defined in the final stages > of RT-11. They were barely used. The Read-only flag is copied by > .LOOKUP, but that's about it. I haven't bothered implementing it > because the new flags are not backwards compatible with earlier > versions of RT-11 (which is, historically, partly my fault). Am I understanding correct that the "P" after the file size is the indication of the read-only status of the file? I seem to remember it appearing to be so from something I did, but I'm not sure. >>> RT-11 magtape and cassette drivers are "special devices" with their >>> own built-in ACPs. Directory operations on these devices may be >>> handled via the USR or by using .SPFUN (special functions) to >>> communicate directly with the driver. In this case the operation is >>> analogous to the RSX QIO interface. Since tape devices can be >>> particularly time consuming it is sometimes advantageous to handle >>> their directory operations without blocking the USR. >>> >>> >> I can't remember if the USR is unblocked when a "special >> device" requests the USR to hand off what is normally a >> request handled by the USR. I seem to remember that the >> USR is invoked initially when a file is opened on a magtape, >> but I can't remember what happens when the device driver >> takes over to handle the open request. Do you know if >> the USR in RT-11 is unblocked at that point? Often, >> the program may not even know that the device for the >> file open request is a "special device" and simply call the >> USR with the usual EMT request for the type of open >> (.LookUp, .Enter) which is required. > > The USR waits for any .LOOKUP/.ENTER to complete. So, if I understand correctly, any program that don't understand that an access to a magtape can be done with .SPFUN, and instead opens it with USR will block until the magtape file have been opened, which can take a serious while? Can a program that is waiting on USR be interrupted by something AST-like? What happens to the USR call meanwhile? Johnny