Functions | Variables
getpw_r.c File Reference
#include <../pthread.h>
#include <pwd.h>
#include <sys/types.h>
#include <string.h>
Include dependency graph for getpw_r.c:

Go to the source code of this file.

Functions

static int convert (struct passwd *ret, struct passwd *result, char *buf, int buflen)
 
int getpwnam_r (const char *name, struct passwd *result, char *buffer, size_t buflen)
 
int getpwuid_r (uid_t uid, struct passwd *result, char *buffer, size_t buflen)
 

Variables

static pthread_mutex_t getpw_mutex = PTHREAD_MUTEX_INITIALIZER
 

Function Documentation

◆ convert()

static int convert ( struct passwd *  ret,
struct passwd *  result,
char *  buf,
int  buflen 
)
static

Definition at line 10 of file getpw_r.c.

◆ getpwnam_r()

int getpwnam_r ( const char *  name,
struct passwd *  result,
char *  buffer,
size_t  buflen 
)

Definition at line 62 of file getpw_r.c.

◆ getpwuid_r()

int getpwuid_r ( uid_t  uid,
struct passwd *  result,
char *  buffer,
size_t  buflen 
)

Definition at line 81 of file getpw_r.c.

Variable Documentation

◆ getpw_mutex

pthread_mutex_t getpw_mutex = PTHREAD_MUTEX_INITIALIZER
static

Definition at line 7 of file getpw_r.c.



euslisp
Author(s): Toshihiro Matsui
autogenerated on Mon Feb 28 2022 22:18:28