VMS C & records in files
Doug Gwyn
gwyn at smoke.ARPA
Fri Aug 19 04:28:38 AEST 1988
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).
More information about the Comp.lang.c
mailing list