Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!adelie!barry From: barry@adelie.UUCP (Barry A. Burke) Newsgroups: comp.unix.questions,comp.sys.att,comp.lang.c,comp.sources.d Subject: Wanted: SYSV tty-input-characters-waiting test Message-ID: <765@adelie.UUCP> Date: Wed, 19-Nov-86 22:58:33 EST Article-I.D.: adelie.765 Posted: Wed Nov 19 22:58:33 1986 Date-Received: Thu, 20-Nov-86 02:21:10 EST Reply-To: barry@adelie.UUCP (Barry A. Burke) Distribution: world Organization: Adelie Corporation, Cambridge MA Lines: 27 Keywords: HELP! ioctl fcntl stty ???? Xref: mnetor comp.unix.questions:121 comp.sys.att:25 comp.lang.c:105 comp.sources.d:28 Several weeks ago, there was posted a code fragment demonstrating a (fairly) SYSV portable way of testing for pending (unread) characters on stdin (from the terminal). My vague recollection is that the code invoked a couple of innocuous UNIX system calls with obscure arguments designed to Raise The Beast (just kidding...}:-> ) We have similar code in place for the BSD and MS-DOS version of our application software, but now we need it for a SYSV port (to the 3B series, no less). Of course, I lost the original posting, and my previous request for this fragment elicited no responses (I suspect the request met with the Great West Cost News-Quake). Would some please, no,, PLEASE mail me the that code fragment? Or at least a hint at the solution? As before, I'll forward responses to those who mail me requests (I have 3 or 4 request so far- I haven't forgotten you). Thanks for the help! barry -- LIVE: Barry A. Burke, (617) 499-6370 USPS: Adelie Corporation, 125 CambridgePark Drive Cambridge, MA 02140 UUCP: barry@adelie.Adelie.COM / ..!{harvard | ll-xn | mirror}!adelie!barry ARPA: barry%adelie@harvard.HARVARD.EDU