Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: my ioctl's don't work Message-ID: <7742@jpl-devvax.JPL.NASA.GOV> Date: 11 Apr 90 20:39:27 GMT References: <1990Apr11.142002.26192@me.toronto.edu> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Distribution: comp Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 17 In article <1990Apr11.142002.26192@me.toronto.edu> eastick@me.utoronto.ca (Doug Eastick) writes: : I'm trying to get a program to work in cbreak mode. I stole this : from someone (Randal, I think). I'm including sys/ioctl.h (after : makelib'ing it). The problem lies with the TIOCGETP ioctl: : *** : Can't ioctl TIOCGETP: Inappropriate ioctl for device at blah line 83. : *** : The answer is simple, I just don't know what it is :-(. Any help is : appreciated. Thanks very much. I'd suggest you check the value of $TIOCGETP at the point of the ioctl. If it's 0 then you may need to say $TIOCGETP = &TIOCGETP; at some point. Likewise for $TIOCSETP. It's also possible the 'do' is failing for some reason. Larry