Re: [cc65] Re: CBM POSIX I/O w/o O_TRUNC ?

From: Greg King <>
Date: 2010-02-10 00:03:37
From: "Oliver Schmidt"; on Sunday, Feb. 07, 2010; at 05:29 PM -0500
> b) Why does the code check for O_TRUNC and O_APPEND if only "new"
> files can be written?

O_TRUNC "cheats":  it actually removes the old file, so that O_CREAT can
make a new (zero-length) file.

CBM DOS does have an over-write access mode.  But, Commodore didn't document
it.  CC65's CBM library doesn't use it.

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Feb 10 01:52:09 2010

This archive was generated by hypermail 2.1.8 : 2010-02-10 01:52:13 CET