home *** CD-ROM | disk | FTP | other *** search
- 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
- From: exodus@crackle.Eng.Sun.COM (Greg Onufer)
- Newsgroups: comp.sys.sun.misc
- Subject: Re: How do I Detect Pending Data on a Serial Port?
- Date: 12 Jan 1993 05:04:45 GMT
- Organization: Sun Microsystems Inc., Mountain View, CA
- Lines: 8
- Distribution: usa
- Message-ID: <ll4kbdINN2ic@exodus.Eng.Sun.COM>
- References: <1993Jan11.215818.29796@mlb.semi.harris.com>
- NNTP-Posting-Host: crackle
-
- >I've openend up the serial port (/dev/tty[ab]) on my Sun IPC using the
- >'open' command. I get back a file descriptor. How can I detect if there
- >is any data ready for reading, i.e. a Peek?
-
- See the manual pages for poll(2) and select(3C) [Solaris 2.x manual
- sections].
-
- Cheers!greg
-