home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sun / misc / 6227 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  844 b 

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!bogus.sura.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!ames!sun-barr!news2me.EBay.Sun.COM!exodus.Eng.Sun.COM!crackle!exodus
  2. From: exodus@crackle.Eng.Sun.COM (Greg Onufer)
  3. Newsgroups: comp.sys.sun.misc
  4. Subject: Re: How do I Detect Pending Data on a Serial Port?
  5. Date: 12 Jan 1993 05:04:45 GMT
  6. Organization: Sun Microsystems Inc., Mountain View, CA
  7. Lines: 8
  8. Distribution: usa
  9. Message-ID: <ll4kbdINN2ic@exodus.Eng.Sun.COM>
  10. References: <1993Jan11.215818.29796@mlb.semi.harris.com>
  11. NNTP-Posting-Host: crackle
  12.  
  13. >I've openend up the serial port (/dev/tty[ab]) on my Sun IPC using the
  14. >'open' command. I get back a file descriptor.  How can I detect if there
  15. >is any data ready for reading, i.e. a Peek?
  16.  
  17. See the manual pages for poll(2) and select(3C) [Solaris 2.x manual
  18. sections].
  19.  
  20. Cheers!greg
  21.