diff options
| author | Mark Murray <markm@FreeBSD.org> | 2001-03-25 06:55:19 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 2001-03-25 06:55:19 +0000 |
| commit | 41bc9751bec052c8b00da8cb3915b5cabc73b491 (patch) | |
| tree | 5a9ff2048db575884193585d05570c5b3365ffe0 /sys/dev/random/randomdev.c | |
| parent | 0c3a8314c00f58f16823e8cd6186757d5e8bcdcc (diff) | |
Notes
Diffstat (limited to 'sys/dev/random/randomdev.c')
| -rw-r--r-- | sys/dev/random/randomdev.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index e30e9ae9da3b..4a6aeb8f7ed0 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 |
