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

Add getgrent() family of functions.

This commit is contained in:
Andreas Kling 2018-11-06 22:27:51 +01:00
parent e5e0bffd76
commit 90bab5ea71
5 changed files with 149 additions and 1 deletions

21
LibC/grp.h Normal file
View file

@ -0,0 +1,21 @@
#pragma once
#include <sys/cdefs.h>
#include <sys/types.h>
__BEGIN_DECLS
struct group {
char* gr_name;
char* gr_passwd;
gid_t gr_gid;
char** gr_mem;
};
struct group* getgrent();
void setgrent();
void endgrent();
struct group* getgrnam(const char* name);
struct group* getgrgid(gid_t);
__END_DECLS