Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!decvax!ucbvax!TCGOULD.TN.CORNELL.EDU!garry From: garry@TCGOULD.TN.CORNELL.EDU.UUCP Newsgroups: mod.computers.vax Subject: Re: Getting file attributes Message-ID: <8701150626.AA09895@tcgould.tn.cornell.edu> Date: Thu, 15-Jan-87 01:26:13 EST Article-I.D.: tcgould.8701150626.AA09895 Posted: Thu Jan 15 01:26:13 1987 Date-Received: Fri, 16-Jan-87 22:20:14 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: Cornell Engineering && Flying Moose Graphics Lines: 20 Approved: info-vax@sri-kl.arpa In a recent article Sid Penstone said: >< How does one determine from inside a program whether an existing disk file >< (FORM="UNFORMATTED") is RECORDTYPE="VARIABLE" ..... > > There is a C function stat() that returns some information about >a file. .............. You can identify >the values FAB$C_FIX or FAB$C_VAR in the st_fab_rfm field of the structure >... I'm sorry; this won't work. As I explained privately to the original poster, "Segented" records are a concept known *only* to Fortran. They consist of variable records with a couple extra bytes tacked on; the entire rest of the universe just sees plain variable records and isn't aware that there's extra information in there. BTW, FAB$C_FIX refers to "fixed-length" records. Is something different. (But I'm glad to know stat() returns actual RMS info - could be handy!) garry wiegand (garry%cadif-oak@cu-arpa.cs.cornell.edu)