#include <kernel.h>
#include <proc.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Go to the source code of this file.
Functions | |
command | xsh_kill (ushort stdin, ushort stdout, ushort stderr, ushort nargs, char *args[]) |
Definition in file xsh_kill.c.
Shell command (kill) terminates a process.
stdin | descriptor of input device | |
stdout | descriptor of output device | |
stderr | descriptor of error device | |
nargs | number of arguments in args array | |
args | array of arguments |
Definition at line 24 of file xsh_kill.c.
References atol(), fprintf(), getpid(), kill(), NULLPROC, OK, sleep(), strncmp(), and SYSERR.