summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-03-25 06:55:19 +0000
committermarkm <markm@FreeBSD.org>2001-03-25 06:55:19 +0000
commit33afa1d9ac9eb65ba7ca840aeb8493582e9604be (patch)
tree6cbd4351f6e369b373de6c69f3e310c4a2204089
parente51e7e067d9cfc20e2881f888c5f45046c153df8 (diff)
downloadFreeBSD-src-33afa1d9ac9eb65ba7ca840aeb8493582e9604be.zip
FreeBSD-src-33afa1d9ac9eb65ba7ca840aeb8493582e9604be.tar.gz
Allow bog-standard ioctls through. There are really handled in
higher layers, but there needs to be a "no-error" return here.
-rw-r--r--sys/dev/random/randomdev.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c
index e30e9ae..4a6aeb8 100644
--- a/sys/dev/random/randomdev.c
+++ b/sys/dev/random/randomdev.c
@@ -30,6 +30,7 @@
#include <sys/queue.h>
#include <sys/systm.h>
#include <sys/conf.h>
+#include <sys/filio.h>
#include <sys/fcntl.h>
#include <sys/uio.h>
#include <sys/kernel.h>
@@ -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
OpenPOWER on IntegriCloud