VMS C & records in files
Ed Bates: Joshua is my son's name.
joshua at uop.edu
Sat Aug 20 00:52:28 AEST 1988
In article <8353 at smoke.ARPA>, gwyn at smoke.ARPA (Doug Gwyn ) writes:
> In article <1609 at edison.GE.COM> rja at 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!
More information about the Comp.lang.c
mailing list