diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2021-12-06 21:24:18 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-11 15:10:42 -0800 |
commit | c4bd46023b315b202a1d4d14720018a700ac57a3 (patch) | |
tree | 7fa99dd3e47456641c359e2b23b9e0eaa5d9cb84 /Userland/Libraries/LibCore/System.h | |
parent | cd5063555e92de8f273d92b35e64968e94205a6c (diff) | |
download | serenity-c4bd46023b315b202a1d4d14720018a700ac57a3.zip |
LibCore: Add syscall wrapper for getgrnam()
Diffstat (limited to 'Userland/Libraries/LibCore/System.h')
-rw-r--r-- | Userland/Libraries/LibCore/System.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCore/System.h b/Userland/Libraries/LibCore/System.h index f6f5db9a0b..0905fbb294 100644 --- a/Userland/Libraries/LibCore/System.h +++ b/Userland/Libraries/LibCore/System.h @@ -8,6 +8,7 @@ #pragma once #include <AK/Error.h> +#include <grp.h> #include <pwd.h> #include <signal.h> #include <sys/stat.h> @@ -47,5 +48,6 @@ ErrorOr<void> tcsetattr(int fd, int optional_actions, struct termios const&); ErrorOr<void> chmod(StringView pathname, mode_t mode); ErrorOr<void> chown(StringView pathname, uid_t uid, gid_t gid); ErrorOr<struct passwd> getpwnam(StringView name); +ErrorOr<struct group> getgrnam(StringView name); } |