Re: [cc65] Filenames for POSIX functins on CBM targets

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-08-11 20:24:59
On Fri, Aug 10, 2012 at 04:24:40PM +0200, Spiro Trikaliotis wrote:
> Look at the following syntaxes:
> - 8:0:name
> - 8:@0:name (yes, overwrite-with-at is problematic, I know...)
> - 8:@name
>
> Also: devices 0 and 1 normally do not exist on the IEC bus; however,
> screen (0) and tape (1) are valid targets for open(), too, aren't they?
> Thus, distinguishing between device and drive in "n:name" with n < 2 or
> not is not an option, either.

How about

  - 8::0:name
  - 8::@0:name
  - 8::name

Assuming that the colon is not allowed in "normal" file names, using it twices
allows to distinguish between IEC unit and drive.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Aug 11 20:25:06 2012

This archive was generated by hypermail 2.1.8 : 2012-08-11 20:25:09 CEST