From owner-svn-src-head@FreeBSD.ORG Thu Mar 29 15:31:10 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 51FEB106564A; Thu, 29 Mar 2012 15:31:10 +0000 (UTC) (envelope-from hselasky@freebsd.org) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id 686998FC24; Thu, 29 Mar 2012 15:31:09 +0000 (UTC) X-T2-Spam-Status: No, hits=0.5 required=5.0 tests=ALL_TRUSTED, BAYES_50,SPF_SOFTFAIL Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 258336303; Thu, 29 Mar 2012 17:25:59 +0200 Received-SPF: softfail receiver=mailfe02.swip.net; client-ip=176.74.212.201; envelope-from=hselasky@freebsd.org From: Hans Petter Selasky To: Ed Schouten Date: Thu, 29 Mar 2012 17:24:37 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <201203291453.q2TErFYE097838@svn.freebsd.org> <20120329145945.GC36321@hoeg.nl> In-Reply-To: <20120329145945.GC36321@hoeg.nl> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201203291724.37401.hselasky@freebsd.org> Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" Subject: Re: svn commit: r233661 - in head/sys: dev/syscons sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Mar 2012 15:31:10 -0000 On Thursday 29 March 2012 16:59:45 Ed Schouten wrote: > * Hans Petter Selasky , 20120329 16:53: > > Modified: head/sys/sys/tty.h > > ========================================================================= > > ===== --- head/sys/sys/tty.h Thu Mar 29 13:36:53 2012 (r233660) > > +++ head/sys/sys/tty.h Thu Mar 29 14:53:14 2012 (r233661) > > @@ -197,6 +197,8 @@ void tty_hiwat_in_block(struct tty *tp); > > > > void tty_hiwat_in_unblock(struct tty *tp); > > dev_t tty_udev(struct tty *tp); > > #define tty_opened(tp) ((tp)->t_flags & TF_OPENED) > > > > +/* NULL-safe version of "tty_opened()" */ > > +#define tty_opened_ns(tp) ((tp) != NULL && tty_opened(tp)) > > > > #define tty_gone(tp) ((tp)->t_flags & TF_GONE) > > #define tty_softc(tp) ((tp)->t_devswsoftc) > > #define tty_devname(tp) devtoname((tp)->t_dev) > > Huh? Hm? Hm! :-( > > Please don't make this part of the TTY API. Just add a wrapper to > syscons.c. Ok, I'll move the define to syscons.c if no other clients have use for this. --HPS