Re: [cc65] Common macros for dirent.d_type

From: Greg King <>
Date: 2012-06-27 12:49:54
From: "Ullrich von Bassewitz"; on Tue, June 26, 2012; at 11:40 AM -0400
> On Tue, Jun 26, 2012 at 04:25:08PM +0200, Oliver Schmidt wrote:
> > I understand that, on CBMs, not all "regular" files are equal;
> > but, at least, that's the general idea.
> Which brings up a question I planned to ask earlier,
> but forgot about it:
> Should CBM relative files be classified as "regular"? I think they
> can be opened using open(); but, need special handling later.
> So, while they classify as "something with data in it",
> it might not be of much use.

REL files can be read and written as sequential files.  The only
"special handling" that would be needed is:
1) read() and write() must work with an entire record in a single call;
2) the end of the file is detected by looking for the "50, record not
present" DOS error message.

RELs definitly are regular.  By the way, Vorpal files, too, are regular
(program) files.

Actually, a subdirectory is a file with data in it.  So, I prefer a more
generic definition:

A regular file is not special.

So, first, we define the objects that are used in very special ways.
Then, everything else (including "OTHER") is regular.

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Jun 27 13:52:22 2012

This archive was generated by hypermail 2.1.8 : 2012-06-27 13:52:25 CEST