add sys.readfile()
add args to linux runtime
SVN=124961
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h
index 4d185a5..c645992 100644
--- a/src/runtime/runtime.h
+++ b/src/runtime/runtime.h
@@ -90,6 +90,10 @@
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·ifaces2i(Sigi*, Sigs*, Map*, void*);
void sys·ifacei2i(Sigi*, Map*, void*);
void sys·ifacei2s(Sigs*, Map*, void*);
+void sys·readfile(string, string, bool);