The Wayback Machine - https://web.archive.org/web/20220422155407/https://github.com/libuv/libuv/pull/3523
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

misc: extend getpw to take uid as an argument #3523

Open
wants to merge 1 commit into
base: v1.x
Choose a base branch
from

Conversation

Copy link
Member

@vtjnash vtjnash commented Mar 7, 2022

File system operations may return uid and gid values, which we may want
to pretty-print. We already have the code for getting information for
the current user, so just need to add a parameter to make it exposed for
every user. We expose information about groups in a similar manner also.

See here for example usage: https://github.com/JuliaLang/julia/pull/39463/files#diff-16ee8fceb01f720774f142d023997ead47e5bfdb1e7a07ee9e8670f43f4db5e5R352

Copy link
Member

@bnoordhuis bnoordhuis left a comment

LGTM with some comments.

Someone from @libuv/windows should chime in on whether it's reasonable to leave them stubbed out on Windows.

src/unix/core.c Outdated Show resolved Hide resolved
src/unix/core.c Outdated Show resolved Hide resolved
src/unix/core.c Outdated Show resolved Hide resolved
src/uv-common.c Outdated Show resolved Hide resolved
src/uv-common.c Outdated Show resolved Hide resolved
test/test-platform-output.c Outdated Show resolved Hide resolved
vtjnash added a commit to vtjnash/libuv that referenced this issue Mar 9, 2022
vtjnash added a commit that referenced this issue Mar 21, 2022
File system operations may return uid and gid values, which we may want
to pretty-print. We already have the code for getting information for
the current user, so just need to add a parameter to make it exposed for
every user. We expose information about groups in a similar manner also.
@stale
Copy link

@stale stale bot commented Apr 18, 2022

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale label Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants