process.monkey2 871 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Namespace std.process
  2. #If __TARGET__<>"emscripten"
  3. #Import "native/process.cpp"
  4. #Import "native/procutil.cpp"
  5. #Import "native/process.h"
  6. Extern
  7. Class Process="bbProcess"
  8. Field Finished:Void()="finished"
  9. Field StdoutReady:Void()="stdoutReady"
  10. Field StderrReady:Void()="stderrReady"
  11. Property ExitCode:Int()="exitCode"
  12. Property StdoutAvail:Int()="stdoutAvail"
  13. Property StderrAvail:Int()="stderrAvail"
  14. Method Start:Bool( cmd:String )="start"
  15. Method ReadStdout:String()="readStdout"
  16. Method ReadStdout:Int( buf:Void Ptr,count:Int )="readStdout"
  17. Method ReadStderr:String()="readStderr"
  18. Method ReadStderr:Int( buf:Void Ptr,count:Int )="readStderr"
  19. Method WriteStdin( str:String )="writeStdin"
  20. Method WriteStdin:Int( buf:Void Ptr,count:Int )="writeStdin"
  21. Method SendBreak()="sendBreak"
  22. Method Terminate:Void()="terminate"
  23. End
  24. #Endif