Process.hx 599 B

1234567891011121314151617181920212223242526272829303132
  1. package eval.uv;
  2. import haxe.NoData;
  3. import haxe.async.*;
  4. extern class Process {
  5. function new(
  6. exitCb:Callback<{code:Int, signal:Int}>,
  7. file:String,
  8. args:Array<String>,
  9. env:Array<String>,
  10. cwd:String,
  11. flags:asys.uv.UVProcessSpawnFlags,
  12. stdio:Array<ProcessIO>,
  13. uid:Int,
  14. gid:Int
  15. );
  16. function kill(signal:Int):Void;
  17. function getPid():Int;
  18. function close(cb:Callback<NoData>):Void;
  19. function ref():Void;
  20. function unref():Void;
  21. }
  22. enum ProcessIO {
  23. Ignore;
  24. Inherit;
  25. Pipe(readable:Bool, writable:Bool, pipe:eval.uv.Stream);
  26. Ipc(pipe:eval.uv.Stream);
  27. // Stream(_);
  28. // Fd(_);
  29. }