mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:47:46 +00:00
LibCore: Add syscall wrapper for getgroups()
This wrapper does all the grunt work of figuring out how many extra GIDs there are, and then returning them nicely wrapped in a Vector<gid_t>.
This commit is contained in:
parent
f95fc91e4f
commit
1e4117f1e1
2 changed files with 17 additions and 2 deletions
|
@ -105,5 +105,5 @@ ErrorOr<void> setsockopt(int sockfd, int level, int option, void const* value, s
|
|||
ErrorOr<void> getsockname(int sockfd, struct sockaddr*, socklen_t*);
|
||||
ErrorOr<void> getpeername(int sockfd, struct sockaddr*, socklen_t*);
|
||||
ErrorOr<void> socketpair(int domain, int type, int protocol, int sv[2]);
|
||||
|
||||
ErrorOr<Vector<gid_t>> getgroups();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue