Skip to content
Snippets Groups Projects
Commit 41b96fed authored by Tom Almeida's avatar Tom Almeida
Browse files

Added a different internal function for redox

parent c4c8b739
No related branches found
No related tags found
No related merge requests found
......@@ -142,6 +142,12 @@ pub unsafe fn ftello(stream: *mut FILE) -> off_t {
}
}
#[cfg(target_os = "linux")]
pub fn stdio_seek(stream: *mut FILE, off: off_t, whence: c_int) -> off_t {
unsafe { platform::lseek((*stream).fd, off, whence) }
}
#[cfg(target_os = "redox")]
pub fn stdio_seek(stream: *mut FILE, off: off_t, whence: c_int) -> off_t {
unsafe { platform::lseek((*stream).fd, off as isize, whence as usize) as off_t }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment