Move os_str_bytes
to sys::unix
and reuse it on other platforms.
This commit is contained in:
parent
798baebde1
commit
c93cb40b90
10 changed files with 12 additions and 14 deletions
|
@ -30,6 +30,7 @@ pub mod net;
|
|||
#[cfg(target_os = "l4re")]
|
||||
pub use self::l4re::net;
|
||||
pub mod os;
|
||||
pub mod os_str;
|
||||
pub mod path;
|
||||
pub mod pipe;
|
||||
pub mod process;
|
||||
|
@ -42,8 +43,6 @@ pub mod thread_local_dtor;
|
|||
pub mod thread_local_key;
|
||||
pub mod time;
|
||||
|
||||
pub use crate::sys_common::os_str_bytes as os_str;
|
||||
|
||||
// SAFETY: must be called only once during runtime initialization.
|
||||
// NOTE: this is not guaranteed to run, for example when Rust code is called externally.
|
||||
pub unsafe fn init(argc: isize, argv: *const *const u8) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue