andrew@eleceng.bradford.ac.uk (Andrew G. Minter) (06/08/90)
I am porting a program to Minix that needs to be able to tell if there is anything available for reading from the console before actually doing a read. The general idea is that the program grinds away continuously, while watching to see if the user has typed anything. Is there any way to make read(2) non-blocking, or to examine the queue as in BSD's FIONREAD? If not, has anyone made any patches which make it possible to do this? Thanks in advance for you advice! Cheers, Andrew -- ############################################################################## # Andrew G. Minter, # JANET: andrew@brad.eeng # # Lecturer in Information Systems, # EARN/BITNET: andrew@eeng.brad.ac.uk # # Dept. of Electrical Engineering, # # # University of Bradford, # Phone: +44.274.733466 ext 347 or 326 # # Bradford, West Yorkshire, BD7 1DP # Telex: 51309 UNIBFD G # # United Kingdom # Fax: +44.274.305340 # ##############################################################################