Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Convert ttynodisc() to devenodev and ttyerr*() to tt...



details:   https://anonhg.NetBSD.org/src/rev/3fdc722199a3
branches:  trunk
changeset: 464477:3fdc722199a3
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Oct 08 12:49:56 2019 +0000

description:
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.

diffstat:

 sys/sys/conf.h |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (24 lines):

diff -r c569fd58fa19 -r 3fdc722199a3 sys/sys/conf.h
--- a/sys/sys/conf.h    Tue Oct 08 12:29:57 2019 +0000
+++ b/sys/sys/conf.h    Tue Oct 08 12:49:56 2019 +0000
@@ -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 @@
 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 *);



Home | Main Index | Thread Index | Old Index