1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:47:44 +00:00

LibCore: Add syscall wrapper for getpwnam()

This commit is contained in:
Kenneth Myhra 2021-11-29 22:03:19 +01:00 committed by Brian Gianforcaro
parent c8080fc2ca
commit cd5063555e
2 changed files with 20 additions and 0 deletions

View file

@ -8,6 +8,7 @@
#pragma once
#include <AK/Error.h>
#include <pwd.h>
#include <signal.h>
#include <sys/stat.h>
#include <termios.h>
@ -45,5 +46,6 @@ ErrorOr<struct termios> tcgetattr(int fd);
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);
}