diff options
author | bde <bde@FreeBSD.org> | 1997-12-06 13:25:01 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-12-06 13:25:01 +0000 |
commit | e868842f1180b3e29eff5629c14e3f84e2408cf5 (patch) | |
tree | bbf7b0ee0acd4d019803c4377eb818fb2dde8ec6 /sys/net | |
parent | 5bdfd4647651209e0cb83448fabf713a337acb1b (diff) | |
download | FreeBSD-src-e868842f1180b3e29eff5629c14e3f84e2408cf5.zip FreeBSD-src-e868842f1180b3e29eff5629c14e3f84e2408cf5.tar.gz |
Use ENOIOCTL instead of -1 (= ERESTART) for tty ioctls that are
not handled at a particular level. This fixes mainly restarting
of interrupted TIOCDRAINs and TIOCSETA{W,F}s.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_ppp.c | 4 | ||||
-rw-r--r-- | sys/net/if_sl.c | 4 | ||||
-rw-r--r-- | sys/net/ppp_tty.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 864beb3..99d399f 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -69,7 +69,7 @@ * Paul Mackerras (paulus@cs.anu.edu.au). */ -/* $Id: if_ppp.c,v 1.49 1997/10/18 01:20:23 peter Exp $ */ +/* $Id: if_ppp.c,v 1.50 1997/11/18 13:52:41 bde Exp $ */ /* from if_sl.c,v 1.11 84/10/04 12:54:47 rick Exp */ /* from NetBSD: if_ppp.c,v 1.15.2.2 1994/07/28 05:17:58 cgd Exp */ @@ -542,7 +542,7 @@ pppioctl(sc, cmd, data, flag, p) #endif default: - return (-1); + return (ENOIOCTL); } return (0); } diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index 9de097d..22dde19 100644 --- a/sys/net/if_sl.c +++ b/sys/net/if_sl.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_sl.c 8.6 (Berkeley) 2/1/94 - * $Id: if_sl.c,v 1.60 1997/09/21 22:01:03 gibbs Exp $ + * $Id: if_sl.c,v 1.61 1997/10/07 09:13:06 ache Exp $ */ /* @@ -444,7 +444,7 @@ sltioctl(tp, cmd, data, flag, p) default: splx(s); - return (-1); + return (ENOIOCTL); } splx(s); return (0); diff --git a/sys/net/ppp_tty.c b/sys/net/ppp_tty.c index 013f27e..ecfe326 100644 --- a/sys/net/ppp_tty.c +++ b/sys/net/ppp_tty.c @@ -70,7 +70,7 @@ * Paul Mackerras (paulus@cs.anu.edu.au). */ -/* $Id: ppp_tty.c,v 1.27 1997/10/18 01:20:28 peter Exp $ */ +/* $Id: ppp_tty.c,v 1.28 1997/11/18 14:08:51 bde Exp $ */ #include "ppp.h" #if NPPP > 0 @@ -473,7 +473,7 @@ ppptioctl(tp, cmd, data, flag, p) int error, s; if (sc == NULL || tp != (struct tty *) sc->sc_devp) - return -1; + return (ENOIOCTL); error = 0; switch (cmd) { |