home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / arch / 11902 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.8 KB  |  41 lines

  1. Newsgroups: comp.arch
  2. Path: sparky!uunet!UB.com!quack!dfox
  3. From: dfox@quack.sac.ca.us (David Fox)
  4. Subject: Re: Comparison of Alpha, MIPS and PA-RISC-II wanted
  5. Message-ID: <fW0DHHa@quack.sac.ca.us>
  6. Organization: The Duck Pond public unix: +1 408 249 9630, log in as 'guest'.
  7. References: <1992Dec20.164501.291@rlgsc.com> <1992Dec21.194657.759@qb.rhein-main.de>
  8. Date: 23 Dec 1992 16:44:55 UTC
  9. Lines: 30
  10.  
  11. In article <1992Dec21.194657.759@qb.rhein-main.de> vhs@rhein-main.de writes:
  12. >In article <1992Dec20.164501.291@rlgsc.com> gezelter@rlgsc.com writes:
  13. >[discussion about file formats on VMS vs. UNIX flat file deleted]
  14. >> Incorrect. The reason that you cannot read it with C is that C 
  15. >> has consistently ignored the standardization of IO interfaces.
  16. >
  17. >#include <stdio.h>
  18. >
  19. >(The first line in the first example code in the K&R C book)
  20. >
  21. >Honestly it's the definition of IO that's missing here. C/UNIX
  22. >have standardized on NOT sequential but flat direct-access files
  23. >for the filesystem and sequential access for pipes, some devices,
  24. >input format for most system commands, etc.
  25.  
  26. That's an interesting point.  I am not an expert in Unix file access
  27. but I'd guess that Unix has standardized on both sequential
  28. and flat direct-access files, and that sequential access is just a
  29. special case of direct access: read so many bytes sequentially from
  30. a randomly-accessible point in a file.  Or, it has standardized on
  31. sequential file access, and that direct access is a special case, using
  32. the fseek() library call.
  33.  
  34. >I would hazard to say that using non-flat files just isn't as open
  35. >as flat files, simply because the lowest common denominator is
  36. >exceeded.
  37.  
  38. If you mean 'flat' as not being sequentially accessed, then some
  39. sequentially-accessed files can be not open either in the sense
  40. that the file formats are difficult to figure out.
  41.