[lkml]   [1996]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectTermio/pty coding question: Directions?
Whats the list to ask a pty/terminal io related coding question?

Since I've wasted an email, lemme ask it here as well.

Ive got a daemon I'm coding that opens a pty (BSD-style) and then just passes
io between the TCP descriptor and the master side of the pty ala telnetd
or rlogind.

(1) including sgtty.h undefs ioctl and defines ioctl to bsd_ioctl
which then doesn't link when compiling ELF, although its there in the
libbsd.a but anyway, to the point. (2) I try to ioctl() the TCP descriptor
with a TIOCGETP which fails with EINVAL (arg). Whats the preferred
"Linux" way to do this, should I even be using sgtty? Is EINVAL due
to me undefining ioctl (reversing sgtty.h) to get a link, and linking
the wrong one?

Concerning (1), whats the address to linux-gcc list?

Please mail direct as this is off topic.
At least I'm not discussing the speed of light. :P

Melvin S.

 \ /
  Last update: 2005-03-22 13:37    [W:0.018 / U:1.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site