From owner-freebsd-questions Wed Nov 7 11:38:53 2001 Delivered-To: freebsd-questions@freebsd.org Received: from xfw.transarc.ibm.com (xfw.transarc.ibm.com [192.54.226.51]) by hub.freebsd.org (Postfix) with ESMTP id DB44037B419 for ; Wed, 7 Nov 2001 11:38:51 -0800 (PST) Received: from mailhost2.transarc.ibm.com (mailhost2.transarc.ibm.com [9.38.192.125]) by xfw.transarc.ibm.com (AIX4.3/UCB 8.7/8.7) with ESMTP id OAA20932; Wed, 7 Nov 2001 14:30:05 -0500 (EST) Received: from smithfield.transarc.ibm.com (smithfield.transarc.ibm.com [9.38.192.92]) by mailhost2.transarc.ibm.com (8.8.0/8.8.0) with SMTP id OAA08215; Wed, 7 Nov 2001 14:38:49 -0500 (EST) Date: Wed, 7 Nov 2001 14:38:48 -0500 (EST) From: Pat Barron To: Erik Sabowski Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Reading data from serial ports In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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