Skip to content

Commit

Permalink
Re-add std::os::raw::c_ssize_t, with more accurate documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc committed Oct 31, 2021
1 parent d429d0d commit 8d19819
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions library/std/src/os/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 8d19819

Please sign in to comment.