mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 08:33:24 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106767
@ -544,7 +544,7 @@ snpioctl(dev, cmd, data, flags, td)
|
||||
* SNPGTTY happy, else we can't know what is device
|
||||
* major/minor for tty.
|
||||
*/
|
||||
*((dev_t *)data) = snp->snp_target;
|
||||
*((udev_t *)data) = dev2udev(snp->snp_target);
|
||||
break;
|
||||
|
||||
case FIONBIO:
|
||||
|
@ -30,8 +30,8 @@
|
||||
* detached from its current tty.
|
||||
*/
|
||||
|
||||
#define SNPSTTY _IOW('T', 90, dev_t)
|
||||
#define SNPGTTY _IOR('T', 89, dev_t)
|
||||
#define SNPSTTY _IOW('T', 90, udev_t)
|
||||
#define SNPGTTY _IOR('T', 89, udev_t)
|
||||
|
||||
/*
|
||||
* These values would be returned by FIONREAD ioctl
|
||||
|
Loading…
Reference in New Issue
Block a user