Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 22a6797

Browse files
author
B I Mohammed Abbas
committedJul 23, 2024
Allow unused unsafe for vxworks in read_at and write at
1 parent 39c4daa commit 22a6797

File tree

1 file changed

+2
-0
lines changed
  • std/src/sys/pal/unix

1 file changed

+2
-0
lines changed
 

‎std/src/sys/pal/unix/fd.rs

+2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ impl FileDesc {
120120
(&mut me).read_to_end(buf)
121121
}
122122

123+
#[cfg_attr(target_os = "vxworks", allow(unused_unsafe))]
123124
pub fn read_at(&self, buf: &mut [u8], offset: u64) -> io::Result<usize> {
124125
#[cfg(not(any(
125126
all(target_os = "linux", not(target_env = "musl")),
@@ -313,6 +314,7 @@ impl FileDesc {
313314
cfg!(not(any(target_os = "espidf", target_os = "horizon", target_os = "vita")))
314315
}
315316

317+
#[cfg_attr(target_os = "vxworks", allow(unused_unsafe))]
316318
pub fn write_at(&self, buf: &[u8], offset: u64) -> io::Result<usize> {
317319
#[cfg(not(any(
318320
all(target_os = "linux", not(target_env = "musl")),

0 commit comments

Comments
 (0)
Failed to load comments.