Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!uhccux!munnari.oz.au!kaukau.comp.vuw.ac.nz!comp.vuw.ac.nz!massey!E.Ireland From: E.Ireland@massey.ac.nz (Evan Ireland) Newsgroups: comp.unix.questions Subject: Count of buffered items Message-ID: <243sis-b@massey.ac.nz> Date: 8 Mar 90 23:24:46 GMT Reply-To: E.Ireland@massey.ac.nz Organization: Information Sciences, Massey University, New Zealand Lines: 14 Sender: I am interested in the practical application of functions that return the number of buffered items on an input or output stream, e.g. the number of characters in a keyboard typeahead buffer, or the number of messages (not message sizes) in a message queue. I realise that it is often useful to know whether this number is non-zero, in order to prevent blocking I/O calls, but would like to hear from anyone who has found information about the actual number of buffered items useful at the application level (not at the level of the buffering mechanisms, since obviously they need to detect buffer-full conditions etc.) Please reply directly by email, to E.Ireland@massey.ac.nz.