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:
parent
a3a7ab83c4
commit
71054c4c06
2 changed files with 91 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue