Path: utzoo!utgpu!water!watmath!clyde!att!pacbell!cogent!uop!joshua
From: joshua@uop.edu (Ed Bates: Joshua is my son's name.)
Newsgroups: comp.lang.c
Subject: Re: VMS C  &  records in files
Summary: Maybe you want to read a block?
Message-ID: <1648@uop.edu>
Date: 19 Aug 88 14:52:28 GMT
References: <196@rna.UUCP> <6671@bloom-beacon.MIT.EDU> <1609@edison.GE.COM> <8353@smoke.ARPA>
Organization: University of the Pacific, Stockton, CA
Lines: 17

In article <8353@smoke.ARPA>, gwyn@smoke.ARPA (Doug Gwyn ) writes:
> In article <1609@edison.GE.COM> rja@edison.GE.COM (rja) writes:
> >We find that we have to use a loop of successive calls to read() to fill
> >(for example) a 512 byte buffer because it gives only 1 record at a time
> >even though you asked for 512 bytes.
> 
> UNIX also returns no more than one record per read() call.  The main
> difference is that UNIX disk files are just one big record.  Other
> UNIX files may be multi-record (e.g. magtape, terminal).

Could it be, El Guapo, that you want to read a block?  If this is true, try
the VMS IO$_READxBLK operations.

						Ed Bates
						Academic Computer Specialist
						University of the Pacific
						    in sunny Stockton, CA!