Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern tty_pty: add CTASSERTs to document assumptions
details: https://anonhg.NetBSD.org/src/rev/ae86531777bc
branches: trunk
changeset: 326432:ae86531777bc
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Jan 29 02:38:48 2014 +0000
description:
tty_pty: add CTASSERTs to document assumptions
diffstat:
sys/kern/tty_pty.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 8c2b0e3d5a6e -r ae86531777bc sys/kern/tty_pty.c
--- a/sys/kern/tty_pty.c Wed Jan 29 01:40:35 2014 +0000
+++ b/sys/kern/tty_pty.c Wed Jan 29 02:38:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tty_pty.c,v 1.133 2013/09/15 14:56:26 martin Exp $ */
+/* $NetBSD: tty_pty.c,v 1.134 2014/01/29 02:38:48 yamt Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty_pty.c,v 1.133 2013/09/15 14:56:26 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty_pty.c,v 1.134 2014/01/29 02:38:48 yamt Exp $");
#include "opt_ptm.h"
@@ -509,6 +509,8 @@
KASSERT(mutex_owned(&tty_lock));
/* note: FLUSHREAD and FLUSHWRITE already ok */
+ CTASSERT(TIOCPKT_FLUSHREAD == FREAD);
+ CTASSERT(TIOCPKT_FLUSHWRITE == FWRITE);
if (flush == 0) {
flush = TIOCPKT_STOP;
pti->pt_flags |= PF_STOPPED;
Home |
Main Index |
Thread Index |
Old Index