empty() for USG UNIX ?

Dan Ts'o dan at rna.UUCP
Wed Nov 2 11:02:00 AEST 1988


	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 at rna.rockefeller.edu
				Rockefeller Univ.	...cmcl2!rna!dan
				1230 York Ave.		rna!dan at nyu.arpa
				NY, NY 10021		tso at rockefeller.arpa
							tso at rockvax.bitnet



More information about the Comp.unix.wizards mailing list