Skip to content

Commit

Permalink
Adds kern_fsync for 11.00
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon committed May 11, 2024
1 parent 77089be commit e5df6dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions korbis-1100/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ impl korbis::Kernel for Kernel {
#[offset(0x416920)]
unsafe fn kern_close(self, td: *mut Self::Thread, fd: c_int) -> c_int;

#[offset(0xEAD50)]
unsafe fn kern_fsync(self, td: *mut Self::Thread, fd: c_int, fullsync: c_int) -> c_int;

#[offset(0xDD340)]
unsafe fn kern_writev(self, td: *mut Self::Thread, fd: c_int, auio: *mut Self::Uio) -> c_int;
}
4 changes: 4 additions & 0 deletions korbis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ pub trait Kernel: Copy + Send + Sync + 'static {
/// `td` cannot be null.
unsafe fn kern_close(self, td: *mut Self::Thread, fd: c_int) -> c_int;

/// # Safety
/// `td` cannot be null.
unsafe fn kern_fsync(self, td: *mut Self::Thread, fd: c_int, fullsync: c_int) -> c_int;

/// # Safety
/// - `td` cannot be null.
/// - `auio` cannot be null.
Expand Down

0 comments on commit e5df6dc

Please sign in to comment.