libc up / 안쓰는부분 정리.

This commit is contained in:
Sangbum Kim 2024-07-22 02:12:04 +09:00
parent 69c5eacda7
commit 45c3761fd9
2 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,7 @@ edition = "2018"
[dependencies]
libc = { version = "0.2", default-features = false }
libc-print = "0.1.22"
libc-print = "0.1.23"
errno = { version = "*", default-features = false }
[profile.dev]

View File

@ -7,6 +7,7 @@ pub(crate) struct Timespec {
pub(crate) ts: timespec,
}
#[cfg(test)]
pub(crate) fn new_timespec() -> Timespec {
Timespec {
ts: timespec {
@ -15,6 +16,7 @@ pub(crate) fn new_timespec() -> Timespec {
},
}
}
impl Sub<Timespec> for Timespec {
type Output = Duration;