summaryrefslogtreecommitdiff
path: root/term/term.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-10-01 21:45:20 +0000
committerRoland McGrath <roland@gnu.org>1999-10-01 21:45:20 +0000
commite974c97c3880954c22c8444279b2663406065621 (patch)
treeeff6498b5e2c391febe50652af00ab59569a6ef4 /term/term.h
parent571422c27c919de580d9a44b821ced09f3f69d6f (diff)
1999-10-01 Roland McGrath <roland@baalperazim.frob.com>
* term.h (NO_DEVICE): New macro, bit for termflags. (termflags): Change type to uint_fast32_t. * devio.c (device_open_reply): For D_NO_SUCH_DEVICE error reply, set NO_DEVICE flag in termflags. * users.c (open_hook): If NO_DEVICE flag set, return ENXIO immediately. If we put out an open request, check for that bit as well as NO_CARRIER changing in termflags and diagnose with ENXIO. * Makefile (device_replyServer-CPPFLAGS): New variable, turn off TypeCheck for this stub. This is necessary for error replies to get through to our server-side functions in devio.c.
Diffstat (limited to 'term/term.h')
-rw-r--r--term/term.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/term/term.h b/term/term.h
index da3d373a..64769fc1 100644
--- a/term/term.h
+++ b/term/term.h
@@ -25,6 +25,7 @@
#include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>
+#include <stdint.h>
#undef MDMBUF
#undef ECHO
@@ -65,7 +66,7 @@
struct termios termstate;
/* Other state with the following bits: */
-long termflags;
+uint_fast32_t termflags;
#define USER_OUTPUT_SUSP 0x00000001 /* user has suspended output */
#define TTY_OPEN 0x00000002 /* someone has us open */
@@ -78,6 +79,7 @@ long termflags;
#define EXCL_USE 0x00000100 /* user accessible exclusive use */
#define NO_OWNER 0x00000200 /* there is no foreground_id */
#define ICKY_ASYNC 0x00000400 /* some user has set O_ASYNC */
+#define NO_DEVICE 0x00000800 /* the device does not exist */
#define QUEUE_LOWAT 100
#define QUEUE_HIWAT 300