diff options
| author | Thom Chiovoloni <chiovolonit@gmail.com> | 2021-10-31 13:01:57 -0700 |
|---|---|---|
| committer | Thom Chiovoloni <chiovolonit@gmail.com> | 2021-10-31 13:01:57 -0700 |
| commit | 8d19819781318c6ba24240af4b0038b692dd627f (patch) | |
| tree | 0f2d872075a3649bc3dd0e60320c678af16da944 | |
| parent | d429d0df33ef0d726058fdc2611e78060703a7ec (diff) | |
| download | rust-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.rs | 7 |
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; |
