Dan Gohman

Results 179 issues of Dan Gohman

Here's a planning issue for a 1.0 release, similar to the one for the [0.38 release](https://github.com/bytecodealliance/rustix/issues/578). Hopefully we won't need a semver bump for a good long while, but when...

semver bump

FreeBSD has recently added support for Linux's timerfd API. Enable rustix's timerfd API on FreeBSD as well.

On 32-bit x86, get the vsyscall address from the AT_SYSINFO AUX vector entry, rather than looking it up in the vDSO. This avoids the need to link in all the...

Linux uses unsigned types for `stat` fields like [`st_mtime`](https://docs.rs/linux-raw-sys/latest/linux_raw_sys/general/struct.stat.html#structfield.st_mtime) which are actually signed. Values with the most significant bit indicate negative time offsets from the epoch, which is to say,...

Linux 6.6 has a new `fchmdat2` syscall with `AT_SYMLINK_NOFOLLOW` support; we should use it.

enhancement

Bitflags' `from_bits_truncate` does more than just mask off a fixed set of bits; it insists that all multi-bit flags be either completely present or completely absent. This makes it unsuitable...

semver bump

One of the main use cases for dup2 is to pass fds to an exec at arbitrarily chosen positions. I/O safety considers that to be forgery. But it's an important...

question

Rustix has this pattern where it defines flags types in both src/backend/linux_raw/\*/types.rs and src/backend/libc/\*/types.rs and then publicly exports those types from src/\*/\*.rs. This leads to a fair amount of duplication....

Currently many functions in rustix are documented with a comment that looks like this: ```rust /// `openat(dirfd, path, oflags, mode)`—Opens a file. /// /// POSIX guarantees that `openat` will use...

We recently learned that Musl (used in both wasi-libc and Emscripten) is using non-atomic 32-bit aligned loads from memory locations which can be stored to by other threads without synchronization,...