From owner-svn-src-all@FreeBSD.ORG Thu Mar 29 14:59:55 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8294106566B; Thu, 29 Mar 2012 14:59:55 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id B90CA8FC14; Thu, 29 Mar 2012 14:59:54 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id B16242A28CD4; Thu, 29 Mar 2012 16:59:45 +0200 (CEST) Date: Thu, 29 Mar 2012 16:59:45 +0200 From: Ed Schouten To: Hans Petter Selasky Message-ID: <20120329145945.GC36321@hoeg.nl> References: <201203291453.q2TErFYE097838@svn.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="i7F3eY7HS/tUJxUd" Content-Disposition: inline In-Reply-To: <201203291453.q2TErFYE097838@svn.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Mar 2012 14:59:55 -0000 --i7F3eY7HS/tUJxUd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Hans Petter Selasky , 20120329 16:53: > Modified: head/sys/sys/tty.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- 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) !=3D 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. --=20 Ed Schouten WWW: http://80386.nl/ --i7F3eY7HS/tUJxUd Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iQIcBAEBAgAGBQJPdHjhAAoJEG5e2P40kaK7YBMP/1LlWaa9/oKMOU9mf3KS6oRd fJ6VjXDLr/cydzpMOt91jQldqUxhQ/vQ/LTJTNRvN0Vglx1gk+gkNsOqiIWKdVn3 Oqbp22Ptpd0xjkoT2/xXxs+WXWUcHzMDKKhLkk4x/FIW13e0L8UsIULxnvjPHSES ywyvm0XZcuNoi8zK1Qylc2KNPvFboEDCUj8yLb9oCEDHWS0/5wEwB3mWZQaXUavI rTKIT/quRE6yHIiSFY4qUURRE2i5anj0P3Iy3pOIZwJXVnd5Xz/wBCb29+xlxR6Z p4on9YVprItjMP/AgakFfkGxjgJbf0ol+y9Nbp6HzCMNoocaaWeI16JfABHU+hgd HzOOZxms3KjUrZH5C0BbvAebHJfTDL5al6glSATNz1PlpvKBRzl6JnsPUb1al6a2 wppvK8KMIaQiZS+xh4OkNMVP68363JVp+Lkaakpl5QQTB7d85Y2hQZDb4SQM0QPD 0MVzc3ycU9pR06cdJitSInDxH3rVzXaDYbmII2xUY5eE3W0jkQ1d3RhEfbSOYWZj tqGmemFdEISIKl+RjlsQYjNOlXwJQhBFs92gZixlq3paC9qyehdLJGi5bX9NH4dO 9GKifpUPYYbswbYtgEhr90D5CQ+vlWbX/GawkzM9125cjR3Njk2zUZbnCbTNF7BJ wq59XB9lCx1P0JUwmFg0 =Mrtq -----END PGP SIGNATURE----- --i7F3eY7HS/tUJxUd--