pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
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 <crm/common/results.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

_Noreturn void __real_abort (void)
 
_Noreturn void __wrap_abort (void)
 
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)
 
void * __real_realloc (void *ptr, size_t size)
 
void * __wrap_realloc (void *ptr, size_t size)
 
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)
 

Variables

bool pcmk__mock_calloc
 
bool pcmk__mock_fopen
 
bool pcmk__mock_getenv
 
bool pcmk__mock_realloc
 
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
 

Function Documentation

◆ __real_abort()

_Noreturn void __real_abort ( void )

◆ __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_realloc()

void * __real_realloc ( void * ptr,
size_t size )

◆ __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_unsetenv()

int __real_unsetenv ( const char * name)

◆ __wrap_abort()

_Noreturn void __wrap_abort ( void )

Definition at line 70 of file mock.c.

◆ __wrap_calloc()

void * __wrap_calloc ( size_t nmemb,
size_t size )

Definition at line 92 of file mock.c.

◆ __wrap_endgrent()

void __wrap_endgrent ( void )

Definition at line 296 of file mock.c.

◆ __wrap_fopen()

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

Definition at line 320 of file mock.c.

◆ __wrap_getenv()

char * __wrap_getenv ( const char * name)

Definition at line 117 of file mock.c.

◆ __wrap_getgrent()

struct group * __wrap_getgrent ( void )

Definition at line 284 of file mock.c.

◆ __wrap_getpid()

pid_t __wrap_getpid ( void )

Definition at line 219 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 378 of file mock.c.

◆ __wrap_readlink()

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

Definition at line 415 of file mock.c.

◆ __wrap_realloc()

void * __wrap_realloc ( void * ptr,
size_t size )

Definition at line 141 of file mock.c.

◆ __wrap_setenv()

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

Definition at line 169 of file mock.c.

◆ __wrap_setgrent()

void __wrap_setgrent ( void )

Definition at line 271 of file mock.c.

◆ __wrap_strdup()

char * __wrap_strdup ( const char * s)

Definition at line 452 of file mock.c.

◆ __wrap_unsetenv()

int __wrap_unsetenv ( const char * name)

Definition at line 197 of file mock.c.

Variable Documentation

◆ pcmk__mock_calloc

bool pcmk__mock_calloc
extern

Definition at line 89 of file mock.c.

◆ pcmk__mock_fopen

bool pcmk__mock_fopen
extern

Definition at line 317 of file mock.c.

◆ pcmk__mock_getenv

bool pcmk__mock_getenv
extern

Definition at line 114 of file mock.c.

◆ pcmk__mock_getpid

bool pcmk__mock_getpid
extern

Definition at line 216 of file mock.c.

◆ pcmk__mock_getpwnam_r

bool pcmk__mock_getpwnam_r
extern

Definition at line 375 of file mock.c.

◆ pcmk__mock_grent

bool pcmk__mock_grent
extern

Definition at line 235 of file mock.c.

◆ pcmk__mock_readlink

bool pcmk__mock_readlink
extern

Definition at line 412 of file mock.c.

◆ pcmk__mock_realloc

bool pcmk__mock_realloc
extern

Definition at line 138 of file mock.c.

◆ pcmk__mock_setenv

bool pcmk__mock_setenv
extern

Definition at line 166 of file mock.c.

◆ pcmk__mock_strdup

bool pcmk__mock_strdup
extern

Definition at line 449 of file mock.c.

◆ pcmk__mock_unsetenv

bool pcmk__mock_unsetenv
extern

Definition at line 194 of file mock.c.