mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
5f809d76a3
Reviewed by: core
44 lines
1.4 KiB
C
44 lines
1.4 KiB
C
#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;
|