Path: utzoo!attcan!uunet!jarthur!usc!zaphod.mps.ohio-state.edu!swrinde!ucsd!nosc!crash!nusdecs!rwhite From: rwhite@nusdecs.uucp (0257014-Robert White(140)) Newsgroups: comp.unix.questions Subject: Re: unix file structure (or lack of same) Keywords: unix, file, database Message-ID: <1990Nov6.002914.20839@nusdecs.uucp> Date: 6 Nov 90 00:29:14 GMT References: <125379@linus.mitre.org> Organization: National University San Diego Lines: 37 In article <125379@linus.mitre.org> duncant@mbunix.mitre.org (Thomson) writes: >I understand that, on unix, the file system is designed so that a file always >looks like a sequence of bytes, with no record structure at all. >Is this correct? You are correct. > [How do you do dbms and "records" question here] counting "records" starting from zero you fseek() to (record_num * record_size) and then you get the data by reading record_size bytes all at once. In general fact (excepting some IBM systems and the like) this is what every "record oriented" operating system does for you every time. Putting the record-type-info in the programs that use the data is "arguably better" because 'most' filing constructs do not need the overhead (in sorage and wasted processing) associated with record-oriented storage. e.g. of the following filing constructs Text File Flat File Program Executable Library File Archive File Directory DBMS Data File Index File (arguably trival of above) only the last three are really(tm) fixed-length/known-variable-length record structured files. Rob.