summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-06-09 09:09:54 +0000
committerphk <phk@FreeBSD.org>2004-06-09 09:09:54 +0000
commit6c64927139b3c6d9d3e54baeaf0c8d0ba929ebf8 (patch)
treeac2c601310a475fbefa1fa13fac1a0a35c3860b1 /sys
parent59caf70bb9c804ad96b6a44dad50092c28748818 (diff)
downloadFreeBSD-src-6c64927139b3c6d9d3e54baeaf0c8d0ba929ebf8.zip
FreeBSD-src-6c64927139b3c6d9d3e54baeaf0c8d0ba929ebf8.tar.gz
Move PTY private defines into PTY private files.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/tty_pty.c4
-rw-r--r--sys/sys/tty.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index 599b0b0..197d86c 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -119,6 +119,10 @@ struct pt_ioctl {
#define PF_NOSTOP 0x40
#define PF_UCNTL 0x80 /* user control mode */
+#define TSA_PTC_READ(tp) ((void *)&(tp)->t_outq.c_cf)
+#define TSA_PTC_WRITE(tp) ((void *)&(tp)->t_rawq.c_cl)
+#define TSA_PTS_READ(tp) ((void *)&(tp)->t_canq)
+
static char *names = "pqrsPQRS";
/*
* This function creates and initializes a pts/ptc pair
diff --git a/sys/sys/tty.h b/sys/sys/tty.h
index a9500cb..9c42cc4 100644
--- a/sys/sys/tty.h
+++ b/sys/sys/tty.h
@@ -253,9 +253,6 @@ struct speedtab {
#define TSA_HUP_OR_INPUT(tp) ((void *)&(tp)->t_rawq.c_cf)
#define TSA_OCOMPLETE(tp) ((void *)&(tp)->t_outq.c_cl)
#define TSA_OLOWAT(tp) ((void *)&(tp)->t_outq)
-#define TSA_PTC_READ(tp) ((void *)&(tp)->t_outq.c_cf)
-#define TSA_PTC_WRITE(tp) ((void *)&(tp)->t_rawq.c_cl)
-#define TSA_PTS_READ(tp) ((void *)&(tp)->t_canq)
#ifdef _KERNEL
#ifdef MALLOC_DECLARE
OpenPOWER on IntegriCloud