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:
parent
e5e0bffd76
commit
90bab5ea71
5 changed files with 149 additions and 1 deletions
21
LibC/grp.h
Normal file
21
LibC/grp.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue