From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,b79b03565fd3002e X-Google-NewGroupId: yes X-Google-Thread: ffc31,b79b03565fd3002e X-Google-NewGroupId: yes X-Google-Thread: 1164f8,b79b03565fd3002e X-Google-NewGroupId: yes X-Google-Thread: 1018e7,b79b03565fd3002e X-Google-NewGroupId: yes X-Google-Thread: f7344,b79b03565fd3002e X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidf4c4f7386e,gidd180ab3bd8,gid9b70862339,gid3717dac89a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.1.39 with SMTP id 7mr374602pbj.11.1315485153478; Thu, 08 Sep 2011 05:32:33 -0700 (PDT) Path: m9ni1831pbd.0!nntp.google.com!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!newspeer2.se.telia.net!newspeer4.se.telia.net!se.telia.net!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec,comp.os.rsts,comp.os.vms Subject: Re: RMS-11 Date: Thu, 08 Sep 2011 14:32:32 +0200 Organization: Update Computer Club Message-ID: References: <4e6a5c5d.14357271@news.optusnet.com.au> <4e687c78.22576246@news.optusnet.com.au> NNTP-Posting-Host: 2620:0:105f:b:462a:60ff:fefb:aad8 Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1315485152 15074 2620:0:105f:b:462a:60ff:fefb:aad8 (8 Sep 2011 12:32:32 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Thu, 8 Sep 2011 12:32:32 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 In-Reply-To: <4e687c78.22576246@news.optusnet.com.au> Xref: news1.google.com alt.sys.pdp11:1898 vmsnet.pdp-11:321 comp.sys.dec:3228 comp.os.rsts:29 comp.os.vms:34426 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2011-09-08 11.54, paramucho wrote: > On Thu, 08 Sep 2011 08:27:28 +0200, Johnny Billquist > wrote: > >> On 2011-09-08 08.16, paramucho wrote: >>> On Wed, 07 Sep 2011 22:06:38 +0200, Johnny Billquist >>> wrote: >>> >>> >>>> In RMS? With the current implementation, FCS calls the device driver to >>>> get a file id, based on a FNB. RMS claims to open the file without >>>> calling the device driver at all. So it does not give any error. >>>> However, trying to do I/O after that, means that my TCP/IP gives an >>>> error, since there is no connection open on that LUN. >>>> >>>>> Can you single step the RMS code... for a while? >>>> >>>> I've done it some, and it's tedious and complex. RMS is not a small >>>> library... >>> >>> I think I'm starting to understand the problem. >>> >>> Do you have a simple stand-alone RMS test app that demonstrates the >>> problem? I have RSX-11M 4.4 and I also do testing in RUST/XM using an >>> RSX AME (which doesn't support PLAS and only has really basic support >>> for loadable libraries). >> >> Yes, I have an extremely short program that demonstrates the problem. >> However, it isn't of any use to anyone else, since you also need my >> TCP/IP to test this. >> It is a question of RMS reacts/behaves with my device/or with devices >> with different attributes. > > All I need to know about your device should be it's unit > characteristics (record oriented FD.REC etc). That's what RMS will > know about your device (from GLUN). I should be able to fudge the rest > of the details to run a simple test program. Yes, right. As long as you have a device on which to play with... So, to answer your question, currently the characteristics are set as: .WORD DV.SQD!DV.SDI!DV.DIR!DV.MNT!DV.REC ; U.CW1 and with that, I get FCS to: 1) Allow foreign filenames (by the combination of DV.SQD and DV.SDI). 2) FCS does not try to do directory lookups (DV.SDI) 3) Call the driver for IO.ENA/IO.FNA/IO.RNA (DV.DIR) (If the file is to be created, IO.ENA is called, if it's open for read, then IO.FNA is called, I don't really care about IO.RNA). This step allows me to do parsing of the filename block and get a File ID, which is used as an IP address and a port number. 4) Call the driver with IO.ACR/IO.ACE/IO.ACW to actually open the socket. This call only have a file id as the argument, and it's only called if DV.MNT is set. DV.REC is good to have since otherwise FCS will think that this is a tape device, and will do blocking/deblocking of I/O, as well as expect ANSI "D" type records. Without DV.REC, FCS will also call the driver with IO.CRE to create the file. That would not be a problem though, as I can just ignore it. Some of these flags, I could consider fooling around with, if it would get RMS to act the way I want. Like I said, what I'd like, is calls with IO.FNA/IO.ENA and IO.ACx from RMS as well. That said, I might be able to work around this by just using a small macro routine to complete the opening when using RMS, and then use the normal routines for the rest of it.... > I have some tools which let me look at the behavior of apps and play > around with the environment. The first is the RUST RSX AME directive > trace. Here's an example trace using RSX PIP: [...] Hey, nice! What is RUST though? I know I've seen the name, but I can't remember right now. > Using trace I can look at the behavior if different device > characteristics settings, and I can locate the point at which RMS > looks at the settings (GLUN). Right. > The RUST emulator debugger stores the last few hundred instructions so > it's simple to walk back through code and I can use WATCH to track > access to specific pieces of data (such as the unit characteristics). > If I need anything else I just modify the emulator. > > My guess is that RMS is going to need a patch since you want your > device to look like two different sorts of device to it. It might actually be a rather complex patch. It might be easier to just work around in that case. But I don't know for sure, so any help is appreciated. >> However, if you want to try and understand anything, you are welcome to >> log into my development system and step through RMS in there. :-) >> (It's Mim.Update.UU.SE, guest/guest) > > I successfully logged in (after I remembered how HELLO works) and I > managed to look around, but I couldn't see any test programs. DU:[IPLIB]TEST4.MAC Johnny