这是indexloc提供的服务,不要输入任何密码
Skip to content

Support "fstat" on Linux #4684

@RalfJung

Description

@RalfJung

The standard library uses statx instead of fstat on Linux, but Rust programs may still call fstat directly, so it makes sense to also support fstat. In particular, this is needed for Tokio.

We already support fstat on a bunch of Unixes so this should be fairly easy. However, some slight adjustments may be needed since the exact set of fields in the stat type tends to be platform-dependent.

Metadata

Metadata

Assignees

Labels

A-filesArea: related to files, paths, sockets, file descriptors, or handlesC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancementE-good-first-issueA good way to start contributing, mentoring is available

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions