version 1.25, 2006/03/16 19:32:46 |
version 1.26, 2006/03/17 14:43:06 |
|
|
#include "pathnames.h" |
#include "pathnames.h" |
|
|
int disc = TTYDISC; /* tip normally runs this way */ |
int disc = TTYDISC; /* tip normally runs this way */ |
void intprompt(); |
|
void timeout(); |
|
void cleanup(int); |
|
char PNbuf[256]; /* This limits the size of a number */ |
char PNbuf[256]; /* This limits the size of a number */ |
|
|
|
static void intprompt(int); |
|
static void tipin(void); |
|
static int escape(void); |
|
|
int |
int |
main(int argc, char *argv[]) |
main(int argc, char *argv[]) |
{ |
{ |
|
|
void |
void |
cleanup(int signo) |
cleanup(int signo) |
{ |
{ |
|
|
daemon_uid(); |
daemon_uid(); |
(void)uu_unlock(uucplock); |
(void)uu_unlock(uucplock); |
if (odisc) |
if (odisc) |
|
|
/* |
/* |
* Interrupt service routine during prompting |
* Interrupt service routine during prompting |
*/ |
*/ |
void |
static void |
intprompt(void) |
intprompt(int signo) |
{ |
{ |
|
|
(void)signal(SIGINT, SIG_IGN); |
(void)signal(SIGINT, SIG_IGN); |
stoprompt = 1; |
stoprompt = 1; |
printf("\r\n"); |
printf("\r\n"); |
|
|
/* |
/* |
* ****TIPIN TIPIN**** |
* ****TIPIN TIPIN**** |
*/ |
*/ |
void |
static void |
tipin(void) |
tipin(void) |
{ |
{ |
char bol = 1; |
char bol = 1; |
|
|
* Escape handler -- |
* Escape handler -- |
* called on recognition of ``escapec'' at the beginning of a line |
* called on recognition of ``escapec'' at the beginning of a line |
*/ |
*/ |
int |
static int |
escape(void) |
escape(void) |
{ |
{ |
int gch; |
int gch; |
|
|
* Help command |
* Help command |
*/ |
*/ |
void |
void |
help(char c) |
help(int c) |
{ |
{ |
esctable_t *p; |
esctable_t *p; |
|
|