From owner-freebsd-questions Wed May 5 20:14:11 1999 Delivered-To: freebsd-questions@freebsd.org Received: from kiwi.pinnacle.co.nz (pinnacle.internet.co.nz [210.48.55.133]) by hub.freebsd.org (Postfix) with ESMTP id 5258E14EEF for ; Wed, 5 May 1999 20:14:07 -0700 (PDT) (envelope-from jonc@pinnacle.co.nz) Received: from kiwi.pinnacle.co.nz (kiwi.pinnacle.co.nz [202.37.163.2]) by kiwi.pinnacle.co.nz (8.9.3/8.9.3) with ESMTP id PAA29386; Thu, 6 May 1999 15:10:28 +1200 (NZST) Date: Thu, 6 May 1999 15:10:28 +1200 (NZST) From: Jonathan Chen To: Grifter Cc: freebsd-questions@FreeBSD.ORG Subject: Re: comport usage In-Reply-To: <3.0.1.32.19990505200730.0069925c@mail.cal.shaw.wave.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 5 May 1999, Grifter wrote: [..] > i have read that i can open the comport like a file but how do i set > parity,baudrate, stopbits, startbits etc.... Are there any examples that i > could look at or any help files i can use? or hell just someone out there > willing to help? Check out tcsetattr(3) and termios(4). Get your hands on "Advanced Programming in the UNIX Environment" by Stevens for examples. Jonathan Chen ---------------------------------------------------------------------- "Nyuck, nyuck, nyuck!" - Curly To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message