From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 3717dac89a,a975f64b947c122 X-Google-Attributes: gid3717dac89a,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!howard From: Howard S Shubs Newsgroups: comp.sys.dec,comp.os.vms Subject: Re: RMS internals? Date: Sun, 09 Aug 2009 03:14:43 -0400 Organization: = 'INDEXED' Message-ID: References: <4a7c4310$1@flight> <4a7dbb58$0$295$14726298@news.sunsite.dk> <4a7dc34a$0$299$14726298@news.sunsite.dk> <0036d9be$0$5027$c3e8da3@news.astraweb.com> <0037589e$0$28455$c3e8da3@news.astraweb.com> NNTP-Posting-Host: p24d1bfbfff00000033bdc67608a75a2be93789b45bc15981.newsdawg.com Mail-Copies-To: nobody User-Agent: MT-NewsWatcher/3.5.3b3 (PPC Mac OS X) X-Face: "S"r{U%bs].&Ud}Pc~~~0a]M:t5l>>EN\1Faw10M9NK1Xq59wo7-"s0S+[{etQorO /Nf-Ci"i9v'MT!R8)J]N[4|2&x1r^Iq&{SB"6dknr0=+6UFb.>+{zMn_1=rw&/V+"d@* ZS5\LoW_ Xref: g2news2.google.com comp.sys.dec:1264 comp.os.vms:20631 In article <0037589e$0$28455$c3e8da3@news.astraweb.com>, JF Mezei wrote: > If your client trasnfered in binary mode, you would have raw data with > CR-LFs terminating records. (or whatever line termination sequence > windows uses). It would be easier to parse since there would be no RMS > interpretation of the data. > > Binary/image mode usually results in a file created on VMS with fixed > length 512 byte records (aka: 1 record per block) and no record > attributes. So when you read the data, you get the data uninterpreted by > RMS. Yes, that's why I asked them to get me a file transferred in binary mode. I wanted to see what it'd look like to me. Fixed length 512 byte "records" aside, I'm not sure I want to play the "what terminator are we looking for today" game. Coming from Windows, that's a pretty easy game, I'll grant you, but I want to keep this as general as I can. My code to deal with UNDEFINED is the simplest. It just says, do we have enough data remaining in the buffer? If yes, copy the next 33097 bytes to the caller's buffer, and return. If it were only that easy all the time. :-/ (otherwise, copy what remains to the user's buffer, $READ, then copy the remaining data we need for the user, and return, always allowing for EOF, of course) -- Don't bother with piddly crap like "gun control". Life is 100% fatal. Ban it.