summaryrefslogtreecommitdiff
path: root/sysproc.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2019-06-03 17:59:17 -0400
committerRobert Morris <[email protected]>2019-06-03 17:59:17 -0400
commitcefe223bf5e4b68e5c1202f2f089a164ad656621 (patch)
treeb2bf9fdb2c94e3159ce595c6b4a88daf5c35e878 /sysproc.c
parentefecbee7c0c265b0b2fe956f308e1a73cc63eda6 (diff)
downloadxv6-labs-cefe223bf5e4b68e5c1202f2f089a164ad656621.tar.gz
xv6-labs-cefe223bf5e4b68e5c1202f2f089a164ad656621.tar.bz2
xv6-labs-cefe223bf5e4b68e5c1202f2f089a164ad656621.zip
console input and sbrk
Diffstat (limited to 'sysproc.c')
-rw-r--r--sysproc.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/sysproc.c b/sysproc.c
index f840738..329feee 100644
--- a/sysproc.c
+++ b/sysproc.c
@@ -31,17 +31,6 @@ sys_wait(void)
return wait();
}
-#if 0
-int
-sys_kill(void)
-{
- int pid;
-
- if(argint(0, &pid) < 0)
- return -1;
- return kill(pid);
-}
-
int
sys_sbrk(void)
{
@@ -56,6 +45,17 @@ sys_sbrk(void)
return addr;
}
+#if 0
+int
+sys_kill(void)
+{
+ int pid;
+
+ if(argint(0, &pid) < 0)
+ return -1;
+ return kill(pid);
+}
+
int
sys_sleep(void)
{