Skip to content
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

Add acct(2) to BSD module #1093

Merged
merged 3 commits into from
Oct 15, 2018
Merged

Add acct(2) to BSD module #1093

merged 3 commits into from
Oct 15, 2018

Conversation

jabedude
Copy link
Contributor

The acct syscall is supported on BSD platforms, the PR aims to add it to the BSD module.

@rust-highfive
Copy link

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.

@alexcrichton
Copy link
Member

Thanks! Looks like ci is failing though?

@jabedude
Copy link
Contributor Author

jabedude commented Oct 13, 2018

Looks like it failed here:
/checkout/target/x86_64-rumprun-netbsd/debug/build/libc-test-b256b20c8099faff/out/main.c:5622: undefined reference to acct'

I'm not familiar with the x86_64-rumprun-netbsd triple, but netbsd supports the acct(2) syscall.
Any idea why it fails to build on that platform?

@alexcrichton
Copy link
Member

Presumably the API isn't available on that platform? Could it be omitted on that platform?

@jabedude
Copy link
Contributor Author

Oh definitely! I was just confused why x86_64-rumprun-netbsd didn't compile when netbsd supports acct(2). I will omit with a #[cfg]

@alexcrichton
Copy link
Member

Oh the target is a unikernel fork that's super old and hasn't been updated in forever, which may explain that!

@jabedude
Copy link
Contributor Author

Do you know how to exclude that specific target triple? The Rust documentation doesn't show a way to be more specific than netbsd. See here.

@alexcrichton
Copy link
Member

I think that you found the right way to test for it, but it looks like CI is failing?

@jabedude
Copy link
Contributor Author

I'm sort of at a loss on how to use #[cfg] and keep the linter happy. CI also failed when I used cfg_if!

@alexcrichton
Copy link
Member

The current iteration also fails due to using target_vendor on OSX it looks like.

TBH I think we should go back to the original version of this PR and just remove x86_64-rumprun-netbsd from the list of tested targets, AFAIK no one's ever even used the target... Want to go ahead and do that?

@jabedude
Copy link
Contributor Author

Sounds good. I reverted to the original version

@alexcrichton
Copy link
Member

@jabedude to land, can you also remove the rumprun target from .travis.yml?

This patch removes the x86_64-rumprun-netbsd triple from Travis CI.
@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Oct 15, 2018

📌 Commit 70c178d has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Oct 15, 2018

⌛ Testing commit 70c178d with merge 0b0cded...

bors added a commit that referenced this pull request Oct 15, 2018
Add acct(2) to BSD module

The `acct` syscall is supported on BSD platforms, the PR aims to add it to the BSD module.
@bors
Copy link
Contributor

bors commented Oct 15, 2018

💔 Test failed - status-travis

@alexcrichton
Copy link
Member

@bors: retry

@bors
Copy link
Contributor

bors commented Oct 15, 2018

⌛ Testing commit 70c178d with merge 9c4f6c4...

bors added a commit that referenced this pull request Oct 15, 2018
Add acct(2) to BSD module

The `acct` syscall is supported on BSD platforms, the PR aims to add it to the BSD module.
@bors
Copy link
Contributor

bors commented Oct 15, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 9c4f6c4 to master...

@bors bors merged commit 70c178d into rust-lang:master Oct 15, 2018
@jabedude jabedude deleted the acct branch October 15, 2018 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants