Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions library/std/src/sys/fs/hermit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ impl File {
}

pub fn fsync(&self) -> io::Result<()> {
Err(Error::from_raw_os_error(22))
unsupported()
}

pub fn datasync(&self) -> io::Result<()> {
Expand Down Expand Up @@ -380,7 +380,7 @@ impl File {
}

pub fn truncate(&self, _size: u64) -> io::Result<()> {
Err(Error::from_raw_os_error(22))
unsupported()
}

pub fn read(&self, buf: &mut [u8]) -> io::Result<usize> {
Expand Down Expand Up @@ -431,15 +431,15 @@ impl File {
}

pub fn duplicate(&self) -> io::Result<File> {
Err(Error::from_raw_os_error(22))
unsupported()
}

pub fn set_permissions(&self, _perm: FilePermissions) -> io::Result<()> {
Err(Error::from_raw_os_error(22))
unsupported()
}

pub fn set_times(&self, _times: FileTimes) -> io::Result<()> {
Err(Error::from_raw_os_error(22))
unsupported()
}
}

Expand Down Expand Up @@ -563,15 +563,15 @@ pub fn rename(_old: &Path, _new: &Path) -> io::Result<()> {
}

pub fn set_perm(_p: &Path, _perm: FilePermissions) -> io::Result<()> {
Err(Error::from_raw_os_error(22))
unsupported()
}

pub fn set_times(_p: &Path, _times: FileTimes) -> io::Result<()> {
Err(Error::from_raw_os_error(22))
unsupported()
}

pub fn set_times_nofollow(_p: &Path, _times: FileTimes) -> io::Result<()> {
Err(Error::from_raw_os_error(22))
unsupported()
}

pub fn rmdir(path: &Path) -> io::Result<()> {
Expand Down
Loading