main.c File Reference

Implements the functions: main. More...

#include <stddef.h>
#include <stdio.h>
#include <ether.h>
#include <thread.h>
#include <device.h>

Include dependency graph for main.c:

Go to the source code of this file.

Functions

void shell (int)
 The XINU shell.


Detailed Description

Implements the functions: main.

Id
main.c 1523 2008-08-28 01:04:44Z mschul

Definition in file main.c.


Function Documentation

void shell ( int  descrp  ) 

The XINU shell.

Provides an interface to execute commands.

Parameters:
descrp descriptor of device on which the shell is open
Returns:
OK for successful exit, SYSERR for unrecoverable error

Definition at line 47 of file shell.c.

References commandtab, control(), create(), disable, enable, EOF, FALSE, fprintf(), getdev(), lexan(), ncommand, NOMSG, NULL, OK, read(), ready(), receive(), recvclr(), RESCHED_NO, RESCHED_YES, restore, SHELL_BUFLEN, SHELL_CHILDERR, SHELL_CMDPRIO, SHELL_CMDSTK, SHELL_EXIT, SHELL_MAXTOK, SHELL_PROMPT, SHELL_START, SHELL_SYNTAXERR, sleep(), stdin, strcmp(), SYSERR, TRUE, TTY_CTRL_CLR_IFLAG, TTY_CTRL_SET_IFLAG, TTY_ECHO, and TTY_IRAW.

Here is the call graph for this function:


Generated on Fri Sep 19 13:40:29 2008 for Embedded XINU by  doxygen 1.5.6