pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
Functions | Variables
mock_private.h File Reference
#include <pwd.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/utsname.h>
#include <unistd.h>
#include <grp.h>
Include dependency graph for mock_private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void * __real_calloc (size_t nmemb, size_t size)
 
void * __wrap_calloc (size_t nmemb, size_t size)
 
FILE * __real_fopen (const char *pathname, const char *mode)
 
FILE * __wrap_fopen (const char *pathname, const char *mode)
 
char * __real_getenv (const char *name)
 
char * __wrap_getenv (const char *name)
 
int __real_setenv (const char *name, const char *value, int overwrite)
 
int __wrap_setenv (const char *name, const char *value, int overwrite)
 
int __real_unsetenv (const char *name)
 
int __wrap_unsetenv (const char *name)
 
pid_t __real_getpid (void)
 
pid_t __wrap_getpid (void)
 
void __real_setgrent (void)
 
void __wrap_setgrent (void)
 
struct group * __wrap_getgrent (void)
 
struct group * __real_getgrent (void)
 
void __wrap_endgrent (void)
 
void __real_endgrent (void)
 
int __real_getpwnam_r (const char *name, struct passwd *pwd, char *buf, size_t buflen, struct passwd **result)
 
int __wrap_getpwnam_r (const char *name, struct passwd *pwd, char *buf, size_t buflen, struct passwd **result)
 
ssize_t __real_readlink (const char *restrict path, char *restrict buf, size_t bufsize)
 
ssize_t __wrap_readlink (const char *restrict path, char *restrict buf, size_t bufsize)
 
char * __real_strdup (const char *s)
 
char * __wrap_strdup (const char *s)
 
int __real_uname (struct utsname *buf)
 
int __wrap_uname (struct utsname *buf)
 

Variables

bool pcmk__mock_calloc
 
bool pcmk__mock_fopen
 
bool pcmk__mock_getenv
 
bool pcmk__mock_setenv
 
bool pcmk__mock_unsetenv
 
bool pcmk__mock_getpid
 
bool pcmk__mock_grent
 
bool pcmk__mock_getpwnam_r
 
bool pcmk__mock_readlink
 
bool pcmk__mock_strdup
 
bool pcmk__mock_uname
 

Function Documentation

◆ __real_calloc()

void* __real_calloc ( size_t  nmemb,
size_t  size 
)

◆ __real_endgrent()

void __real_endgrent ( void  )

◆ __real_fopen()

FILE* __real_fopen ( const char *  pathname,
const char *  mode 
)

◆ __real_getenv()

char* __real_getenv ( const char *  name)

◆ __real_getgrent()

struct group* __real_getgrent ( void  )

◆ __real_getpid()

pid_t __real_getpid ( void  )

◆ __real_getpwnam_r()

int __real_getpwnam_r ( const char *  name,
struct passwd *  pwd,
char *  buf,
size_t  buflen,
struct passwd **  result 
)

◆ __real_readlink()

ssize_t __real_readlink ( const char *restrict  path,
char *restrict  buf,
size_t  bufsize 
)

◆ __real_setenv()

int __real_setenv ( const char *  name,
const char *  value,
int  overwrite 
)

◆ __real_setgrent()

void __real_setgrent ( void  )

◆ __real_strdup()

char* __real_strdup ( const char *  s)

◆ __real_uname()

int __real_uname ( struct utsname *  buf)

◆ __real_unsetenv()

int __real_unsetenv ( const char *  name)

◆ __wrap_calloc()

void* __wrap_calloc ( size_t  nmemb,
size_t  size 
)

Definition at line 71 of file mock.c.

◆ __wrap_endgrent()

void __wrap_endgrent ( void  )

Definition at line 250 of file mock.c.

◆ __wrap_fopen()

FILE* __wrap_fopen ( const char *  pathname,
const char *  mode 
)

Definition at line 274 of file mock.c.

◆ __wrap_getenv()

char* __wrap_getenv ( const char *  name)

Definition at line 96 of file mock.c.

◆ __wrap_getgrent()

struct group* __wrap_getgrent ( void  )

Definition at line 238 of file mock.c.

◆ __wrap_getpid()

pid_t __wrap_getpid ( void  )

Definition at line 173 of file mock.c.

◆ __wrap_getpwnam_r()

int __wrap_getpwnam_r ( const char *  name,
struct passwd *  pwd,
char *  buf,
size_t  buflen,
struct passwd **  result 
)

Definition at line 332 of file mock.c.

◆ __wrap_readlink()

ssize_t __wrap_readlink ( const char *restrict  path,
char *restrict  buf,
size_t  bufsize 
)

Definition at line 369 of file mock.c.

◆ __wrap_setenv()

int __wrap_setenv ( const char *  name,
const char *  value,
int  overwrite 
)

Definition at line 123 of file mock.c.

◆ __wrap_setgrent()

void __wrap_setgrent ( void  )

Definition at line 225 of file mock.c.

◆ __wrap_strdup()

char* __wrap_strdup ( const char *  s)

Definition at line 406 of file mock.c.

◆ __wrap_uname()

int __wrap_uname ( struct utsname *  buf)

Definition at line 431 of file mock.c.

◆ __wrap_unsetenv()

int __wrap_unsetenv ( const char *  name)

Definition at line 151 of file mock.c.

Variable Documentation

◆ pcmk__mock_calloc

bool pcmk__mock_calloc

Definition at line 68 of file mock.c.

◆ pcmk__mock_fopen

bool pcmk__mock_fopen

Definition at line 271 of file mock.c.

◆ pcmk__mock_getenv

bool pcmk__mock_getenv

Definition at line 93 of file mock.c.

◆ pcmk__mock_getpid

bool pcmk__mock_getpid

Definition at line 170 of file mock.c.

◆ pcmk__mock_getpwnam_r

bool pcmk__mock_getpwnam_r

Definition at line 329 of file mock.c.

◆ pcmk__mock_grent

bool pcmk__mock_grent

Definition at line 189 of file mock.c.

◆ pcmk__mock_readlink

bool pcmk__mock_readlink

Definition at line 366 of file mock.c.

◆ pcmk__mock_setenv

bool pcmk__mock_setenv

Definition at line 120 of file mock.c.

◆ pcmk__mock_strdup

bool pcmk__mock_strdup

Definition at line 403 of file mock.c.

◆ pcmk__mock_uname

bool pcmk__mock_uname

Definition at line 428 of file mock.c.

◆ pcmk__mock_unsetenv

bool pcmk__mock_unsetenv

Definition at line 148 of file mock.c.