#include <kernel.h>
#include <shell.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Functions | |
command | xsh_exit (ushort stdin, ushort stdout, ushort stderr, ushort nargs, char *args[]) |
Definition in file xsh_exit.c.
Shell command (exit) closes the shell.
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 23 of file xsh_exit.c.
References fprintf(), getpid(), kill(), OK, SHELL_EXIT, sleep(), strncmp(), and SYSERR.