Repository navigation
Conversation
Collaborator
Contributor
|
The code changes look correct to me. Two small corrections to the description:
|
Contributor
Author
You're right, I missed that. I'll add it |
_PATH_BSHELL to Solaris and Illumos; add _CS_PATH to Solaris as well
asder8215
force-pushed
the
solaris_paths_consts
branch
from
November 5, 2026 19:11
5729c27 to
9a260f2
Compare
Collaborator
|
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. |
_CS_PATH abd PATH_* constants to Solaris and Illumos
_CS_PATH abd PATH_* constants to Solaris and Illumos_CS_PATH abd _PATH_* constants to Solaris and Illumos
Contributor
Author
|
Completely forgot to do this |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From @psumbera's comment here: rust-lang/rust#157144 (comment)
From the rustc book, it seems like we only support Solaris targets running on Solaris 11.4. I assume that means that we don't need to worry about the mode-sensitive based
confstr?I also realized I forgot to check
Illumosfor how they handle_PATH_BSHELL/_PATH_DEFPATH. They have both a_PATH_DEFPATH, which uses"/usr/ccs/bin:/usr/bin:/bin", and a_PATH_BSHELL, which the value of_PATH_BSHELLis consistent with what @psumbera said. You can see the value it's set to inusr/src/head/paths.h; the_PATH_BSHELLis used in itsexecvpimplementation inusr/src/lib/libc/port/gen/execvp.c(which also seems consistent with what @psumbera said!).Since both use the same
_PATH_BSHELLand_CS_PATHI put it in thesolarish/mod.rsfile. I hope that's fine?Please let me know if I'm misunderstanding anything or if there are any issues with this PR @psumbera
Edit:
_PATH_DEFPATHexists on illumos (missed it earlier).