Dan Gohman

Results 1066 comments of Dan Gohman

`getgrouplist` is sufficiently un-syscall-like that I expect it's out of scope for rustix. I imagine it should be possible to build a higher-level library that uses rustix's `socket_peercred` on Linux...

I took the liberty of rebasing on trunk, which already had the `stx_dio_read_offset_align` field, but not yet the flags. Thanks for the PR!

Ah, this still depends on https://github.com/rust-lang/libc/pull/4401.

The `stat` struct is initialized by the OS, in the `fstat` system call. Msan doesn't know about it because the system call happens in an `asm` block. In theory, code...

No, the feedback I've heard from people who work with Android is that bypassing libc on Android is some combination of discouraged and unsupported.

The use case that motivated this was NaN-boxing at the wasm level. When doing NaN-boxing, it's common to interpret the canonical NaN bitpattern as an actual floating-point NaN, and non-canonical...

Wasm is designed to be a compilation target for other languages. NaN boxing is used in some popular language implentations. Almost all hardware, including almost all x86 instructions, already have...

Interpreter code that I've seen does seem to rely on native targets preserving NaN payloads, for add/sub/mul/div/sqrtl, and most native targets do propagate NaNs for those in practice. For min/max,...

The only arithmetic operations that can return "one of several possible results" are floating-point operation which can return NaN, and the only permitted variations are in the NaN bits. The...

> That's why having canonical `NaN` strikes me as an odd choice - the rare use cases that require that can just define stricter operations on top of the ones...