diff options
author | 1997-11-17 09:21:47 +0000 | |
---|---|---|
committer | 1997-11-17 09:21:47 +0000 | |
commit | e58e845d30ae4013d9cbf45edeab1f262809fcd6 (patch) | |
tree | 754ee4262b73c078d1e457be2086de7905e9ca16 | |
parent | Work around a stackframe bug in gcc alpha, who cannot deal with frames > 64k (diff) | |
download | wireguard-openbsd-e58e845d30ae4013d9cbf45edeab1f262809fcd6.tar.xz wireguard-openbsd-e58e845d30ae4013d9cbf45edeab1f262809fcd6.zip |
implement IBCS2_FIONBIO; christos
-rw-r--r-- | sys/compat/ibcs2/ibcs2_ioctl.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/compat/ibcs2/ibcs2_ioctl.c b/sys/compat/ibcs2/ibcs2_ioctl.c index 4b9bea3dad0..55b69dd4cf8 100644 --- a/sys/compat/ibcs2/ibcs2_ioctl.c +++ b/sys/compat/ibcs2/ibcs2_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ibcs2_ioctl.c,v 1.6 1997/01/23 16:12:17 niklas Exp $ */ +/* $OpenBSD: ibcs2_ioctl.c,v 1.7 1997/11/17 09:21:47 deraadt Exp $ */ /* $NetBSD: ibcs2_ioctl.c,v 1.12 1996/08/10 09:08:26 mycroft Exp $ */ /* @@ -524,8 +524,18 @@ ibcs2_sys_ioctl(p, v, retval) case IBCS2_SIOCSOCKSYS: return ibcs2_socksys(p, uap, retval); + case IBCS2_FIONBIO: + { + int arg; + + if ((error = copyin(SCARG(uap, data), &arg, + sizeof(arg))) != 0) + return error; + + return (*ctl)(fp, FIONBIO, (caddr_t)&arg, p); + } case IBCS2_I_NREAD: /* STREAMS */ - SCARG(uap, cmd) = FIONREAD; + SCARG(uap, cmd) = FIONREAD; return sys_ioctl(p, uap, retval); default: |