diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-10-04 14:39:04 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-10-04 14:39:04 +0000 |
commit | 6edeb62e3980f1a3769ed74cb81567744b5b6e92 (patch) | |
tree | 22add65c288e7b6fccbae236ef56fabfddf194db /term/term.h | |
parent | ffca5c4649a2808f523532728c4f1e9a0be0b912 (diff) | |
download | hurd-6edeb62e3980f1a3769ed74cb81567744b5b6e92.tar.gz hurd-6edeb62e3980f1a3769ed74cb81567744b5b6e92.tar.bz2 hurd-6edeb62e3980f1a3769ed74cb81567744b5b6e92.zip |
1999-10-04 Thomas Bushnell, BSG <tb@mit.edu>
* term.h, devio.c, users.c: Revert previous change. Do it this
way instead:
* users.c (report_carrier_error): New function.
(carrier_error): New static global variable.
(open_hook): Deal with errors from carrier open.
* devio.c (device_open_reply): Move the !RETURNCODE case out of
the "initial open" case and use report_carrier_error.
* term.h (report_carrier_error): Declare new function.
Diffstat (limited to 'term/term.h')
-rw-r--r-- | term/term.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/term/term.h b/term/term.h index 64769fc1..4fece7ee 100644 --- a/term/term.h +++ b/term/term.h @@ -25,7 +25,6 @@ #include <sys/types.h> #include <sys/mman.h> #include <fcntl.h> -#include <stdint.h> #undef MDMBUF #undef ECHO @@ -66,7 +65,7 @@ struct termios termstate; /* Other state with the following bits: */ -uint_fast32_t termflags; +long termflags; #define USER_OUTPUT_SUSP 0x00000001 /* user has suspended output */ #define TTY_OPEN 0x00000002 /* someone has us open */ @@ -79,7 +78,6 @@ uint_fast32_t 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 @@ -311,6 +309,7 @@ queue_erase (struct queue *q) int input_character (int); void report_carrier_on (void); void report_carrier_off (void); +void report_carrier_error (error_t); /* Other decls */ |