From c870ac239eca599f2bb3cf76522d4a3591d0cd90 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 14 Jul 2008 20:54:55 -0700 Subject: add sys.writefile; support for darwin only in this CL SVN=127153 --- src/runtime/runtime.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/runtime/runtime.h') diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index 0b2e8ed975..dec63eaa76 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -196,8 +196,9 @@ void* mal(uint32); uint32 cmpstring(string, string); void initsig(void); void traceback(uint8 *pc, uint8 *sp, G* gp); -int32 open(byte*, int32); +int32 open(byte*, int32, ...); int32 read(int32, void*, int32); +int32 write(int32, void*, int32); void close(int32); int32 fstat(int32, void*); -- cgit v1.3