Skip to content

Commit 0af4a28

Browse files
committed
kmc-solid: Add a stub implementation of File::set_times
1 parent caee496 commit 0af4a28

File tree

1 file changed

+12
-0
lines changed
  • library/std/src/sys/solid

1 file changed

+12
-0
lines changed

library/std/src/sys/solid/fs.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ pub struct OpenOptions {
7777
custom_flags: i32,
7878
}
7979

80+
#[derive(Copy, Clone, Debug, Default)]
81+
pub struct FileTimes {}
82+
8083
#[derive(Clone, PartialEq, Eq, Debug)]
8184
pub struct FilePermissions(c_short);
8285

@@ -126,6 +129,11 @@ impl FilePermissions {
126129
}
127130
}
128131

132+
impl FileTimes {
133+
pub fn set_accessed(&mut self, _t: SystemTime) {}
134+
pub fn set_modified(&mut self, _t: SystemTime) {}
135+
}
136+
129137
impl FileType {
130138
pub fn is_dir(&self) -> bool {
131139
self.is(abi::S_IFDIR)
@@ -452,6 +460,10 @@ impl File {
452460
pub fn set_permissions(&self, _perm: FilePermissions) -> io::Result<()> {
453461
unsupported()
454462
}
463+
464+
pub fn set_times(&self, _times: FileTimes) -> io::Result<()> {
465+
unsupported()
466+
}
455467
}
456468

457469
impl Drop for File {

0 commit comments

Comments
 (0)