Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!kgdykes From: kgdykes@watmath.UUCP Newsgroups: comp.sys.ibm.pc Subject: can polled/timed-out reads be done in microsoft C ?? Message-ID: <5164@watmath.UUCP> Date: Tue, 17-Feb-87 04:05:06 EST Article-I.D.: watmath.5164 Posted: Tue Feb 17 04:05:06 1987 Date-Received: Tue, 17-Feb-87 19:18:33 EST Distribution: na Organization: U of Waterloo, Ontario Lines: 17 I need to be able to "poll" COM1 from a C program. Since regular read() or getc() wait forever for data, is there a method to either or all of 1) set a signal or alarm which can "time-out" the normal i/o routines 2) already exists a read or getc type routine which either times-out or immediately returns some status if no data is available. 3) invoke (or write if i have to) a routine to tell me "are there any data to be read on this file handle" then i can go do the getc() Thankyou! -Ken Dykes Software Development Group U.of.Waterloo, Ontario, Canada kgdykes@watmath :q