Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Nov 2001 14:38:48 -0500 (EST)
From:      Pat Barron <pat@transarc.ibm.com>
To:        Erik Sabowski <airyk@sdf.lonestar.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Reading data from serial ports
Message-ID:  <Pine.GSO.3.96.1011107143735.6394F-100000@smithfield.transarc.ibm.com>
In-Reply-To: <Pine.NEB.4.33.0111071932110.9267-100000@sdf.lonestar.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 7 Nov 2001, Erik Sabowski wrote:
> I have a gps receiver and want to read data from it. What are the C
> function calls to read data from the serial port? a man page or a link to
> a web page would be enough. thanks

"man 2 read".

Remember, it's Unix - pretty much *everything* is a file.  Well, just
about everything...  Even memory can be treated like a file.  Read from it
with "read()", write to it with "write()"....

--Pat.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.1011107143735.6394F-100000>