about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThom Chiovoloni <chiovolonit@gmail.com>2021-10-31 13:01:57 -0700
committerThom Chiovoloni <chiovolonit@gmail.com>2021-10-31 13:01:57 -0700
commit8d19819781318c6ba24240af4b0038b692dd627f (patch)
tree0f2d872075a3649bc3dd0e60320c678af16da944
parentd429d0df33ef0d726058fdc2611e78060703a7ec (diff)
downloadrust-8d19819781318c6ba24240af4b0038b692dd627f.tar.gz
rust-8d19819781318c6ba24240af4b0038b692dd627f.zip
Re-add `std::os::raw::c_ssize_t`, with more accurate documentation
-rw-r--r--library/std/src/os/raw/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/library/std/src/os/raw/mod.rs b/library/std/src/os/raw/mod.rs
index e25eaf63bcd..01392ffab79 100644
--- a/library/std/src/os/raw/mod.rs
+++ b/library/std/src/os/raw/mod.rs
@@ -171,3 +171,10 @@ pub type c_size_t = usize;
 /// platforms where this is not the case.
 #[unstable(feature = "c_size_t", issue = "88345")]
 pub type c_ptrdiff_t = isize;
+
+/// Equivalent to C's `ssize_t` (on POSIX) or `SSIZE_T` (on Windows) type.
+///
+/// This type is currently always [`isize`], however in the future there may be
+/// platforms where this is not the case.
+#[unstable(feature = "c_size_t", issue = "88345")]
+pub type c_ssize_t = isize;