diff --git a/libc-test/semver/emscripten.txt b/libc-test/semver/emscripten.txt index 35f7d85de518..b155786c4241 100644 --- a/libc-test/semver/emscripten.txt +++ b/libc-test/semver/emscripten.txt @@ -7,4 +7,3 @@ getgrnam_r getpwnam_r getpwuid_r in6_pktinfo -posix_fallocate64 diff --git a/src/unix/linux_like/emscripten/mod.rs b/src/unix/linux_like/emscripten/mod.rs index f3fd341ef304..db9eed1ce7a0 100644 --- a/src/unix/linux_like/emscripten/mod.rs +++ b/src/unix/linux_like/emscripten/mod.rs @@ -28,19 +28,38 @@ pub type fsfilcnt_t = u32; pub type rlim_t = u64; pub type nlink_t = u32; -pub type ino64_t = crate::ino_t; +#[deprecated(since = "0.2.187", note = "Use `ino_t` instead. See #5142.")] +pub type ino64_t = ino_t; + +#[deprecated(since = "0.2.187", note = "Use `off_t` instead. See #5142.")] pub type off64_t = off_t; + +#[deprecated(since = "0.2.187", note = "Use `blkcnt_t` instead. See #5142.")] pub type blkcnt64_t = crate::blkcnt_t; + +#[deprecated(since = "0.2.187", note = "Use `rlim_t` instead. See #5142.")] pub type rlim64_t = crate::rlim_t; +#[deprecated(since = "0.2.187", note = "Use `rlimit` instead. See #5142.")] pub type rlimit64 = crate::rlimit; + +#[deprecated(since = "0.2.187", note = "Use `flock` instead. See #5142.")] pub type flock64 = crate::flock; + +#[deprecated(since = "0.2.187", note = "Use `stat` instead. See #5142.")] pub type stat64 = crate::stat; + +#[deprecated(since = "0.2.187", note = "Use `statfs` instead. See #5142.")] pub type statfs64 = crate::statfs; + +#[deprecated(since = "0.2.187", note = "Use `statvfs` instead. See #5142.")] pub type statvfs64 = crate::statvfs; + +#[deprecated(since = "0.2.187", note = "Use `dirent` instead. See #5142.")] pub type dirent64 = crate::dirent; extern_ty! { + #[deprecated(since = "0.2.187", note = "Use `fpos_t` instead. See #5142.")] pub type fpos64_t; // FIXME(emscripten): fill this out with a struct } @@ -1461,5 +1480,16 @@ extern "C" { } // Alias to 64 to mimic glibc's LFS64 support +#[deprecated( + since = "0.2.187", + note = "Use \"64\"-unsuffixed routines instead. See #5142." +)] +#[allow(deprecated)] mod lfs64; + +#[deprecated( + since = "0.2.187", + note = "Use \"64\"-unsuffixed routines instead. See #5142." +)] +#[allow(deprecated)] pub use self::lfs64::*; diff --git a/src/unix/linux_like/mod.rs b/src/unix/linux_like/mod.rs index f37daf13f1f7..938e5c2520f5 100644 --- a/src/unix/linux_like/mod.rs +++ b/src/unix/linux_like/mod.rs @@ -544,6 +544,7 @@ cfg_if! { if #[cfg(target_os = "android")] { pub const RLIM64_INFINITY: c_ulonglong = !0; } else { + #[cfg_attr(target_os = "emscripten", allow(deprecated))] pub const RLIM64_INFINITY: crate::rlim64_t = !0; } }