1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-03 23:23:03 +00:00

Improve I_SETSIG check for X I/O. (#58)

I_SETSIG is part of the STREAMS interface, which is only present
on Solaris (among our supported platforms), so simplify this check.

Other usages of I_SETSIG could be improved, but they need more
investigation and perhaps removal.
This commit is contained in:
Bruce Mitchener
2020-12-15 13:17:54 +07:00
committed by GitHub
parent 7e2e1399e3
commit bdb7e584b6

View File

@@ -99,13 +99,9 @@ void init_Xevent(DspInterface dsp)
XSelectInput(dsp->display_id, dsp->SWGrav, GravMask);
XSelectInput(dsp->display_id, dsp->NWGrav, GravMask);
#ifdef SYSVONLY
#ifndef LINUX
#ifndef MACOSX
#if defined(OS5) && defined(I_SETSIG)
ioctl(ConnectionNumber(dsp->display_id), I_SETSIG, S_INPUT); /* so we see X events fast */
#endif
#endif
#endif /* SYSVONLY */
} /*end init_Xevent */
/************************************************************************/
@@ -117,13 +113,9 @@ void init_Xevent(DspInterface dsp)
/************************************************************************/
void lisp_Xexit(DspInterface dsp)
{
#ifdef SYSVONLY
#ifndef LINUX
#ifndef MACOSX
#if defined(OS5) && defined(I_SETSIG)
ioctl(ConnectionNumber(dsp->display_id), I_SETSIG, 0); /* so no interrupts happen during */
#endif
#endif
#endif /* SYSVONLY */
XDestroySubwindows(dsp->display_id, dsp->LispWindow);
XDestroyWindow(dsp->display_id, dsp->LispWindow);