From 41bc9751bec052c8b00da8cb3915b5cabc73b491 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Sun, 25 Mar 2001 06:55:19 +0000 Subject: [PATCH] Allow bog-standard ioctls through. There are really handled in higher layers, but there needs to be a "no-error" return here. --- sys/dev/random/randomdev.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index e30e9ae9da3..4a6aeb8f7ed 100644 --- a/sys/dev/random/randomdev.c +++ b/sys/dev/random/randomdev.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -201,7 +202,14 @@ random_write(dev_t dev, struct uio *uio, int flag) static int random_ioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) { - return ENOTTY; + switch (cmd) { + /* Really handled in upper layer */ + case FIOASYNC: + case FIONBIO: + return 0; + default: + return ENOTTY; + } } static int