update paths in comments
This commit is contained in:
parent
762cd4842e
commit
7c436a8af4
@ -1,7 +1,7 @@
|
||||
//! NOTE: Keep these constants in sync with `library/std/src/sys/unix/mod.rs`!
|
||||
//! NOTE: Keep these constants in sync with `library/std/src/sys/pal/unix/mod.rs`!
|
||||
|
||||
/// The default value if `#[unix_sigpipe]` is not specified. This resolves
|
||||
/// to `SIG_IGN` in `library/std/src/sys/unix/mod.rs`.
|
||||
/// to `SIG_IGN` in `library/std/src/sys/pal/unix/mod.rs`.
|
||||
///
|
||||
/// Note that `SIG_IGN` has been the Rust default since 2014. See
|
||||
/// <https://github.com/rust-lang/rust/issues/62569>.
|
||||
|
@ -39,7 +39,7 @@ pub fn opts() -> TargetOptions {
|
||||
// While we support ELF TLS, rust requires a way to register
|
||||
// cleanup handlers (in C, this would be something along the lines of:
|
||||
// void register_callback(void (*fn)(void *), void *arg);
|
||||
// (see src/libstd/sys/unix/fast_thread_local.rs) that is currently
|
||||
// (see src/libstd/sys/pal/unix/fast_thread_local.rs) that is currently
|
||||
// missing in illumos. For now at least, we must fallback to using
|
||||
// pthread_{get,set}specific.
|
||||
//has_thread_local: true,
|
||||
|
@ -1,7 +1,7 @@
|
||||
//! This tests the `Integer::{ilog,log2,log10}` methods. These tests are in a
|
||||
//! separate file because there's both a large number of them, and not all tests
|
||||
//! can be run on Android. This is because in Android `ilog2` uses an imprecise
|
||||
//! approximation:https://github.com/rust-lang/rust/blob/4825e12fc9c79954aa0fe18f5521efa6c19c7539/src/libstd/sys/unix/android.rs#L27-L53
|
||||
//! approximation:https://github.com/rust-lang/rust/blob/4825e12fc9c79954aa0fe18f5521efa6c19c7539/src/libstd/sys/pal/unix/android.rs#L27-L53
|
||||
|
||||
#[test]
|
||||
fn checked_ilog() {
|
||||
|
@ -68,7 +68,7 @@ pub fn cvt_gai(err: c_int) -> io::Result<()> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Just to provide the same interface as sys/unix/net.rs
|
||||
/// Just to provide the same interface as sys/pal/unix/net.rs
|
||||
pub fn cvt_r<T, F>(mut f: F) -> io::Result<T>
|
||||
where
|
||||
T: IsMinusOne,
|
||||
|
@ -209,7 +209,7 @@ pub fn env() -> Env {
|
||||
return Env { iter: result.into_iter() };
|
||||
}
|
||||
|
||||
// See src/libstd/sys/unix/os.rs, same as that
|
||||
// See src/libstd/sys/pal/unix/os.rs, same as that
|
||||
fn parse(input: &[u8]) -> Option<(OsString, OsString)> {
|
||||
if input.is_empty() {
|
||||
return None;
|
||||
|
@ -27,7 +27,7 @@
|
||||
//! This module must only depend on core and not on std types as the eventual
|
||||
//! hope is to have std depend on sys and not the other way around.
|
||||
//! However, some amount of glue code may currently be necessary so such code
|
||||
//! should go in sys/windows/mod.rs rather than here. See `IoResult` as an example.
|
||||
//! should go in sys/pal/windows/mod.rs rather than here. See `IoResult` as an example.
|
||||
|
||||
use core::ffi::c_void;
|
||||
use core::ptr::addr_of;
|
||||
|
@ -90,7 +90,7 @@ pub fn cvt_gai(err: c_int) -> io::Result<()> {
|
||||
if err == 0 { Ok(()) } else { Err(last_error()) }
|
||||
}
|
||||
|
||||
/// Just to provide the same interface as sys/unix/net.rs
|
||||
/// Just to provide the same interface as sys/pal/unix/net.rs
|
||||
pub fn cvt_r<T, F>(mut f: F) -> io::Result<T>
|
||||
where
|
||||
T: IsMinusOne,
|
||||
|
@ -25,7 +25,7 @@ use rand::RngCore;
|
||||
use crate::*;
|
||||
|
||||
// This mapping should match `decode_error_kind` in
|
||||
// <https://github.com/rust-lang/rust/blob/master/library/std/src/sys/unix/mod.rs>.
|
||||
// <https://github.com/rust-lang/rust/blob/master/library/std/src/sys/pal/unix/mod.rs>.
|
||||
const UNIX_IO_ERROR_TABLE: &[(&str, std::io::ErrorKind)] = {
|
||||
use std::io::ErrorKind::*;
|
||||
&[
|
||||
|
@ -342,7 +342,7 @@ trait EvalContextExtPriv<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
|
||||
/// Returns the minimum alignment for the target architecture for allocations of the given size.
|
||||
fn min_align(&self, size: u64, kind: MiriMemoryKind) -> Align {
|
||||
let this = self.eval_context_ref();
|
||||
// List taken from `library/std/src/sys/common/alloc.rs`.
|
||||
// List taken from `library/std/src/sys/pal/common/alloc.rs`.
|
||||
// This list should be kept in sync with the one from libstd.
|
||||
let min_align = match this.tcx.sess.target.arch.as_ref() {
|
||||
"x86" | "arm" | "mips" | "mips32r6" | "powerpc" | "powerpc64" | "wasm32" => 8,
|
||||
|
Loading…
x
Reference in New Issue
Block a user