1
Fork 0

Delete architecture-specific memchr code in std::sys

Currently all architecture-specific memchr code is only used in
`std::io`. Most of the actual `memchr` capacity exposed to the user
through the slice API is instead implemented in core::slice::memchr.

Hence this commit deletes memchr from std::sys[_common] and replace
calls to it by calls to core::slice::memchr functions. This deletes
(r)memchr from the list of symbols linked to libc.
This commit is contained in:
Arthur Carcano 2023-07-24 16:09:15 +02:00
parent bb594538fc
commit 88ac7ace56
23 changed files with 8 additions and 231 deletions

View file

@ -20,7 +20,6 @@ pub mod io;
pub mod kernel_copy;
#[cfg(target_os = "l4re")]
mod l4re;
pub mod memchr;
#[cfg(not(target_os = "l4re"))]
pub mod net;
#[cfg(target_os = "l4re")]