From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 22 16:34:55 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C56116A402 for ; Sat, 22 Apr 2006 16:34:55 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D53A43D49 for ; Sat, 22 Apr 2006 16:34:55 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout3.cac.washington.edu (8.13.6+UW06.03/8.13.5+UW06.03) with ESMTP id k3MGYriP024569 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 22 Apr 2006 09:34:54 -0700 X-Auth-Received: from [192.168.0.50] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.6+UW06.03/8.13.6+UW06.03) with ESMTP id k3MGYovO025468 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 22 Apr 2006 09:34:52 -0700 Message-ID: <444A5B2E.5050307@u.washington.edu> Date: Sat, 22 Apr 2006 09:34:54 -0700 From: Garrett Cooper User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Peter Jeremy , freebsd-hackers@freebsd.org References: <4B29E098-F409-490F-86F1-380CFE1165FC@u.washington.edu> <20060422114418.GD720@turion.vk2pj.dyndns.org> In-Reply-To: <20060422114418.GD720@turion.vk2pj.dyndns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: Subject: Re: Is showing all attributes for RS232 port possible in FreeBSD? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Apr 2006 16:34:55 -0000 Peter Jeremy wrote: > On Sat, 2006-Apr-22 04:28:30 -0700, Garrett Cooper wrote: > >> I was just wondering if there was any way where I could program with >> C, such that I could view information regarding the extra pins on a >> DB9 serial port other than just TXD and RXD, ie the DTS, CD, CTS,... >> etc ports. >> > > Look in tty(4), specifically TIOCMSET, TIOCMGET, TIOCMBIS, TIOCMBIC. Brilliant! That's exactly what I was looking for. Thanks! -Garrett