diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-17 09:21:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-17 09:21:48 +0000 |
commit | 8c4d7ed043b4067a5d41f188075e17313eaea7ff (patch) | |
tree | 045fac278a0d0105713f3c240b94491b2ff897ee /sys/compat/ibcs2 | |
parent | a20075cd4dd0940e2013430ba7028de0246d880c (diff) |
implement IBCS2_FIONBIO; christos
Diffstat (limited to 'sys/compat/ibcs2')
-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: |