Skip to content

Commit

Permalink
add comment for nanosleep_time64 syscall
Browse files Browse the repository at this point in the history
  • Loading branch information
robinyuan1002 committed Oct 2, 2024
1 parent 1288f49 commit 6f94013
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/safeposix/syscalls/fs_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1889,6 +1889,8 @@ impl Cage {
unsafe { syscall(SYS_futex, uaddr, futex_op, val, val2, uaddr2, val3) as i32 }
}

//We directly call nanosleep syscall(SYS_clock_nanosleep) from the libc
//return an `i32` value representing the result of the system call.
pub fn nanosleep_time64_syscall(&self, clockid: u32, flags: i32, req: usize, rem: usize) -> i32 {
unsafe { syscall(SYS_clock_nanosleep, clockid, flags, req, rem) as i32 }
}
Expand Down

0 comments on commit 6f94013

Please sign in to comment.