Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/shell/xsh_exit.c File Reference

#include <kernel.h>
#include <shell.h>
#include <stdio.h>
#include <string.h>

Include dependency graph for xsh_exit.c:

Go to the source code of this file.

Functions

command xsh_exit (ushort stdin, ushort stdout, ushort stderr, ushort nargs, char *args[])


Detailed Description

xsh_exit

Id
xsh_exit.c 226 2007-07-12 01:18:27Z mschul

Definition in file xsh_exit.c.


Function Documentation

command xsh_exit ( ushort  stdin,
ushort  stdout,
ushort  stderr,
ushort  nargs,
char *  args[] 
)

Shell command (exit) closes the shell.

Parameters:
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
Returns:
OK for success, SYSERR for syntax error

Definition at line 23 of file xsh_exit.c.

References fprintf(), getpid(), kill(), OK, SHELL_EXIT, sleep(), strncmp(), and SYSERR.


Generated on Thu Oct 9 22:34:52 2008 for xinu by  doxygen 1.5.5