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:
parent
e51e7e067d
commit
33afa1d9ac
@ -30,6 +30,7 @@
|
|||||||
#include <sys/queue.h>
|
#include <sys/queue.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
#include <sys/conf.h>
|
#include <sys/conf.h>
|
||||||
|
#include <sys/filio.h>
|
||||||
#include <sys/fcntl.h>
|
#include <sys/fcntl.h>
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
#include <sys/kernel.h>
|
#include <sys/kernel.h>
|
||||||
@ -201,7 +202,14 @@ random_write(dev_t dev, struct uio *uio, int flag)
|
|||||||
static int
|
static int
|
||||||
random_ioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
|
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
|
static int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user