Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-sem!brl-smoke!smoke!KEN%NJITCCCC.BITNET@wiscvm.wisc.edu From: KEN%NJITCCCC.BITNET@wiscvm.wisc.edu (Kenneth Ng) Newsgroups: net.unix-wizards Subject: Checking for waiting characters Message-ID: <470@brl-smoke.ARPA> Date: Thu, 1-May-86 11:34:19 EDT Article-I.D.: brl-smok.470 Posted: Thu May 1 11:34:19 1986 Date-Received: Sun, 4-May-86 06:41:16 EDT Sender: news@brl-smoke.ARPA Lines: 8 On Unix System V version 2 on an AT&T 3b5, has anyone been able to successfully test if characters are pending? I've got an application that needs to time out after a certain amount of time if no characters come through. Every read I've done seems to wait for characters. To date, I've tried setting -icanon on standard in, I've set the EOL value to 50, which according to the documentation should give me a time out of 5 seconds, and I've set the O_NDELAY on a fcntl() to standard input. Any help or suggestions would be greatly appreciated.