1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 16:07:45 +00:00

LibC: Add reentrant versions of getpw{uid,nam}

Pretty hacky, but it should be fine.
This commit is contained in:
AnotherTest 2021-02-12 05:40:57 +03:30 committed by Andreas Kling
parent a3a7ab83c4
commit 71054c4c06
2 changed files with 91 additions and 0 deletions

View file

@ -49,4 +49,7 @@ struct passwd* getpwnam(const char* name);
struct passwd* getpwuid(uid_t);
int putpwent(const struct passwd* p, FILE* stream);
int getpwnam_r(const char* name, struct passwd* pwd, char* buf, size_t buflen, struct passwd** result);
int getpwuid_r(uid_t, struct passwd* pwd, char* buf, size_t buflen, struct passwd** result);
__END_DECLS