From owner-freebsd-questions Fri Dec 1 13:14: 9 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hiwaay.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id 44A9237B699 for ; Fri, 1 Dec 2000 13:13:54 -0800 (PST) Received: from bonsai.knology.net (user-24-214-88-8.knology.net [24.214.88.8]) by mail.hiwaay.net (8.11.0/8.11.0) with ESMTP id eB1LDq020230 for ; Fri, 1 Dec 2000 15:13:52 -0600 (CST) Received: (from steve@localhost) by bonsai.knology.net (8.11.0/8.9.3) id eB1LDqs94053 for questions@freebsd.org; Fri, 1 Dec 2000 15:13:52 -0600 (CST) (envelope-from steve) Date: Fri, 1 Dec 2000 15:13:51 -0600 From: Steve Price To: questions@freebsd.org Subject: serial port programming Message-ID: <20001201151351.B93357@bonsai.knology.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD 5.0-CURRENT i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, It has been some time since I've done any serial port programming and I find myself in need of a piece of code to get/set CTS, DTR, and RTS, as well as being able to write stuff to the port. Writing stuff to the port I got. I'm pretty sure I can (re)set DTR using ioctl(2). This is where my memory gets fuzzy. I believe to set CTS and RTS I need to be using termios along with tcsetattr and tcgetattr. Can anyone help refresh my memory and point me to the FAQ or better yet some example code? Thanks. -steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message