mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:27:35 +00:00
LibC: Implement getgrgid_r()
and getgrnam_r()
We currently don't have those 2 functions so let's add them
This commit is contained in:
parent
3dfd8defa9
commit
3c52c25515
4 changed files with 125 additions and 0 deletions
|
@ -25,7 +25,9 @@ int getgrent_r(struct group* group_buf, char* buffer, size_t buffer_size, struct
|
|||
void setgrent(void);
|
||||
void endgrent(void);
|
||||
struct group* getgrnam(char const* name);
|
||||
int getgrnam_r(char const* name, struct group* group_buf, char* buffer, size_t buffer_size, struct group** group_entry_ptr);
|
||||
struct group* getgrgid(gid_t);
|
||||
int getgrgid_r(gid_t gid, struct group* group_buf, char* buffer, size_t buffer_size, struct group** group_entry_ptr);
|
||||
int putgrent(const struct group*, FILE*);
|
||||
|
||||
int initgroups(char const* user, gid_t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue