I'm not that well versed in rust, is this literally just wrapping the C library in rust, and calling it a rust implementation of it?
This is correct and fine?
It's also a c wrapper
So? It's logname, what do you expect, for them to read the bits directly from memory? If you're going to criticise this for anything, it should be that it doesn't support Windows, not that it calls out to libc.
See the third clause in the kitty's train of thought. If it's of any consolation to you, I'd never have gone looking if I'd known what to expect.
yeah, all of this to call libc::getlogin().
I no longer use any wrappers or utils, they're just bloat. Now I just use my dousing rod to read and set bits in my RAM, way more efficient
it's wrappers and utils all the way down.
this post was submitted on 02 Jul 2026
16 points (80.8% liked)
Programmer Humor
42653 readers
52 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 6 years ago
MODERATORS