Skip to content

Commit 8d19819

Browse files
committed
Re-add std::os::raw::c_ssize_t, with more accurate documentation
1 parent d429d0d commit 8d19819

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

library/std/src/os/raw/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,10 @@ pub type c_size_t = usize;
171171
/// platforms where this is not the case.
172172
#[unstable(feature = "c_size_t", issue = "88345")]
173173
pub type c_ptrdiff_t = isize;
174+
175+
/// Equivalent to C's `ssize_t` (on POSIX) or `SSIZE_T` (on Windows) type.
176+
///
177+
/// This type is currently always [`isize`], however in the future there may be
178+
/// platforms where this is not the case.
179+
#[unstable(feature = "c_size_t", issue = "88345")]
180+
pub type c_ssize_t = isize;

0 commit comments

Comments
 (0)