Commit cc82ed2
authored
Fix ioctl numbers on BSDs (#926)
`<sys/ioccom.h>` defines `IOC_OUT` as `0x40000000UL`. But this is "out"
from the perspective of the kernel, not the application. So this
corresponds to `READ` rather than `WRITE`.
Tested on FreeBSD with Smithay/drm-rs#180. This also
seems to be correct for NetBSD and OpenBSD.1 parent 90b2fbd commit cc82ed2
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | | - | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
0 commit comments