Skip to content

Commit a08ea58

Browse files
qinghontgross35
authored andcommitted
openbsd: fix bug for IOC_INOUT
1 parent 1fbb4b9 commit a08ea58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ pub const IOCPARM_MASK: u32 = 0x1fff;
445445
pub const IOC_VOID: u32 = 0x20000000;
446446
pub const IOC_OUT: u32 = 0x40000000;
447447
pub const IOC_IN: u32 = 0x80000000;
448-
pub const IOC_INOUT: u32 = IOC_IN | IOC_IN;
448+
pub const IOC_INOUT: u32 = IOC_IN | IOC_OUT;
449449
pub const IOC_DIRMASK: u32 = 0xe0000000;
450450

451451
pub const fn _IO(g: u32, n: u32) -> u32 {

0 commit comments

Comments
 (0)