aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/rc/sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cmd/rc/sys.c')
-rw-r--r--sys/cmd/rc/sys.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/sys/cmd/rc/sys.c b/sys/cmd/rc/sys.c
index 2c6a19d..643f327 100644
--- a/sys/cmd/rc/sys.c
+++ b/sys/cmd/rc/sys.c
@@ -1,12 +1,5 @@
#include "rc.h"
-struct Wait
-{
- int len, cap, *pid;
-};
-
-static struct Wait wait;
-
// -----------------------------------------------------------------------
// internal
@@ -72,46 +65,6 @@ initenv(void)
}
void
-clearwait(void)
-{
- wait.len = 0;
-}
-
-int
-havewait(int pid)
-{
- int i;
-
- for(i=0; i<wait.len; i++)
- if(wait.pid[i] == pid)
- return 1;
- return 0;
-}
-
-void
-addwait(int pid)
-{
- if(wait.len == wait.cap){
- wait.cap = wait.cap + 2;
- wait.pid = erealloc(wait.pid, wait.cap*sizeof(*wait.pid));
- }
- wait.pid[wait.len++] = pid;
-}
-
-/*
-int
-waitfor(int pid)
-{
- Thread *p;
- struct WaitMsg *w;
- char errbuf[ERRMAX];
-
- if(pid >= 0 && !havewait(pid))
- return 0;
-}
-*/
-
-void
execute(Word *cmd, Word *path)
{
int nc;