aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-02-23 07:55:19 +0000
committerJim Blandy1992-02-23 07:55:19 +0000
commit52baf19eafbf5fc1423b26b098e38f7687f00f20 (patch)
tree9c9499a3456c0e7b5ac6f4f315b2e05ef04b54f9 /src
parentd30bfc76929289f4ab8e5d0b0dca639533cf5d9c (diff)
downloademacs-52baf19eafbf5fc1423b26b098e38f7687f00f20.tar.gz
emacs-52baf19eafbf5fc1423b26b098e38f7687f00f20.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c42
1 files changed, 5 insertions, 37 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 8bfc80a25f4..259a2aabd6d 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -37,25 +37,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
37#include <setjmp.h> 37#include <setjmp.h>
38#include <errno.h> 38#include <errno.h>
39 39
40#include "emacssignal.h"
41
42extern int errno;
43
44/* Get FIONREAD, if it is available. */
45#ifdef USG
46#include <termio.h>
47#include <fcntl.h>
48#else /* not USG */
49#ifndef VMS 40#ifndef VMS
50#include <sys/ioctl.h> 41#include <sys/ioctl.h>
51#endif /* not VMS */
52#endif /* not USG */
53
54/* UNIPLUS systems may have FIONREAD. */
55#ifdef UNIPLUS
56#include <sys.ioctl.h>
57#endif 42#endif
58 43
44#include "syssignal.h"
45#include "systerm.h"
46
47extern int errno;
48
59#ifdef HAVE_X_WINDOWS 49#ifdef HAVE_X_WINDOWS
60extern Lisp_Object Vmouse_grabbed; 50extern Lisp_Object Vmouse_grabbed;
61 51
@@ -334,22 +324,6 @@ int interrupts_deferred;
334/* nonzero means use ^S/^Q for flow control. */ 324/* nonzero means use ^S/^Q for flow control. */
335int flow_control; 325int flow_control;
336 326
337#ifndef BSD4_1
338#define sigfree() sigsetmask (SIGEMPTYMASK)
339#define sigholdx(sig) sigsetmask (sigmask (sig))
340#define sigblockx(sig) sigblock (sigmask (sig))
341#define sigunblockx(sig) sigblock (SIGEMPTYMASK)
342#define sigpausex(sig) sigpause (0)
343#endif /* not BSD4_1 */
344
345#ifdef BSD4_1
346#define SIGIO SIGTINT
347/* sigfree and sigholdx are in sysdep.c */
348#define sigblockx(sig) sighold (sig)
349#define sigunblockx(sig) sigrelse (sig)
350#define sigpausex(sig) sigpause (sig)
351#endif /* BSD4_1 */
352
353/* Allow m- file to inhibit use of FIONREAD. */ 327/* Allow m- file to inhibit use of FIONREAD. */
354#ifdef BROKEN_FIONREAD 328#ifdef BROKEN_FIONREAD
355#undef FIONREAD 329#undef FIONREAD
@@ -1183,12 +1157,6 @@ read_char (commandflag)
1183 { 1157 {
1184 XSET (c, Lisp_Int, quit_char); 1158 XSET (c, Lisp_Int, quit_char);
1185 1159
1186 /* Returning quit_char from this function represents a
1187 resolution to the quit request, so clear the quit flag.
1188 This prevents us from returning quit_char many times
1189 for the same quit request. */
1190 Vquit_flag = Qnil;
1191
1192 waiting_for_input = 0; 1160 waiting_for_input = 0;
1193 input_available_clear_word = 0; 1161 input_available_clear_word = 0;
1194 1162