#include "types.h"
#include "user.h"
#include "fcntl.h"
Go to the source code of this file.
|
int | fork1 (void) |
|
void | panic (char *) |
|
struct cmd * | parsecmd (char *) |
|
void | runcmd (struct cmd *cmd) |
|
int | getcmd (char *buf, int nbuf) |
|
int | main (void) |
|
struct cmd * | execcmd (void) |
|
struct cmd * | redircmd (struct cmd *subcmd, char *file, char *efile, int mode, int fd) |
|
struct cmd * | pipecmd (struct cmd *left, struct cmd *right) |
|
struct cmd * | listcmd (struct cmd *left, struct cmd *right) |
|
struct cmd * | backcmd (struct cmd *subcmd) |
|
int | gettoken (char **ps, char *es, char **q, char **eq) |
|
int | peek (char **ps, char *es, char *toks) |
|
struct cmd * | parseline (char **, char *) |
|
struct cmd * | parsepipe (char **, char *) |
|
struct cmd * | parseexec (char **, char *) |
|
struct cmd * | nulterminate (struct cmd *) |
|
struct cmd * | parseredirs (struct cmd *cmd, char **ps, char *es) |
|
struct cmd * | parseblock (char **ps, char *es) |
|
Definition at line 12 of file sh.c.
Definition at line 8 of file sh.c.
Definition at line 11 of file sh.c.
Definition at line 14 of file sh.c.
Definition at line 10 of file sh.c.
Definition at line 9 of file sh.c.
Definition at line 250 of file sh.c.
Definition at line 197 of file sh.c.
Definition at line 183 of file sh.c.
int getcmd |
( |
char * |
buf, |
|
|
int |
nbuf |
|
) |
| |
Definition at line 134 of file sh.c.
int gettoken |
( |
char ** |
ps, |
|
|
char * |
es, |
|
|
char ** |
q, |
|
|
char ** |
eq |
|
) |
| |
Definition at line 267 of file sh.c.
Definition at line 237 of file sh.c.
Definition at line 145 of file sh.c.
struct cmd * nulterminate |
( |
struct cmd * |
cmd) | |
|
Definition at line 451 of file sh.c.
struct cmd* parseblock |
( |
char ** |
ps, |
|
|
char * |
es |
|
) |
| |
Definition at line 401 of file sh.c.
struct cmd * parsecmd |
( |
char * |
s) | |
|
Definition at line 329 of file sh.c.
struct cmd * parseexec |
( |
char ** |
ps, |
|
|
char * |
es |
|
) |
| |
Definition at line 417 of file sh.c.
struct cmd * parseline |
( |
char ** |
ps, |
|
|
char * |
es |
|
) |
| |
Definition at line 346 of file sh.c.
struct cmd * parsepipe |
( |
char ** |
ps, |
|
|
char * |
es |
|
) |
| |
Definition at line 363 of file sh.c.
struct cmd* parseredirs |
( |
struct cmd * |
cmd, |
|
|
char ** |
ps, |
|
|
char * |
es |
|
) |
| |
Definition at line 376 of file sh.c.
int peek |
( |
char ** |
ps, |
|
|
char * |
es, |
|
|
char * |
toks |
|
) |
| |
Definition at line 312 of file sh.c.
Definition at line 224 of file sh.c.
struct cmd* redircmd |
( |
struct cmd * |
subcmd, |
|
|
char * |
file, |
|
|
char * |
efile, |
|
|
int |
mode, |
|
|
int |
fd |
|
) |
| |
Definition at line 208 of file sh.c.
void runcmd |
( |
struct cmd * |
cmd) | |
|
Definition at line 58 of file sh.c.
char symbols[] = "<|>&;()" |
Definition at line 264 of file sh.c.
char whitespace[] = " \t\r\n\v" |
Definition at line 263 of file sh.c.