svn commit: r233661 - in head/sys: dev/syscons sys

Ed Schouten ed at 80386.nl
Thu Mar 29 14:59:55 UTC 2012


* Hans Petter Selasky <hselasky at 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.

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20120329/602bbed2/attachment.pgp


More information about the svn-src-all mailing list