X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmsh.c;h=07110fd8e08398e9e90df0ad2e8be2ce9450e1db;hb=a2469f5ecbca3a179251ac9b777b561bc5245d4c;hp=c2d4e1a64b197c2801acf00d5e3e989909d7816b;hpb=c05210483d82bf5f3786725ff80e12444088a701;p=mmh diff --git a/uip/msh.c b/uip/msh.c index c2d4e1a..07110fd 100644 --- a/uip/msh.c +++ b/uip/msh.c @@ -22,15 +22,7 @@ #include #include -#ifdef HAVE_TERMIOS_H -# include -#else -# ifdef HAVE_TERMIO_H -# include -# else -# include -# endif -#endif +#include #include #include @@ -203,10 +195,10 @@ static int initaux_io (struct Cmd *); static void fin_io (struct Cmd *, int); static void finaux_io (struct Cmd *); static void m_init (void); -static RETSIGTYPE intrser (int); -static RETSIGTYPE pipeser (int); -static RETSIGTYPE quitser (int); -static RETSIGTYPE alrmser (int); +static void intrser (int); +static void pipeser (int); +static void quitser (int); +static void alrmser (int); static int pINI (void); static int pQRY (char *, int); static int pQRY1 (int); @@ -1626,13 +1618,9 @@ seq_setcur (struct msgs *mp, int msgnum) -static RETSIGTYPE +static void intrser (int i) { -#ifndef RELIABLE_SIGNALS - SIGNAL (SIGINT, intrser); -#endif - discard (stdout); interrupted++; @@ -1643,13 +1631,9 @@ intrser (int i) } -static RETSIGTYPE +static void pipeser (int i) { -#ifndef RELIABLE_SIGNALS - SIGNAL (SIGPIPE, pipeser); -#endif - if (broken_pipe++ == 0) fprintf (stderr, "broken pipe\n"); told_to_quit++; @@ -1662,13 +1646,9 @@ pipeser (int i) } -static RETSIGTYPE +static void quitser (int i) { -#ifndef RELIABLE_SIGNALS - SIGNAL (SIGQUIT, quitser); -#endif - told_to_quit++; interrupted++; @@ -1679,7 +1659,7 @@ quitser (int i) } -static RETSIGTYPE +static void alrmser (int i) { longjmp (peerenv, DONE);