Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
grp.h
Go to the documentation of this file.
1 
4 #ifndef __GRP_H__
5 #define __GRP_H__
6 
7 #include <sys/types.h>
8 
9 /* Tenok has one group, which is root */
10 struct group {
11  char *gr_name; /* The name, always "root" */
12  char *gr_passwd; /* Tenok keeps no password, always empty */
13  gid_t gr_gid; /* Always 0 */
14  char **gr_mem; /* The members, always empty */
15 };
16 
23 struct group *getgrgid(gid_t gid);
24 
31 struct group *getgrnam(const char *name);
32 
33 #endif
struct group * getgrgid(gid_t gid)
Look a group up by its number.
Definition: pwd.c:38
struct group * getgrnam(const char *name)
Look a group up by its name.
Definition: pwd.c:43
Definition: grp.h:10