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

Go to the source code of this file.

Data Structures

struct  passwd
 

Functions

struct passwdgetpwuid (uid_t uid)
 Look a user up by its number. More...
 
struct passwdgetpwnam (const char *name)
 Look a user up by its name. More...
 

Function Documentation

◆ getpwnam()

struct passwd* getpwnam ( const char *  name)

Look a user up by its name.

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

◆ getpwuid()

struct passwd* getpwuid ( uid_t  uid)

Look a user up by its number.

Parameters
uidThe user to look up.
Return values
structpasswd *: The record when the user exists, and a null pointer when it does not.