From 839ad527396286b846e58e11836f9091ceccc6d9 Mon Sep 17 00:00:00 2001 From: jkh Date: Sun, 5 Feb 1995 13:49:25 +0000 Subject: PCVT userland utilities. Submitted by: hm --- usr.sbin/pcvt/vttest/header.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 usr.sbin/pcvt/vttest/header.h (limited to 'usr.sbin/pcvt/vttest/header.h') diff --git a/usr.sbin/pcvt/vttest/header.h b/usr.sbin/pcvt/vttest/header.h new file mode 100644 index 0000000..c4dcf90 --- /dev/null +++ b/usr.sbin/pcvt/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 +#endif + +#include + + +#ifdef UNIX +#include +#include +#include +#include +jmp_buf intrenv; +struct sgttyb sgttyOrg, sgttyNew; +char stdioBuf[BUFSIZ]; +int brkrd, reading; +extern onterm(), onbrk(); +#ifdef SIII +#include +#endif +#endif +int ttymode; -- cgit v1.1