-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Implement statfs for dragonfly, freebsd and openbsd #1039
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
for OpenBSD, could you put the |
pub mount_info: mount_info, | ||
} | ||
|
||
pub union mount_info { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have the following error will trying to run testsuite on openbsd:
error: no rules expected the token `union`
--> src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs:54:9
|
54 | pub union mount_info {
| ^^^^^
The block is in s!
marco block, and union
seems unsupported by the macro
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed unions. Can you rerun the testsuite?
|
Thanks! Looks like @semarie still has some errors though? |
Yes. And I'm building Rust for OpenBSD to fix them |
@alesharik just a side note: you will have some unrelated errors regarding this PR (depending the openbsd version you use): |
I still have the same kind of errors.
Does |
Nope, it doesn't. I'm working on it |
Here is the PR that adds missing support for unions in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
first pass after the ctest changes: still need work for openbsd :)
thanks
pub ex_flags: ::c_int, | ||
pub ex_root: ::uid_t, | ||
pub ex_anon: xucred, | ||
pub ex_addr: *mut sockaddr_in, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is struct sockaddr
pub ex_anon: xucred, | ||
pub ex_addr: *mut sockaddr_in, | ||
pub ex_addrlen: ::c_int, | ||
pub ex_mask: *mut sockaddr_in, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
struct sockaddr
} | ||
|
||
pub struct fusefs_args { | ||
pub fspec: *mut ::c_char, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pub name: *mut ::c_char;
pub export_info: export_args, | ||
pub uid: ::uid_t, | ||
pub gid: ::gid_t, | ||
pub mask: ::mode_t, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pub mode: ::mode_t
pub ex_masklen: ::c_int, | ||
} | ||
|
||
pub struct in_addr { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in_addr
is already defined
pub struct in_addr { | ||
pub s_addr: ::in_addr_t, | ||
} | ||
pub struct sockaddr_in { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sockaddr_in
is already defined
This is looking good to me! Are there any final bits to fix or is this good to go? |
One problem that @semarie has mentioned is still not fixed yet:
|
I think it is good to go |
@bors: r+ |
📌 Commit 5ec8699 has been approved by |
Yes, looks like it builds successfully and passes all tests. |
Implement statfs for dragonfly, freebsd and openbsd
💔 Test failed - status-appveyor |
it would be more simple to test if libc could be updated to use latest ctest crate... I need to rewrite the changes for each test |
oh, it is just |
with an update of |
@bors: r+ |
📌 Commit ce4c140 has been approved by |
Implement statfs for dragonfly, freebsd and openbsd
☀️ Test successful - status-appveyor, status-travis |
No description provided.