summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2006-01-10 09:19:10 +0000
committerphk <phk@FreeBSD.org>2006-01-10 09:19:10 +0000
commit57be8af6424fe98a84058dd0712eaa9b9e111185 (patch)
treeba38ab39bf9faead06889887180608022ca1f910 /sys/conf
parent102c8af8288f3384264c77b191aaff70b5806f29 (diff)
downloadFreeBSD-src-57be8af6424fe98a84058dd0712eaa9b9e111185.zip
FreeBSD-src-57be8af6424fe98a84058dd0712eaa9b9e111185.tar.gz
Move the old BSD4.3 tty compatibility from (!BURN_BRIDGES && COMPAT_43)
to COMPAT_43TTY. Add COMPAT_43TTY to NOTES and */conf/GENERIC Compile tty_compat.c only under the new option. Spit out #warning "Old BSD tty API used, please upgrade." if ioctl_compat.h gets #included from userland.
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/NOTES3
-rw-r--r--sys/conf/files2
-rw-r--r--sys/conf/options1
3 files changed, 5 insertions, 1 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index a6e9483..a7fcd47 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -256,6 +256,9 @@ options TURNSTILE_PROFILING
#
options COMPAT_43
+# Old tty interface.
+options COMPAT_43TTY
+
# Enable FreeBSD4 compatibility syscalls
options COMPAT_FREEBSD4
diff --git a/sys/conf/files b/sys/conf/files
index 8b53f61..246c25d 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -1330,7 +1330,7 @@ kern/sysv_msg.c optional sysvmsg
kern/sysv_sem.c optional sysvsem
kern/sysv_shm.c optional sysvshm
kern/tty.c standard
-kern/tty_compat.c standard
+kern/tty_compat.c optional compat_43tty
kern/tty_conf.c standard
kern/tty_cons.c standard
kern/tty_pty.c optional pty
diff --git a/sys/conf/options b/sys/conf/options
index 3ed3901..41b67d1 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -62,6 +62,7 @@ NO_ADAPTIVE_MUTEXES opt_adaptive_mutexes.h
ALQ
CODA_COMPAT_5 opt_coda.h
COMPAT_43 opt_compat.h
+COMPAT_43TTY opt_compat.h
COMPAT_FREEBSD4 opt_compat.h
COMPAT_FREEBSD5 opt_compat.h
COMPILING_LINT opt_global.h
OpenPOWER on IntegriCloud