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

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2012-08-10 16:24:40
Hello,

* On Fri, Aug 10, 2012 at 02:10:04PM +0200 A.Fachat wrote:
>    For example
>    open("8#0:name", ...

Note that open("#0", ...) is perfectly legal for the 1541 (opening a
specific buffer).

Thus, using the "#" is not completely unproblematic.

Also: What if there would be no drive number? Should open("8#name") be
valid, too?

The double colon syntax proposes elsewhere is also not unproblematic.

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.

Regards,
Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Aug 10 16:25:00 2012

This archive was generated by hypermail 2.1.8 : 2012-08-10 16:25:03 CEST