1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +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:
Andreas Kling 2022-01-01 16:19:51 +01:00
parent f95fc91e4f
commit 1e4117f1e1
2 changed files with 17 additions and 2 deletions

View file

@ -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();
}