Date: Sat, 12 Apr 1997 11:47:57 +0300 (IDT) From: Nadav Eiron <nadav@barcode.co.il> To: Matthew Hagerty <wpub1@net-link.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: TERMIO/TERMIOS problems Message-ID: <Pine.BSF.3.91.970412114554.7693C-100000@gatekeeper.barcode.co.il> In-Reply-To: <334F0525.66EB@net-link.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 11 Apr 1997, Matthew Hagerty wrote:
> 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
Try "Advanced Programming in the UNIX Environment", by Stevens, published
by Addison-Wesley, ISBN:0201563177
> 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
>
Nadav
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970412114554.7693C-100000>
