about summary refs log tree commit diff
path: root/library/std/src/os/raw/mod.rs
AgeCommit message (Collapse)AuthorLines
2023-06-16Remove `#[cfg(all())]` workarounds from `c_char`Alex Macleod-5/+0
2022-03-01Provide C FFI types via core::ffi, not just in stdJosh Triplett-146/+21
The ability to interoperate with C code via FFI is not limited to crates using std; this allows using these types without std. The existing types in `std::os::raw` become type aliases for the ones in `core::ffi`. This uses type aliases rather than re-exports, to allow the std types to remain stable while the core types are unstable. This also moves the currently unstable `NonZero_` variants and `c_size_t`/`c_ssize_t`/`c_ptrdiff_t` types to `core::ffi`, while leaving them unstable.
2021-12-07Work around Clippy false positive on `as c_char`David Tolnay-0/+5
2021-12-07Define c_char using cfg_if rather than repeating 40-line cfgDavid Tolnay-88/+57
2021-11-27Add riscv64gc-unknown-freebsdTobias Kortkamp-2/+4
2021-10-31Re-add `std::os::raw::c_ssize_t`, with more accurate documentationThom Chiovoloni-0/+7
2021-10-30Replace `std::os::raw::c_ssize_t` with `std::os::raw::c_ptrdiff_t`Thom Chiovoloni-2/+2
2021-10-05Suppress some cfg from being shown in the stdlib docsWim Looman-0/+6
2021-08-25Reference tracking issueThom Chiovoloni-2/+2
2021-08-25Add `c_size_t` and `c_ssize_t` to `std::os::raw`.Thom Chiovoloni-0/+14
2021-02-23Use #[doc = include_str!()] in stdLeSeulArtichaut-1/+1
2021-02-21update tracking issue for raw_os_nonzeroAshley Mannix-1/+1
2021-02-17Provide NonZero_c_* integersIan Jackson-18/+47
I'm pretty sure I am going want this for #73125 and it seems like an omission that would be in any case good to remedy. It's a shame we don't have competent token pasting and case mangling for use in macro_rules!. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2021-02-17std::src::os::raw: Refactor, introducing macro type_alias!Ian Jackson-54/+27
This file contained a lot of repetitive code. This was about to get considerably worse, with introduction of a slew of new aliases. No functional change. I've eyeballed the docs and they don't seem to have changed either. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2020-09-16library/std: raw: Add support for RISC-V 32-bitAlistair Francis-2/+4
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2020-09-04Remove a useless allowed attrLzu Tao-1/+0
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-21/+4
Also doing fmt inplace as requested.
2020-07-27mv std libs to library/mark-0/+167