version 1.13, 2006/03/16 19:32:46 |
version 1.14, 2006/03/17 14:43:06 |
|
|
|
|
static jmp_buf sigbuf; |
static jmp_buf sigbuf; |
|
|
|
static void intIOT(int); |
|
static void intEMT(int); |
|
static void intTERM(int); |
|
static void intSYS(int); |
|
|
/* |
/* |
* TIPOUT wait state routine -- |
* TIPOUT wait state routine -- |
* sent by TIPIN when it wants to posses the remote host |
* sent by TIPIN when it wants to posses the remote host |
*/ |
*/ |
void |
static void |
intIOT(int signo) |
intIOT(int signo) |
{ |
{ |
|
|
write(repdes[1],&ccc,1); |
write(repdes[1],&ccc,1); |
read(fildes[0], &ccc,1); |
read(fildes[0], &ccc,1); |
longjmp(sigbuf, 1); |
longjmp(sigbuf, 1); |
|
|
* Scripting command interpreter -- |
* Scripting command interpreter -- |
* accepts script file name over the pipe and acts accordingly |
* accepts script file name over the pipe and acts accordingly |
*/ |
*/ |
void |
static void |
intEMT(int signo) |
intEMT(int signo) |
{ |
{ |
char c, line[256]; |
char c, line[256]; |
|
|
longjmp(sigbuf, 1); |
longjmp(sigbuf, 1); |
} |
} |
|
|
void |
static void |
intTERM(int signo) |
intTERM(int signo) |
{ |
{ |
if (boolean(value(SCRIPT)) && fscript != NULL) |
if (boolean(value(SCRIPT)) && fscript != NULL) |
|
|
exit(0); |
exit(0); |
} |
} |
|
|
void |
static void |
intSYS(int signo) |
intSYS(int signo) |
{ |
{ |
|
|
setboolean(value(BEAUTIFY), !boolean(value(BEAUTIFY))); |
setboolean(value(BEAUTIFY), !boolean(value(BEAUTIFY))); |
longjmp(sigbuf, 1); |
longjmp(sigbuf, 1); |
} |
} |