home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp / 9559 < prev    next >
Encoding:
Internet Message Format  |  1992-08-22  |  841 b 

  1. Path: sparky!uunet!wupost!sdd.hp.com!mips!mips!munnari.oz.au!mel.dit.csiro.au!yarra!bohra.cpg.oz.au!jrp
  2. From: jrp@bohra.cpg.oz.au (John Pitman)
  3. Newsgroups: comp.sys.hp
  4. Subject: timer interrupts
  5. Message-ID: <1992Aug23.030049.20065@bohra.cpg.oz.au>
  6. Date: 23 Aug 92 03:00:49 GMT
  7. Organization: Computer Power Software
  8. Lines: 23
  9.  
  10. Hi there,
  11. I aqm trying to do some interrupt trapping to effectively time out stdin reads
  12. but i dont know what sequence to use what calls in. The sequence i want to do
  13. is as follows:
  14.  
  15.     timer_fired = FALSE
  16.     set timer (say 10 secs)
  17.     gets()
  18.     if (timer_fired)
  19.     {
  20.         something useful
  21.         reset timer ?
  22.         return flag to caller
  23.     }
  24.     else
  25.     {
  26.         return data read tp caller
  27.     }
  28.  
  29.     can anybody point me at some code please. I can see some calls in the books
  30.     which look approriate, but dont know what sequence they sre used in.
  31. jp
  32.             
  33.