libc
libc copied to clipboard
Raw bindings to platform APIs for Rust
bionic libc defines this and it appears to behave correctly on recent kernel versions.
Need #3572 to repair the build for rust. Sorry for not submitting a PR before 0.2.153.
I just learned that OwnedFd and BorrowedFd are I/O safe alternatives to RawFd, especially for FFI, https://rust-lang.github.io/rfcs/3128-io-safety.html#ownedfd-and-borrowedfdfd-1. So why not use this types instead? For example, currently mmap receives a...
Synchronized the types of the `st_mode` property of the `stat` struct and the flags of the `stat` header file.
It was originally defined back before rust could represent C unions. So instead of defining the union field correctly, it simply defined that union's most useful field. Define it correctly...
Use the 64 bit types and APIs included in GNU libc also for 32-bit systems. These are the types and APIs used when you compile your C code against GNU...
The GNU libc (glibc) provides alternative 64bit entry points for many of the file and time related functions on 32bit platforms. For C programs these are activated by setting the...
I'm just getting started with embedded programming, and found that compiling the standard library using rust-analyzer with `-Zbuild-std` fails because of [this line](https://github.com/rust-lang/rust/blob/9c3ad802d9b9633d60d3a74668eb1be819212d34/library/test/src/test_result.rs#L102). I'm not entirely sure, but it seems...