Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!cs.utexas.edu!asuvax!ncar!gatech!mcnc!uvaarpa!murdoch!agate.cs.Virginia.EDU!acl3k From: acl3k@agate.cs.Virginia.EDU (Allan Christian Long) Newsgroups: comp.sys.sgi Subject: ioctl Message-ID: <1991May21.224750.535@murdoch.acc.Virginia.EDU> Date: 21 May 91 22:47:50 GMT Sender: usenet@murdoch.acc.Virginia.EDU Reply-To: acl3k@agate.cs.Virginia.EDU (Allan Christian Long) Organization: University of Virginia Computer Science Department Lines: 19 I'm trying to convert a tracking library from SunOS to IRIX. I managed to get it to compile, but it isn't working. Specifically, the an ioctl call is giving me an "Invalid argument error". The call looks like this: if (ioctl(trackerPtr->fileDescriptor, FIONREAD, &charsToRead) < 0) The first parameter is a file descriptor and the third is a pointer to a long. FIONREAD is a parameter from the termio.h file. I have RTFM'ed until I'm blue in the face, but I can't find FIONREAD mentioned anywhere in any of the manuals. The SunOS manual has a page on "filio" that describes this parameter, but there is no filio page for IRIX. Could someone please point me in the direction of a man page or something? A. Chris Long, Jr. acl3k@virginia.edu Rebooting sig, please wait...