diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
commit | d6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch) | |
tree | ece253b876159b39c620e62b6c9b1174642e070e /sys/arch/i386/isa/pcvt/Util/vttest/header.h |
initial import of NetBSD tree
Diffstat (limited to 'sys/arch/i386/isa/pcvt/Util/vttest/header.h')
-rw-r--r-- | sys/arch/i386/isa/pcvt/Util/vttest/header.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sys/arch/i386/isa/pcvt/Util/vttest/header.h b/sys/arch/i386/isa/pcvt/Util/vttest/header.h new file mode 100644 index 00000000000..c4dcf906e83 --- /dev/null +++ b/sys/arch/i386/isa/pcvt/Util/vttest/header.h @@ -0,0 +1,43 @@ +#define VERSION "1.7b 1985-04-19" + +/* Choose one of these */ + +/* #define XENIX /* XENIX implies UNIX */ +/* #define SIII /* SIII implies UNIX, (NDELAY a la System III) */ +#define UNIX /* UNIX */ +/* #define VMS /* VMS not done yet -- send me your version!!!! */ +/* #define SARG20 /* Sargasso C for TOPS-20 */ +/* #define SARG10 /* Sargasso C for TOPS-10 */ + +/* These #ifdef:s are implementation dependent stuff for the Sargasso C */ +/* Unix C barfs on directives like "#strings", so we keep them */ +/* indented. Then unix c can't find them, but Sargasso C *can*. */ +/* Admittedly kludgey, but it works...) */ +#ifdef SARG10 + #define _UNIXCON /* Make UNIX-flavored I/O on TOPS */ + #strings low /* put strings in lowseg mem so we can modify them. */ +#endif +#ifdef SARG20 + #define _UNIXCON /* Make UNIX-flavored I/O on TOPS */ + #strings low /* put strings in lowseg mem so we can modify them. */ + #include <TOPS20.HDR> +#endif + +#include <stdio.h> + + +#ifdef UNIX +#include <ctype.h> +#include <sgtty.h> +#include <signal.h> +#include <setjmp.h> +jmp_buf intrenv; +struct sgttyb sgttyOrg, sgttyNew; +char stdioBuf[BUFSIZ]; +int brkrd, reading; +extern onterm(), onbrk(); +#ifdef SIII +#include <fcntl.h> +#endif +#endif +int ttymode; |