Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
Data Structures | Functions
grp.h File Reference
#include <sys/types.h>
Include dependency graph for grp.h:

Go to the source code of this file.

Data Structures

struct  group
 

Functions

struct groupgetgrgid (gid_t gid)
 Look a group up by its number. More...
 
struct groupgetgrnam (const char *name)
 Look a group up by its name. More...
 

Function Documentation

◆ getgrgid()

struct group* getgrgid ( gid_t  gid)

Look a group up by its number.

Parameters
gidThe group to look up.
Return values
structgroup *: The record when the group exists, and a null pointer when it does not.

◆ getgrnam()

struct group* getgrnam ( const char *  name)

Look a group up by its name.

Parameters
nameThe group to look up.
Return values
structgroup *: The record when the group exists, and a null pointer when it does not.