[86] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Re: 1.60.beta3 on hpux9

daemon@ATHENA.MIT.EDU (Christopher Provenzano)
Wed Aug 16 18:15:15 1995

To: neal@ctd.comsat.com (Neal Becker)
Cc: pthreads@MIT.EDU
In-Reply-To: Your message of "Wed, 16 Aug 1995 09:12:37 EDT."
             <m0siiGr-000352C@neal.ctd.comsat.com> 
Date: Wed, 16 Aug 1995 18:02:58 EDT
From: Christopher Provenzano  <proven@MIT.EDU>


> And patching a few files,
> Now I get as far as:
> 
> ------------------
> gcc -I. -Iinclude -I/src/pthreads/include -DPTHREAD_KERNEL -D_POSIX_SOURCE -D
> _ANSI_SOURCE -g -O -c /src/pthreads/gen/isatty.c -o obj/isatty.o
> /src/pthreads/gen/isatty.c: In function `isatty_basic':
> /src/pthreads/gen/isatty.c:80: `TCGETA' undeclared (first use this function)
> /src/pthreads/gen/isatty.c:80: (Each undeclared identifier is reported only o
> nce
> /src/pthreads/gen/isatty.c:80: for each function it appears in.)
> ------------------
> 
> Yuck!  It seems that isatty.c includes termios.h.  But then it wants
> the old, non-POSIX TCGETA!  Mixing these won't work on hpux9.  In
> fact, both termio and termios are wrappers, that switch the behaviour,
> so that including termios will cause all the old termio stuff to not
> be seen.

> 
> Can we convert to using POSIX termios exclusively?  That would be the
> easiest (and most portable) solution.

There are a few reasons for the current mess, and yes it should be cleaned
up but going to POSIX termios exclusively isn't the correct solutions
because, not all machines support POSIX termios, you are implementing the
POSIX interface (isatty()) and need to do it in a similar way to the
system implementation of the same.

Anyway, acording to the beta 3 source, TCGETA is only used if sunos4 is 
defined, and termio.h is only included if sunos4 is defined or TIOCGETA 
is not defined and that is to get the TIOCGETA define.

CAP

home help back first fref pref prev next nref lref last post