diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -194,6 +194,8 @@ pub mod ioctl .map(|_| ()) } + /* This should perhaps return unit as the kernel supposedly always returns + the constant ``KB_101``. */ pub fn kdgkbtype<F: AsRawFd>(fd: &F) -> Result<libc::c_char> { let mut kb: libc::c_char = 0; @@ -202,6 +204,8 @@ pub mod ioctl ioctl(fd.as_raw_fd(), KDGKBTYPE, &mut kb as *mut _) })?; + //assert_eq(kb, KB_101); /* XXX */ + Ok(kb) } } |