mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-15 07:09:43 +03:00
a7f1d892a9
Also teach /bin/id to print the user's supplemental groups.
24 lines
360 B
C
24 lines
360 B
C
#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);
|
|
|
|
int initgroups(const char* user, gid_t);
|
|
|
|
__END_DECLS
|