Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TIOCGETP & TIOCSETP

150 views
Skip to first unread message

17-APR-1993 19:20:43.85

unread,
Apr 17, 1993, 11:28:55 PM4/17/93
to
Hi Linuxers!

I have a little problem with a program i wish to compile:
in
ioctl(0, TIOCGETP, &tty);
and
ioctl(0, TIOCSETP, &tty);
TIOCGETP and TIOCSETP are undefined.
What is the Linux-aequivalent for these expressions to set RAW and ~ECHO mode
of a terminal?

Any help would be appreciated.
Klaus Hoppe

Please reply directly to nm...@rz.uni-kiel.dbp.de as i have no news access.

Simon Patrick Janes

unread,
Apr 18, 1993, 10:00:55 AM4/18/93
to
nm...@rz.uni-kiel.dbp.de (17-APR-1993 19:20:43.85) writes:

>Hi Linuxers!

>I have a little problem with a program i wish to compile:
>in
> ioctl(0, TIOCGETP, &tty);
>and
> ioctl(0, TIOCSETP, &tty);
>TIOCGETP and TIOCSETP are undefined.
>What is the Linux-aequivalent for these expressions to set RAW and ~ECHO mode
>of a terminal?

I ran into the same wall the other day trying to compile pcomm2.2; I
looked everywhere for them in the include files and the closest I found
was TIOCSERIAL and TIOCGSERIAL but I have no idea if they are equivalent
to TIOC?ETP.

Why have the "old" ioctl commands been "omitted" from termios.h, everybody?
Just to get everyone to stop using them?

>Any help would be appreciated.
>Klaus Hoppe

>Please reply directly to nm...@rz.uni-kiel.dbp.de as i have no news access.

--
-------------------------------------------------------------------------
Simon "Guru Aleph-Null" Janes |Taco Bell Otaku-zoku...
<s...@ukelele.gcr.com> |
<Simon...@f305.n109.z1.Fidonet.Org> | do they exist? Huh? Huh?

Karl Nicholas

unread,
Apr 22, 1993, 4:57:48 PM4/22/93
to
In article <C5oMx...@ukelele.GCR.COM> s...@ukelele.GCR.COM (Simon Patrick Janes) writes:
>nm...@rz.uni-kiel.dbp.de (17-APR-1993 19:20:43.85) writes:
>
>>Hi Linuxers!
>
>>I have a little problem with a program i wish to compile:
>>in
>> ioctl(0, TIOCGETP, &tty);
>>and
>> ioctl(0, TIOCSETP, &tty);
>>TIOCGETP and TIOCSETP are undefined.
>>What is the Linux-aequivalent for these expressions to set RAW and ~ECHO mode
>>of a terminal?
>
>I ran into the same wall the other day trying to compile pcomm2.2; I
>looked everywhere for them in the include files and the closest I found
>was TIOCSERIAL and TIOCGSERIAL but I have no idea if they are equivalent
>to TIOC?ETP.

Pcomm, has both ucb serial drivers and att (sysV) style serial
routines. Did you try both?

I would expect the Sysv version to be more successfull on a linux
machine, but this is not a very educated opinion.


--
+---------------------------------------------------------------------------+
| Karl Nicholas (415) 953-0409 | Beer is good food. Food is not beer. |
| ka...@BofA.COM uunet!odinba!karl | *** BofA is not me, I am not BofA *** |
+---------------------------------------------------------------------------+

0 new messages