2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

c5/sh0.c File Reference


Detailed Description

shells, version 1, 2, and 3 [Sec. 5.4, 5.6, 5.10]

Definition in file sh0.c.

Go to the source code of this file.

Defines

#define WANT_SHELL_V3
#define MAXARG   20
#define MAXLINE   200
#define execute   execute3

Functions

void execute3 (int argc, char *argv[])
bool getargs (int *argcp, char *argv[], int max, bool *eofp)
int main (void)


Define Documentation

#define execute   execute3
 

Definition at line 70 of file sh0.c.

Referenced by main().

#define MAXARG   20
 

Definition at line 31 of file sh0.c.

Referenced by command(), and main().

#define MAXLINE   200
 

Definition at line 32 of file sh0.c.

Referenced by getargs().

#define WANT_SHELL_V3
 

Definition at line 28 of file sh0.c.


Function Documentation

void execute3 int  argc,
char *  argv[]
[static]
 

Definition at line 72 of file sh0.c.

References _exit(), display_status(), EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, EC_FLUSH, ec_neg1, execvp(), fork(), and waitpid().

bool getargs int *  argcp,
char *  argv[],
int  max,
bool *  eofp
[static]
 

Definition at line 98 of file sh0.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, EC_FLUSH, and MAXLINE.

Referenced by main().

int main void   ) 
 

Definition at line 147 of file sh0.c.

References asg(), execute, exit(), getargs(), MAXARG, and set().


Generated on Fri Apr 23 10:57:08 2004 for AUP2 Example Source by doxygen 1.3.1