Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 1997 23:44:37 -0400
From:      Matthew Hagerty <wpub1@net-link.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   TERMIO/TERMIOS problems
Message-ID:  <334F0525.66EB@net-link.net>

index | next in thread | raw e-mail

Greetings,

   Could someone point me to where I can learn what TERMIO and TERMIOS
are all about.  I am always running into header and #define problems
when trying to compile programs I've downloaded.  The most recent is
this little piece of code from SSL-MZtelnet-0.9.1:

#ifdef convex
static int linestate;
#endif

int
tty_linemode()
{
#ifndef convex
#ifndef USE_TERMIO
	return(termbuf.state & TS_EXTPROC);
#else
	return(termbuf.c_lflag & EXTPROC);
#endif
#else
	return(linestate);
#endif
}

   GCC keeps stopping with the following error:

gcc -c -g -O -I../lib -I../include -I/usr/local/include -DHAVE_CONFIG_H
-DDIAGNOSTICS -DOLD_ENVIRON -DENV_HACK -DAUTHENTICATION sys_term.c
sys_term.c: In function `tty_linemode':
sys_term.c:799: `TS_EXTPROC' undeclared (first use this function)
sys_term.c:799: (Each undeclared identifier is reported only once
sys_term.c:799: for each function it appears in.)
*** Error code 1

Stop.

   What do I need in order to be able to figure out how to fix these
kinds of problems?  Any insight would be greatly appreciated.

Thank you,
Matthew Hagerty


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?334F0525.66EB>