Declare the snp ioctl()s to work on udev_t, since that is what they
really do and dev_t is defined differently in kernel and userland. Return a correctly formed udev from SNPGTTY. Reviewed by: dd
This commit is contained in:
parent
aa26768242
commit
20207b60a8
@ -544,7 +544,7 @@ snpioctl(dev, cmd, data, flags, td)
|
|||||||
* SNPGTTY happy, else we can't know what is device
|
* SNPGTTY happy, else we can't know what is device
|
||||||
* major/minor for tty.
|
* major/minor for tty.
|
||||||
*/
|
*/
|
||||||
*((dev_t *)data) = snp->snp_target;
|
*((udev_t *)data) = dev2udev(snp->snp_target);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FIONBIO:
|
case FIONBIO:
|
||||||
|
@ -30,8 +30,8 @@
|
|||||||
* detached from its current tty.
|
* detached from its current tty.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define SNPSTTY _IOW('T', 90, dev_t)
|
#define SNPSTTY _IOW('T', 90, udev_t)
|
||||||
#define SNPGTTY _IOR('T', 89, dev_t)
|
#define SNPGTTY _IOR('T', 89, udev_t)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* These values would be returned by FIONREAD ioctl
|
* These values would be returned by FIONREAD ioctl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user