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

utmpx: start adding accounting-related POSIX functions #1111

Open
lucab opened this issue Aug 28, 2019 · 1 comment · May be fixed by #1112
Open

utmpx: start adding accounting-related POSIX functions #1111

lucab opened this issue Aug 28, 2019 · 1 comment · May be fixed by #1112

Comments

@lucab
Copy link
Contributor

lucab commented Aug 28, 2019

In a project already consuming the nix crate, I'd like to use some of the accounting-related functions defined by POSIX in utmpx.h.
For reference, see http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/utmpx.h.html.

In particular, I'd like to have enough logic to be able to safely call getutxent(3) and consume its result.

If you don't mind, I can start sketching some code for this and submit a PR once I have it working.

@asomers
Copy link
Member

asomers commented Aug 29, 2019

Yeah, patches are always welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants