Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!pasteur!cory.Berkeley.EDU!schung From: schung@cory.Berkeley.EDU (Stephen the Greatest) Newsgroups: comp.unix.questions Subject: ioctl,gtty,stty etc. Message-ID: <440@pasteur.Berkeley.Edu> Date: 29 Jan 88 19:13:59 GMT Sender: news@pasteur.Berkeley.Edu Reply-To: schung@cory.Berkeley.EDU (Stephen the Greatest) Organization: University of California, Berkeley Lines: 16 First of all, let me state that this is a stupid question. I thought that gtty and stty are the same as ioctl with TIOCGETP and TIOCSETP set. But somehow, when I call ioctl(0,TIOCGETP,&buf) the result is an empty buf. When I do a gtty(0,&buf) it works. Any ideas? - Stephen