On Thursday 29 March 2012 16:59:45 Ed Schouten wrote: > * Hans Petter Selasky <hsela...@freebsd.org>, 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 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"