-
Notifications
You must be signed in to change notification settings - Fork 20
Add RawStatusCode
#403
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
Comments
Is there any iteraction with https://doc.rust-lang.org/stable/std/process/struct.ExitCode.html that could make sense here? Since that type is itself about how the correct type for an exit code is not just an i32. There's https://doc.rust-lang.org/stable/std/process/struct.ExitCode.html?#impl-ExitCodeExt-for-ExitCode for windows's |
The documentation says that
so I don't think it can be used here.
Probably, but that's beside the point here. |
Nominating so that this doesn't slip through the cracks (again): @rustbot label +I-libs-api-nominated |
We talked about this in today's @rust-lang/libs-api meeting. We don't think we want a general Instead, we'd like to see a |
Proposal
Problem statement
rust-lang/rust#123196 will add limited process spawing support for UEFI. Unfortunately, the current
ExitStatus
API does not allow returning the pointer-sized status codes that UEFI reports as the return type ofExitStatus::code
isi32
.Solution sketch
Similar to the
RawOsError
type introduced for a similar purpose, add aRawStatusCode
type alias tostd::process
that aliases toi32
on every platform but UEFI.Alternatives
Links and related work
What happens now?
This issue contains an API change proposal (or ACP) and is part of the libs-api team feature lifecycle. Once this issue is filed, the libs-api team will review open proposals as capability becomes available. Current response times do not have a clear estimate, but may be up to several months.
Possible responses
The libs team may respond in various different ways. First, the team will consider the problem (this doesn't require any concrete solution or alternatives to have been proposed):
Second, if there's a concrete solution:
The text was updated successfully, but these errors were encountered: