Xref: utzoo comp.unix.wizards:12057 comp.bugs.sys5:659 Path: utzoo!attcan!uunet!yale!cmcl2!rna!dan From: dan@rna.UUCP (Dan Ts'o) Newsgroups: comp.unix.wizards,comp.bugs.sys5 Subject: empty() for USG UNIX ? Message-ID: <292@rna.UUCP> Date: 2 Nov 88 01:02:00 GMT Organization: Rockefeller University - Neurobiology Lines: 18 Sorry for being so lazy, but can someone send me a C routine for the USG System V termio equivalent of the old Rand empty(fd) call. The empty(fd) call took a file descriptor argument, usually a tty, and returned 1 if there were no characters in the queue to read (would block if read(fd) were issued) and 0 if there were bytes to read. It also worked on pipes, but I don't care about that feature at this point. I have the 4BSD equivalent, which just uses ioctl(FIONREAD) to return how many characters are in the queue. So what is the System V equivalent ? Thanks. Please email responses. Cheers, Dan Ts'o 212-570-7671 Dept. Neurobiology dan@rna.rockefeller.edu Rockefeller Univ. ...cmcl2!rna!dan 1230 York Ave. rna!dan@nyu.arpa NY, NY 10021 tso@rockefeller.arpa tso@rockvax.bitnet