bschedh.inc 962 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. const
  2. SCHED_OTHER = 0;
  3. SCHED_FIFO = 1;
  4. SCHED_RR = 2;
  5. const
  6. CSIGNAL = $000000ff;
  7. CLONE_VM = $00000100;
  8. CLONE_FS = $00000200;
  9. CLONE_FILES = $00000400;
  10. CLONE_SIGHAND = $00000800;
  11. CLONE_PID = $00001000;
  12. CLONE_PTRACE = $00002000;
  13. CLONE_VFORK = $00004000;
  14. type
  15. Psched_param = ^sched_param;
  16. sched_param = record
  17. __sched_priority : longint;
  18. end;
  19. TCloneFunc = function(Arg: Pointer): Integer; cdecl; // For translation
  20. function clone(__fn:tclonefunc; __child_stack:pointer; __flags:longint; __arg:pointer):longint;cdecl;external clib name 'clone';
  21. { ---------------------------------------------------------------------
  22. Borland compatibility types
  23. ---------------------------------------------------------------------}
  24. Type
  25. __sched_param = sched_param;
  26. P__sched_param = ^__sched_param;
  27. TSchedParam = __sched_param;
  28. PSchedParam = ^TSchedParam;
  29. TCloneProc = TCloneFunc;