Allow bog-standard ioctls through. There are really handled in

higher layers, but there needs to be a "no-error" return here.
This commit is contained in:
markm 2001-03-25 06:55:19 +00:00
parent e51e7e067d
commit 33afa1d9ac

View File

@ -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