(*
    Title: 	Unix system calls (process handling) - Definitions
    LastEdit:	"Tue Aug 31 16:12:48 1982"
    Author: 	Mick Jordan
		Cambridge University Computer Laboratory
*)

DEFINITION MODULE SysProcess;

EXPORT QUALIFIED
    SysExec, SysExit, SysFork, SysVFork, SysGetpid, SysKill, SysWait;

PROCEDURE SysExit(status : INTEGER);	(* there can be no return *)
PROCEDURE SysExec(name : ARRAY OF CHAR; 
                  VAR argv : ARRAY OF CARDINAL) : INTEGER;

PROCEDURE SysFork() : INTEGER;
PROCEDURE SysVFork() : INTEGER;

PROCEDURE SysGetpid() : INTEGER;

PROCEDURE SysKill(pid : INTEGER; sig : CARDINAL) : INTEGER;

PROCEDURE SysWait(VAR status : INTEGER) : INTEGER;

END SysProcess .
