SteveLauC

Results 602 comments of SteveLauC

The `FdSet` interfaces indeed have a reason why they are using `BorrowedFd` rather than `Fd: AsFd`, see [this PR](https://github.com/nix-rust/nix/pull/2134) ----- And for that `unsafe` code snippet, > unsafe { libc::FD_SET(fd.as_raw_fd(),...

> > The `FdSet` interfaces indeed have a reason > > we might document it :) Yeah, I think we can document it in the comments

Yeah, it is currently exclusive to Linux, we can add it for Android if the required libc types and constants are available

Yeah, it seems that they are not implemented on Android. ```sh $ cd bionic $ rg "setcontext" $ rg "getcontext" $ ```

> For example, upgrading or downgrading locks. Yeah, this is something not covered by the current interface. > Some ideas for how to resolve this: > > * Remove the...

> This PR sacrifices a little bit of type safety in order to build successfully with both old and new versions of libc. Given that the development of `libc` has...

I cannot reproduce this on my m1 mac: ```sh $ uname -a Darwin Steves-MacBook-Air.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 arm64 ``` Have no...

I am trying to add support for System V message queue in #2318

Hi @IzawGithub, sorry for the late reply, I plan to take a look at this PR this weekend :)