Commit 5edf5fe3 5edf5fe39c5b3f61cdce967a2a82b1988885599e by Alain Magloire

* mail/mailline.c: "interupt" is actually a key word

	for somce C compiler i.e. Watcomm C, rename it to "interrupted".
	* mail/util.c: The macros O_CREAT etc needs <sys/fnct.h>.
1 parent 733fb106
2001-07-06 Alain Magloire
* mail/mailline.c: "interupt" is actually a key word
for somce C compiler i.e. Watcomm C, rename it to "interrupted".
* mail/util.c: The macros O_CREAT etc needs <sys/fnct.h>.
2001-07-06 Alain Magloire
* mail/mail.c: Be a little more verbose when mailbox_{create,open}()
fails at startup.
* doc/Makefile.am: Add the missing *.texi in the list of EXTRA_DIST.
......
......@@ -20,7 +20,7 @@
static char **ml_command_completion __P((char *cmd, int start, int end));
static char *ml_command_generator __P((char *text, int state));
static int _interrupt;
static volatile int _interrupted;
static RETSIGTYPE
sig_handler (int signo)
......@@ -30,7 +30,7 @@ sig_handler (int signo)
case SIGINT:
if (util_find_env ("quit")->set)
exit (0);
_interrupt++;
_interrupted++;
break;
#if defined (SIGWINCH)
case SIGWINCH:
......@@ -43,14 +43,14 @@ sig_handler (int signo)
void
ml_clear_interrupt ()
{
_interrupt = 0;
_interrupted = 0;
}
int
ml_got_interrupt ()
{
int rc = _interrupt;
_interrupt = 0;
int rc = _interrupted;
_interrupted = 0;
return rc;
}
......@@ -66,7 +66,7 @@ ml_getc (FILE *stream)
return c;
if (errno == EINTR)
{
if (_interrupt)
if (_interrupted)
break;
/* keep going if we handled the signal */
}
......@@ -197,7 +197,7 @@ readline (const char *prompt)
if (p)
n = strlen(p);
else if (_interrupt)
else if (_interrupted)
{
free (line);
return NULL;
......
......@@ -22,6 +22,7 @@
# include <termios.h>
#endif
#include <sys/ioctl.h>
#include <sys/fcntl.h>
typedef struct _node {
/* for the msglist expander */
......