I'd better don't try to be smart by including read access into every write access - as the cc65 CBM POSIX file I/O library doesn't allow for both reading and writing at all.

This commit is contained in:
oliverschmidt 2008-06-16 11:20:22 +00:00
parent 456d7ad45e
commit f6c310d90a

View File

@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt <ol.sc@web.de>
*
* @(#)$Id: 6502def.h,v 1.13 2008/05/14 19:19:29 adamdunkels Exp $
* @(#)$Id: 6502def.h,v 1.14 2008/06/16 11:20:22 oliverschmidt Exp $
*/
#ifndef __6502DEF_H__
@ -128,7 +128,7 @@ typedef unsigned short uip_stats_t;
#define cfs_write pfs_write
#else /* WITH_PFS */
#define CFS_READ (O_RDONLY)
#define CFS_WRITE (O_CREAT | O_TRUNC | O_RDWR)
#define CFS_WRITE (O_CREAT | O_TRUNC | O_WRONLY)
#define cfs_open open
#define cfs_close close
#define cfs_read read