Re-add std::os::raw::c_ssize_t, with more accurate documentation

This commit is contained in:
Thom Chiovoloni 2021-10-31 13:01:57 -07:00
parent d429d0df33
commit 8d19819781
No known key found for this signature in database
GPG Key ID: E2EFD4309E11C8A8

View File

@ -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;