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

explain the types used in the open64 call #71921

Merged
merged 1 commit into from
May 6, 2020
Merged

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented May 5, 2020

Fixes #71915, where I learned about this quirk. I don't actually know what I am talking about here. ;)

@rust-highfive
Copy link
Collaborator

r? @cramertj

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 5, 2020
@hanna-kruppe
Copy link
Contributor

I think this code is shared by all Unix-y targets, while the comment is very macOS-specific? Or at least, the comment only makes sense if you presuppose mode_t is a smaller integer type, which apparently isn't the case on *-linux-gnu targets.

@RalfJung
Copy link
Member Author

RalfJung commented May 5, 2020

It's not just macOS though...

@RalfJung
Copy link
Member Author

RalfJung commented May 5, 2020

I updated the comment, better now?

@hanna-kruppe
Copy link
Contributor

Seems good enough to me, it won't do any harm and may help someone in the future. @bors r+

@bors
Copy link
Contributor

bors commented May 6, 2020

📌 Commit fbf791b has been approved by hanna-kruppe

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 6, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request May 6, 2020
Rollup of 6 pull requests

Successful merges:

 - rust-lang#71510 (Btreemap iter intertwined)
 - rust-lang#71727 (SipHasher with keys initialized to 0 should just use new())
 - rust-lang#71889 (Explain our RwLock implementation)
 - rust-lang#71905 (Add command aliases from Cargo to x.py commands)
 - rust-lang#71914 (Backport 1.43.1 release notes to master)
 - rust-lang#71921 (explain the types used in the open64 call)

Failed merges:

r? @ghost
@bors bors merged commit b86620a into rust-lang:master May 6, 2020
@RalfJung RalfJung deleted the open-mode branch May 7, 2020 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Are we calling macOS "open" with a wrong argument type?
5 participants