Skip to content

Commit cf6113d

Browse files
committed
linux: Added _IO, _IOW, _IOR, _IOWR to the exported API
1 parent 094464b commit cf6113d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

libc-test/semver/linux.txt

+4
Original file line numberDiff line numberDiff line change
@@ -3548,9 +3548,13 @@ _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS
35483548
_CS_POSIX_V7_LPBIG_OFFBIG_LIBS
35493549
_CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS
35503550
_CS_POSIX_V7_WIDTH_RESTRICTED_ENVS
3551+
_IO
35513552
_IOFBF
35523553
_IOLBF
35533554
_IONBF
3555+
_IOR
3556+
_IOW
3557+
_IOWR
35543558
_PC_2_SYMLINKS
35553559
_PC_ALLOC_SIZE_MIN
35563560
_PC_ASYNC_IO

src/unix/linux_like/linux/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -5893,22 +5893,22 @@ const fn _IOC(dir: u32, ty: u32, nr: u32, size: usize) -> u32 {
58935893
}
58945894

58955895
/// Build an ioctl number for an argumentless ioctl.
5896-
pub(crate) const fn _IO(ty: u32, nr: u32) -> u32 {
5896+
pub const fn _IO(ty: u32, nr: u32) -> u32 {
58975897
_IOC(_IOC_NONE, ty, nr, 0)
58985898
}
58995899

59005900
/// Build an ioctl number for an read-only ioctl.
5901-
pub(crate) const fn _IOR<T>(ty: u32, nr: u32) -> u32 {
5901+
pub const fn _IOR<T>(ty: u32, nr: u32) -> u32 {
59025902
_IOC(_IOC_READ, ty, nr, size_of::<T>())
59035903
}
59045904

59055905
/// Build an ioctl number for an write-only ioctl.
5906-
pub(crate) const fn _IOW<T>(ty: u32, nr: u32) -> u32 {
5906+
pub const fn _IOW<T>(ty: u32, nr: u32) -> u32 {
59075907
_IOC(_IOC_WRITE, ty, nr, size_of::<T>())
59085908
}
59095909

59105910
/// Build an ioctl number for a read-write ioctl.
5911-
pub(crate) const fn _IOWR<T>(ty: u32, nr: u32) -> u32 {
5911+
pub const fn _IOWR<T>(ty: u32, nr: u32) -> u32 {
59125912
_IOC(_IOC_READ | _IOC_WRITE, ty, nr, size_of::<T>())
59135913
}
59145914

0 commit comments

Comments
 (0)