Skip to content

hurd: update _PATH_* constants - #5721

Open
pinotree wants to merge 1 commit into
rust-lang:mainfrom
pinotree:hurd-path-constants
Open

pinotree wants to merge 1 commit into
rust-lang:mainfrom
pinotree:hurd-path-constants

Conversation

@pinotree

@pinotree pinotree commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Add _PATH_DEFPATH & _PATH_BSHELL, as they are available on almost all the other OSes:
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/generic/paths.h;h=6b8f44042818b0524c132f679d53399114b62aac;hb=HEAD

Also remove the _PATH_ constants from netdb.h: they are not provided by any other OS (only Hurd), and indeed there is nothing that uses them (at least checking what is available in Debian). They can be added back for all the OS when there is a request for them.

Add _PATH_DEFPATH & _PATH_BSHELL, as they are available on almost all
the other OSes:
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/generic/paths.h;h=6b8f44042818b0524c132f679d53399114b62aac;hb=HEAD

Also remove the _PATH_ constants from netdb.h: they are not provided by
any other OS (only Hurd), and indeed there is nothing that uses them
(at least checking what is available in Debian). They can be added back
for all the OS when there is a request for them.
@pinotree

pinotree commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

@sthibaul PTAL :)

I know it may sound like a potential breakage, however given that they are available on Hurd only, I think noone really uses them. Hence, I'm still nominating this for stable.

@rustbot label stable-nominated

@rustbot rustbot added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Nov 7, 2026
@sthibaul

sthibaul commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Yes, this looks good

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-unix S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants