/* * Copyright (c) 2018-2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include __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