version 1.32, 2007/09/09 12:36:38 |
version 1.33, 2007/09/11 18:22:42 |
|
|
bool mailing = NO; |
bool mailing = NO; |
bool quitit = NO; |
bool quitit = NO; |
bool sending = NO; |
bool sending = NO; |
bool intrpflg = NO; |
|
bool restricted = NO; |
bool restricted = NO; |
int uid; |
int uid; |
int msg; |
int msg; |
|
|
int Lpp = 0; |
int Lpp = 0; |
time_t t; |
time_t t; |
time_t keep; |
time_t keep; |
|
volatile sig_atomic_t intrpflg = 0; |
|
|
void prmesg(int); |
void prmesg(int); |
void onintr(int); |
void onintr(int); |
|
|
prevmsg = msg; |
prevmsg = msg; |
} |
} |
|
|
printf("--%s--\n", sep); |
printf("--%s--\n", (intrpflg ? "Interrupt" : sep)); |
sep = "-"; |
sep = "-"; |
if (msg >= nextmsg) { |
if (msg >= nextmsg) { |
nextmsg = msg + 1; |
nextmsg = msg + 1; |
|
|
write(STDOUT_FILENO, "\n", 1); |
write(STDOUT_FILENO, "\n", 1); |
if (hdrs) |
if (hdrs) |
_exit(0); |
_exit(0); |
sep = "Interrupt"; |
|
if (newmsg) |
if (newmsg) |
fseeko(newmsg, (off_t)0, SEEK_END); |
fseeko(newmsg, (off_t)0, SEEK_END); |
intrpflg = YES; |
intrpflg = 1; |
} |
} |
errno = save_errno; |
errno = save_errno; |
} |
} |
|
|
|
|
printf("%s ", prompt); |
printf("%s ", prompt); |
fflush(stdout); |
fflush(stdout); |
intrpflg = NO; |
intrpflg = 0; |
if (fgets(inbuf, sizeof inbuf, stdin) == NULL) |
if (fgets(inbuf, sizeof inbuf, stdin) == NULL) |
errx(1, "could not read input"); |
errx(1, "could not read input"); |
inbuf[strcspn(inbuf, "\n")] = '\0'; |
inbuf[strcspn(inbuf, "\n")] = '\0'; |