You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C-bugCategory: This is a bug.O-vxworksTarget: when they made us, they called us Curiosity, and Spirit, and told us to tell you helloT-libsRelevant to the library team, which will review and decide on the PR/issue.
jieyouxu
added
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
O-vxworks
Target: when they made us, they called us Curiosity, and Spirit, and told us to tell you hello
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Aug 4, 2024
biabbas
changed the title
Libc::pwrite and pread are not considered unsafe operation in fd.rs
libc::posix_memalign, libc::pwrite and pread are not considered unsafe operation during library build
Sep 20, 2024
C-bugCategory: This is a bug.O-vxworksTarget: when they made us, they called us Curiosity, and Spirit, and told us to tell you helloT-libsRelevant to the library team, which will review and decide on the PR/issue.
To resolve build errors, ununused_unsafe is allowed for target VxWorks.
We use libc::pread as pread64 which is declared as unsafe in libc for VxWorks
https://github.com/rust-lang/rust/blob/master/library/std/src/sys/pal/unix/fd.rs#L129
We use libc::pwrite as pwrite64 which is also an unsafe fn
https://github.com/rust-lang/rust/blob/master/library/std/src/sys/pal/unix/fd.rs#L323
Error
The text was updated successfully, but these errors were encountered: