Initial Upload

This commit is contained in:
iDunnoDev
2022-12-06 11:49:47 +00:00
committed by iDunnoDev
commit 0ee33aaa97
274 changed files with 60109 additions and 0 deletions

16
kill.c Normal file
View File

@ -0,0 +1,16 @@
#include "types.h"
#include "stat.h"
#include "user.h"
int main(int argc, char **argv) {
int i;
if (argc < 2) {
printf(2, "usage: kill pid...\n");
exit();
}
for (i = 1; i < argc; i++) {
kill(atoi(argv[i]));
}
exit();
}