Date: Thu, 29 Mar 2012 16:59:45 +0200 From: Ed Schouten <ed@80386.nl> To: Hans Petter Selasky <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 Message-ID: <20120329145945.GC36321@hoeg.nl> In-Reply-To: <201203291453.q2TErFYE097838@svn.freebsd.org> References: <201203291453.q2TErFYE097838@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--i7F3eY7HS/tUJxUd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Hans Petter Selasky <hselasky@FreeBSD.org>, 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 <ed@80386.nl> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120329145945.GC36321>