#include <sys/types.h>#include <signal.h>#include <fcntl.h>#include "shell.h"#include "main.h"#include "mail.h"#include "options.h"#include "output.h"#include "parser.h"#include "nodes.h"#include "eval.h"#include "jobs.h"#include "input.h"#include "trap.h"#include "memalloc.h"#include "error.h"#include "init.h"#include "mystring.h"Include dependency graph for main.c:

Go to the source code of this file.
Defines | |
| #define | PROFILE 0 |
Functions | |
| STATIC void | read_profile () |
| char * | getenv () |
| main (argc, char **argv) | |
| void | cmdloop (top) |
| STATIC void | read_profile (char *name) |
| void | readcmdfile (char *name) |
| dotcmd (argc, char **argv) | |
| exitcmd (argc, char **argv) | |
| lccmd (argc, char **argv) | |
Variables | |
| char | copyright [] |
| static char | sccsid [] = "@(#)main.c 5.2 (Berkeley) 3/13/91" |
| int | rootpid |
| int | rootshell |
| STATIC union node * | curcmd |
| STATIC union node * | prevcmd |
| int | errno |
|
|
|
|
|
Definition at line 213 of file main.c. References chkmail(), dotrap(), flushout(), iflag, n, pendingsigs, setstackmark(), showjobs(), top, and TRACE. Referenced by dotcmd(), main(), read_profile(), and readcmdfile(). |
|
||||||||||||
|
Definition at line 311 of file main.c. References argc, cmdloop(), commandname, exitstatus, popfile(), and setinputfile(). |
|
||||||||||||
|
Definition at line 323 of file main.c. References argc, exitshell(), exitstatus, number, and oexitstatus. |
|
|
||||||||||||
|
Definition at line 333 of file main.c. References argc, curcmd, defun(), evaltree(), exitstatus, INTOFF, INTON, NULL, and prevcmd. |
|
||||||||||||
|
Definition at line 98 of file main.c. References argc, cmdloop(), eflag, equal, errout, evalstring(), exception, EXINT, exitshell(), exitstatus, EXSHELLPROC, flushout(), FORCEINTON, free, getenv(), getpid, handler, home, iflag, init, jmploc::loc, malloc(), minusc, monitor(), NULL, opentrace(), out2c, popstackmark(), procargs(), read_profile(), reset, rootpid, rootshell, setjmp, setstackmark(), sflag, strcat(), strcpy(), strlen(), trargs(), trputs(), and xflag. |
|
|
Definition at line 268 of file main.c. References cmdloop(), INTOFF, INTON, O_RDONLY, open, popfile(), and setinputfd(). |
|
|
Referenced by main(). |
|
|
Definition at line 290 of file main.c. References cmdloop(), error, INTOFF, INTON, O_RDONLY, open, popfile(), and setinputfd(). Referenced by find_command(). |
|
|
Initial value: "@(#) Copyright (c) 1991 The Regents of the University of California.\n\ All rights reserved.\n" |
|
|
Definition at line 73 of file main.c. Referenced by lccmd(). |
|
|
|
|
|
Definition at line 74 of file main.c. Referenced by lccmd(). |
|
|
Definition at line 71 of file main.c. Referenced by main(), and varvalue(). |
|
|
Definition at line 72 of file main.c. Referenced by forkshell(), main(), onint(), and setsignal(). |
|
|
|
1.4.6