From f6c310d90af861f7f03f201ea1b7492c5bf66d99 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Mon, 16 Jun 2008 11:20:22 +0000 Subject: [PATCH] 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. --- cpu/6502/6502def.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/6502/6502def.h b/cpu/6502/6502def.h index 7e17e4f4b..7117f621c 100644 --- a/cpu/6502/6502def.h +++ b/cpu/6502/6502def.h @@ -30,7 +30,7 @@ * * Author: Oliver Schmidt * - * @(#)$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