Re: [cc65] posix directory routienes...

Date view Thread view Subject view

From: Greg King (gngking_at_erols.com)
Date: 2003-03-20 17:56:04


From: Groepaz
Date: Wednesday, March 19, 2003, 01:38 PM
>
> > open() starts with a secondary-address of three, and counts up.
> > But, the CBM-version of opendir() must use an address of zero,
> > so that it will get directory-data, in the universally-available
> > BASIC-program format.
>
> Well, I gotta rewrite the opendir stuff, then, to use the raw
> format.  Problem with using cbm_open and friends is that it would
> conflict with the rest of the file I/O, and thus,
> won't be useful, at all.

As I said above, we must use the program-format -- remember what you said
about IDE64's "problem."  And, RAMDOS is another "device" that gives only
the LOAD"$"-version of its directory.

I see no conflict; they use different logical-file-numbers and
secondary-addresses.  Your code works well.  I converted it to header- and
library-files, and linked them to the test-program.
It still works well. :-)

I admit that I didn't try to open a file while a directory still is open;
but stdin, stdout, and stderr are "normal" files, on CBM targets.  We know
that the directory-routines work with stdout.


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-03-21 06:24:17 CET