version 1.3, 2025/03/09 19:50:47
|
version 1.6, 2025/03/24 04:15:25
|
Line 24
|
Line 24
|
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* |
* |
* $Log$ |
* $Log$ |
|
* Revision 1.6 2025/03/24 04:15:25 snw |
|
* Create dummy onwinch signal handler for OS/2 |
|
* |
|
* Revision 1.5 2025/03/24 00:38:40 snw |
|
* Fix termios junk in sighnd.c |
|
* |
|
* Revision 1.4 2025/03/24 00:34:30 snw |
|
* Fix termios junk in sighnd.c |
|
* |
* Revision 1.3 2025/03/09 19:50:47 snw |
* Revision 1.3 2025/03/09 19:50:47 snw |
* Second phase of REUSE compliance and header reformat |
* Second phase of REUSE compliance and header reformat |
* |
* |
Line 42
|
Line 51
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/wait.h> |
#include <sys/wait.h> |
|
|
#include <termios.h> |
#if !defined(__APPLE__) && !defined(__gnu_hurd__) && !defined(EMSCRIPTEN) |
|
# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__AMIGA) |
|
# include <termios.h> |
|
# if !defined(__AMIGA) |
|
# define TCGETA TIOCGETA |
|
# define TCSETA TIOCSETA |
|
# endif |
|
# define termio termios |
|
# else |
|
# if !defined(MSDOS) |
|
# include <termio.h> |
|
# endif |
|
# endif |
|
#else |
|
# include <termios.h> |
|
#endif |
|
|
#include <sys/ioctl.h> |
#include <sys/ioctl.h> |
|
|
#include "mpsdef.h" |
#include "mpsdef.h" |
Line 52
|
Line 77
|
#include "jobtab.h" |
#include "jobtab.h" |
#include "shmmgr.h" |
#include "shmmgr.h" |
|
|
|
|
|
|
void m_log (int, const char *); |
void m_log (int, const char *); |
int pending_signal_type = -1; |
int pending_signal_type = -1; |
|
|
Line 95 void sig_init(void)
|
Line 122 void sig_init(void)
|
} |
} |
|
|
|
|
#if !defined(MSDOS) |
#if !defined(MSDOS) && !defined(__OS2__) |
void onwinch (void) |
void onwinch (void) |
{ |
{ |
struct winsize ws; |
struct winsize ws; |
Line 115 void onwinch (void)
|
Line 142 void onwinch (void)
|
|
|
return; |
return; |
} |
} |
|
#else |
|
void onwinch (void) |
|
{ |
|
sig_attach (SIGWINCH, &onwinch); |
|
|
|
return; |
|
} |
#endif |
#endif |
|
|
void onintr (void) |
void onintr (void) |