diff options
author | Robert Morris <[email protected]> | 2019-06-03 17:59:17 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2019-06-03 17:59:17 -0400 |
commit | cefe223bf5e4b68e5c1202f2f089a164ad656621 (patch) | |
tree | b2bf9fdb2c94e3159ce595c6b4a88daf5c35e878 /sysproc.c | |
parent | efecbee7c0c265b0b2fe956f308e1a73cc63eda6 (diff) | |
download | xv6-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.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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) { |