version 1.14, 2002/05/07 06:56:50 |
version 1.15, 2002/06/12 06:07:16 |
|
|
void |
void |
pipefile() |
pipefile() |
{ |
{ |
int cpid, pdes[2]; |
int pdes[2]; |
char buf[256]; |
char buf[256]; |
int status, p; |
int status, p; |
|
pid_t cpid; |
|
|
if (prompt("Local command? ", buf, sizeof(buf))) |
if (prompt("Local command? ", buf, sizeof(buf))) |
return; |
return; |
|
|
pipeout(c) |
pipeout(c) |
{ |
{ |
char buf[256]; |
char buf[256]; |
int cpid, status, p; |
int status, p; |
|
pid_t cpid; |
time_t start = time(NULL); |
time_t start = time(NULL); |
|
|
putchar(c); |
putchar(c); |
|
|
consh(c) |
consh(c) |
{ |
{ |
char buf[256]; |
char buf[256]; |
int cpid, status, p; |
int status, p; |
|
pid_t cpid; |
time_t start = time(NULL); |
time_t start = time(NULL); |
|
|
putchar(c); |
putchar(c); |
|
|
void |
void |
shell() |
shell() |
{ |
{ |
int shpid, status; |
int status; |
char *cp; |
char *cp; |
|
pid_t shpid; |
|
|
printf("[sh]\r\n"); |
printf("[sh]\r\n"); |
signal(SIGINT, SIG_IGN); |
signal(SIGINT, SIG_IGN); |
|
|
{ |
{ |
static char xname[BUFSIZ]; |
static char xname[BUFSIZ]; |
char cmdbuf[BUFSIZ]; |
char cmdbuf[BUFSIZ]; |
int pid, l; |
int l; |
char *cp, *Shell; |
char *cp, *Shell; |
int s, pivec[2]; |
int s, pivec[2]; |
|
pid_t pid; |
|
|
if (!anyof(name, "~{[*?$`'\"\\")) |
if (!anyof(name, "~{[*?$`'\"\\")) |
return(name); |
return(name); |