Patch to fix TIOCGWINSZ/ioctl/telnet problem (2.4)?

Patch to fix TIOCGWINSZ/ioctl/telnet problem (2.4)?

Post by M. Hedlu » Thu, 14 Sep 1995 04:00:00



I have been diagnosing a problem that causes the TIOCGWINSZ ioctl to fail
unders Solaris 2.4 when called through a telnet window.  I was given a
clue that a patch exists to solve some sort of telnet / termio / pty
problem, and would likely take care of this, but I'm not seeing it on the
SunSolve public patch report, and the clue-giver has applied too many
patches to remember which solved this problem.  Can anyone tell me?

Much appreciated.


[n.b.: I tend to post and mail my responses to news articles.]

 
 
 

1. TIOCGWINSZ ioctl doesn't/does work with telnet/rlogin session: why ?

There is this little program I have (with source) showing what I find to
be a puzzling behavior: at some point, it calls

        ioctl (STDIN_FILENO, TIOCGWINSZ, (char *) &size)

This call returns successfuly if I run the program from a session that
was initiated via rlogin, but will return an EINVAL, "Invalid argument"
error if the program is started from a telnet session. How can this be ?

I am running Solaris 2.4, and I would be grateful for any help (is there a
way to avoid this ?).

                                        Martin

--

Service Informatique Central                          Central Computing Service
Ecole Polytechnique Fdrale - Lausanne - Swiss Federal Institute of Technology
================== PGP public key: http://sehp1.epfl.ch:8001 ==================

2. Problem: Cannot remove deep subdir tree

3. [2.4/2.5] Fix ns83820 ioctl oops

4. Quest: Sockets in SYSVR3

5. ioctl(0, TIOCGWINSZ, ...) & solaris 2.2

6. Whats the best shell script book around for beginners?

7. ioctl and TIOCGWINSZ doesn't work

8. Screen Shot in Solaris2.5.1

9. TIOCGWINSZ ioctl command doesn't work?

10. PATCH: specialix fix from 2.4 missing in 2.5

11. patch - tdfxfb fixes for 2.4.x

12. [PATCH][2.4] fix permissions in /proc

13. [2.4] reiserfs: parser fix patch