FreeBSD: Added xfile structure and file descriptor types#5002
FreeBSD: Added xfile structure and file descriptor types#5002antoncxx wants to merge 1 commit intorust-lang:mainfrom
xfile structure and file descriptor types#5002Conversation
There was a problem hiding this comment.
What's the purpose of this PR? As far as I know, struct xfile is only exposed to the user via the KERN_FILE sysctl. That's fairly obscure. I would be ok if those definitions lived outside of the libc crate. It's up to Trevor if he thinks it's worthwhile to include.
And like Trevor said, you should drop everything related to FreeBSD 10 through12.
The motivation is what you described. I'm involved into development of a Rust library that performs |
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Description
Added binding for
xfilestructure fromsys/file.hand descriptor types.Sources
FreeBSD 15
FreeBSD 14
FreeBSD 13
FreeBSD 12xfiledescriptorsFreeBSD 11xfiledescriptorsFreeBSD 10xfiledescriptorsChecklist
libc-test/semverhave been updated*LASTor*MAXareincluded (see #3131)
cd libc-test && cargo test --target mytarget);especially relevant for platforms that may not be checked in CI
@rustbot label +stable-nominated