Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/compat/common/tty_43.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/compat/common/tty_43.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.30 retrieving revision 1.30.28.2 diff -u -p -r1.30 -r1.30.28.2 --- src/sys/compat/common/tty_43.c 2014/05/22 16:31:19 1.30 +++ src/sys/compat/common/tty_43.c 2020/04/08 14:08:00 1.30.28.2 @@ -1,4 +1,4 @@ -/* $NetBSD: tty_43.c,v 1.30 2014/05/22 16:31:19 dholland Exp $ */ +/* $NetBSD: tty_43.c,v 1.30.28.2 2020/04/08 14:08:00 martin Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -62,7 +62,11 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tty_43.c,v 1.30 2014/05/22 16:31:19 dholland Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tty_43.c,v 1.30.28.2 2020/04/08 14:08:00 martin Exp $"); + +#if defined(_KERNEL_OPT) +#include "opt_compat_netbsd.h" +#endif #include #include @@ -74,8 +78,13 @@ __KERNEL_RCSID(0, "$NetBSD: tty_43.c,v 1 #include #include #include +#include +#include #include +#include +#include + int ttydebug = 0; static const struct speedtab compatspeeds[] = { @@ -108,11 +117,11 @@ static const int compatspcodes[] = { static int ttcompatgetflags(struct tty *); static void ttcompatsetflags(struct tty *, struct termios *); static void ttcompatsetlflags(struct tty *, struct termios *); -int ttcompat(struct tty *, u_long, void *, int, struct lwp *); /*ARGSUSED*/ int -ttcompat(struct tty *tp, u_long com, void *data, int flag, struct lwp *l) +compat_43_ttioctl(struct tty *tp, u_long com, void *data, int flag, + struct lwp *l) { switch (com) { @@ -505,3 +514,17 @@ ttcompatsetlflags(struct tty *tp, struct t->c_lflag = lflag; t->c_cflag = cflag; } + +int +kern_tty_43_init(void) +{ + MODULE_HOOK_SET(tty_ttioctl_43_hook, compat_43_ttioctl); + return 0; +} + +int +kern_tty_43_fini(void) +{ + MODULE_HOOK_UNSET(tty_ttioctl_43_hook); + return 0; +}