Browse Source

+ more WASI rtl functions (dummy, not yet implemented)

git-svn-id: branches/wasm@48240 -
nickysn 4 years ago
parent
commit
899d718895
2 changed files with 35 additions and 0 deletions
  1. 7 0
      rtl/wasi/sysos.inc
  2. 28 0
      rtl/wasi/system.pp

+ 7 - 0
rtl/wasi/sysos.inc

@@ -32,3 +32,10 @@ begin
     InOutRes:=Def;
 end;}
 
+{*****************************************************************************
+                          Low Level File Routines
+*****************************************************************************}
+
+function Do_IsDevice(Handle:THandle):boolean;
+begin
+end;

+ 28 - 0
rtl/wasi/system.pp

@@ -73,6 +73,34 @@ type
 
 {$I system.inc}
 
+function GetProcessID: SizeUInt;
+begin
+end;
+
+Procedure Randomize;
+Begin
+End;
+
+procedure System_exit;
+begin
+End;
+
+Function ParamCount: Longint;
+Begin
+End;
+
+function paramstr(l: longint) : string;
+begin
+end;
+
+procedure SysInitStdIO;
+begin
+end;
+
+function CheckInitialStkLen(stklen : SizeUInt) : SizeUInt;
+begin
+end;
+
 {$else FULL_RTL}
 procedure fpc_lib_exit; compilerproc;
 begin