From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,47a06d19e281eb8d X-Google-Attributes: gidf7344,public X-Google-Thread: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-03-08 09:43:43 PST Xref: gmd.de comp.os.vms:41823 comp.org.decus:2722 comp.sys.dec:14014 comp.unix.advocacy:936 Path: gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!newsxfer.itd.umich.edu!gatech!howland.reston.ans.net!cs.utexas.edu!convex!news.utdallas.edu!feenix.metronet.com!tachyon!montagar!davidc Newsgroups: comp.os.vms,comp.org.decus,comp.sys.dec,comp.unix.advocacy Subject: Re: Is VMS Dying (I really hope so!) Message-ID: <1994Mar8.124343.18772@avatar.montagar.com> From: davidc@avatar.montagar.com (David L. Cathey) Date: 8 Mar 94 12:43:43 CDT References: <1994Feb26.204059.4068@mixcom.mixcom.com> <1994Mar4.050541.14530@toolz.uucp> Organization: Montagar Software Concepts, Plano TX In article , greg@bronze.ucs.indiana.edu (Gregory R. TRAVIS) writes: >>So, why should "the only form of a file" be a 1-D >>array of bytes rather than an array of 512-byte blocks? (Or any other >>size, maybe even variable, as in IBM mainframe disks). > > Umm, is the answer because I can easily imitate arrays of blocks if you > give me a 1-D array of bytes? It's easier to simulate n-dimensional > memory from 1-dimensional memory than it is the other way around. And, > since one of the operating system's jobs should be to make our life easier, > why not have it present everything as a 1-D stream of bytes instead of > n-D blocks of bytes? But why shouldn't the O/S be able to provide hints as to how the data is arranged? Why should the programmer always have to do the imitation? Why is this bad? Does this make stdio bad, too? > Why do you want to know how the device stores information, anyway? > Afterall, it's likely to change in the future. Don't need to. RMS just allows me to understand the organization of the data. If I want a record, I ask for one and get it, just like a call to fgets(). The XQP (a different layer) is the one that understands the relationship between a file and a 1-D set of blocks that makes up the device. The device driver is the one that understands how the blocks are arranged on the actual device. So, you can use RMS to deal with a file as a series of record (just like using stdio or other set of library routines), use RMS or the XQP to access the file as a series of bytes, or skip all that and do direct I/O to the device. Take your pick. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - David L. Cathey |INET: davidc@montagar.lonestar.org Montagar Software Concepts |UUCP: ...!montagar!davidc P. O. Box 260772, Plano TX 75026-0772 |Fone: (214)-618-2117 NOTE: Due to circumstances beyond my control, please use the new Internet address until further notice.