From 3e4e83ab1ee4b860a0ed08ccbe81c059982e89e1 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Thu, 26 Jun 2008 14:09:26 -0700 Subject: add sys.readfile() add args to linux runtime SVN=124961 --- src/runtime/runtime.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/runtime/runtime.h') diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index 4d185a5dc7..c645992d8f 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -90,6 +90,10 @@ void* mal(uint32); uint32 cmpstring(string, string); void initsig(void); void traceback(uint8 *pc, uint8 *sp); +int32 open(byte*, int32); +int32 read(int32, void*, int32); +void close(int32); +int32 fstat(int32, void*); struct SigTab { int32 catch; @@ -124,3 +128,4 @@ void sys·intstring(int64, string); void sys·ifaces2i(Sigi*, Sigs*, Map*, void*); void sys·ifacei2i(Sigi*, Map*, void*); void sys·ifacei2s(Sigs*, Map*, void*); +void sys·readfile(string, string, bool); -- cgit v1.3-5-g9baa