Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 May 1999 15:10:28 +1200 (NZST)
From:      Jonathan Chen <jonc@pinnacle.co.nz>
To:        Grifter <grifter@shaw.wave.ca>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: comport usage
Message-ID:  <Pine.SC5.4.10.9905061508310.29343-100000@kiwi.pinnacle.co.nz>
In-Reply-To: <3.0.1.32.19990505200730.0069925c@mail.cal.shaw.wave.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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