Path: utzoo!utgpu!attcan!uunet!husc6!cmcl2!adm!smoke!gwyn From: gwyn@smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: VMS C & records in files Message-ID: <8353@smoke.ARPA> Date: 18 Aug 88 18:28:38 GMT References: <196@rna.UUCP> <6671@bloom-beacon.MIT.EDU> <1609@edison.GE.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB)) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 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).