Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!amdcad!ames!ncar!tank!oddjob!gargoyle!att!chinet!mcdchg!nud!fishpond!fnf From: fnf@fishpond.UUCP (Fred Fish) Newsgroups: comp.unix.aux Subject: Re: Bug in console emulator Keywords: bugs Message-ID: <122@fishpond.UUCP> Date: 23 Aug 88 03:42:50 GMT References: <121@fishpond.UUCP> <15956@apple.Apple.COM> Reply-To: fnf@fishpond.UUCP (Fred Fish) Organization: occasionally Lines: 18 In article <15956@apple.Apple.COM> dwb@apple.com.UUCP (David W. Berry) writes: +In article <121@fishpond.UUCP> fnf@fishpond.UUCP (Fred Fish) writes: ++The following demonstrates what looks like a problem with the ++"A/UX Initial Console Emulator". Can anyone suggest any workarounds? + Nope, I'd say it looks like a problem with your test +program. isatty and ttyname both work on a file descriptor +and your passing it a FILE structure. Try replacing stdin with +fileno(stdin) and similar for stdout and stderr and you'll get +what you expect. Yes, I received mail from several people pointing out my boo-boo (thanks everyone!). Guess that will teach me to look in the manual after I haven't used a function for a while. -Fred -- # Fred Fish, 1346 West 10th Place, Tempe, AZ 85281, USA # noao!nud!fishpond!fnf (602) 921-1113