Module Name: src
Committed By: uwe
Date: Tue Oct 8 12:49:56 UTC 2019
Modified Files:
src/sys/sys: conf.h
Log Message:
Convert ttynodisc() to devenodev and ttyerr*() to ttyenodev too.
Missed in previous. Of these - only ttyerrio() is used, the rest are
just courtesy "for those defining their own line disciplines". So may
be we should bring back ttyerrinput() too.
To generate a diff of this commit:
cvs rdiff -u -r1.153 -r1.154 src/sys/sys/conf.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/conf.h
diff -u src/sys/sys/conf.h:1.153 src/sys/sys/conf.h:1.154
--- src/sys/sys/conf.h:1.153 Tue Oct 8 07:33:14 2019
+++ src/sys/sys/conf.h Tue Oct 8 12:49:56 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.h,v 1.153 2019/10/08 07:33:14 mrg Exp $ */
+/* $NetBSD: conf.h,v 1.154 2019/10/08 12:49:56 uwe Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -223,10 +223,10 @@ struct linesw *ttyldisc_default(void);
void ttyldisc_release(struct linesw *);
/* For those defining their own line disciplines: */
-#define ttynodisc ((int (*)(dev_t, struct tty *))enodev)
-#define ttyerrclose ((int (*)(struct tty *, int))enodev)
-#define ttyerrio ((int (*)(struct tty *, struct uio *, int))enodev)
-#define ttyerrstart ((int (*)(struct tty *))enodev)
+#define ttynodisc ((int (*)(dev_t, struct tty *))devenodev)
+#define ttyerrclose ((int (*)(struct tty *, int))ttyenodev)
+#define ttyerrio ((int (*)(struct tty *, struct uio *, int))ttyenodev)
+#define ttyerrstart ((int (*)(struct tty *))ttyenodev)
int ttyerrpoll (struct tty *, int, struct lwp *);
int ttynullioctl(struct tty *, u_long, void *, int, struct lwp *);