swaith.inc 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. type
  2. Pidtype_t = ^idtype_t;
  3. idtype_t = (P_ALL,P_PID,P_PGID);
  4. { // used to be three constants. Why borland decided to change this is a total mystery...
  5. Const
  6. P_ALL = 0;
  7. P_PID = 1;
  8. P_PGID = 2;
  9. }
  10. const
  11. WAIT_ANY = -(1);
  12. WAIT_MYPGRP = 0;
  13. function wait(__stat_loc:PLongint):__pid_t;cdecl;external clib name 'wait';
  14. function waitpid(__pid:__pid_t; __stat_loc:Plongint; __options:longint):__pid_t;cdecl;external clib name 'waitpid';
  15. function waitid(__idtype:idtype_t; __id:__id_t; __infop:Psiginfo_t; __options:longint):longint;cdecl;external clib name 'waitid';
  16. function wait3(__stat_loc: Plongint; __options:longint; __usage:Prusage):__pid_t;cdecl;external clib name 'wait3';
  17. function wait4(__pid:__pid_t; __stat_loc: Plongint; __options:longint; __usage:Prusage):__pid_t;cdecl;external clib name 'wait4';
  18. { ---------------------------------------------------------------------
  19. Borland compatibility types
  20. ---------------------------------------------------------------------}
  21. // Type
  22. function wait(var __stat_loc: Longint):__pid_t;cdecl;external clib name 'wait';
  23. function waitpid(__pid:__pid_t; var __stat_loc:longint; __options:longint):__pid_t;cdecl;external clib name 'waitpid';
  24. function waitid(__idtype:idtype_t; __id:__id_t; var __infop: siginfo_t; __options:longint):longint;cdecl;external clib name 'waitid';
  25. function wait3(var __stat_loc: longint; __options:longint; var __usage:rusage):__pid_t;cdecl;external clib name 'wait3';
  26. function wait4(__pid:__pid_t; var __stat_loc: longint; __options:longint; var __usage: rusage):__pid_t;cdecl;external clib name 'wait4';