#include <crm_internal.h>
#include <errno.h>
#include <pwd.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <setjmp.h>
#include <sys/types.h>
#include <sys/utsname.h>
#include <unistd.h>
#include <grp.h>
#include <cmocka.h>
#include <crm/common/unittest_internal.h>
#include "mock_private.h"
Go to the source code of this file.
|
| _Noreturn void | __wrap_abort (void) |
| |
| void * | __wrap_calloc (size_t nmemb, size_t size) |
| |
| char * | __wrap_getenv (const char *name) |
| |
| void * | __wrap_realloc (void *ptr, size_t size) |
| |
| int | __wrap_setenv (const char *name, const char *value, int overwrite) |
| |
| int | __wrap_unsetenv (const char *name) |
| |
| pid_t | __wrap_getpid (void) |
| |
| void | __wrap_setgrent (void) |
| |
| struct group * | __wrap_getgrent (void) |
| |
| void | __wrap_endgrent (void) |
| |
| FILE * | __wrap_fopen (const char *pathname, const char *mode) |
| |
| int | __wrap_getpwnam_r (const char *name, struct passwd *pwd, char *buf, size_t buflen, struct passwd **result) |
| |
| ssize_t | __wrap_readlink (const char *restrict path, char *restrict buf, size_t bufsize) |
| |
| char * | __wrap_strdup (const char *s) |
| |
◆ __wrap_abort()
◆ __wrap_calloc()
| void* __wrap_calloc |
( |
size_t |
nmemb, |
|
|
size_t |
size |
|
) |
| |
◆ __wrap_endgrent()
| void __wrap_endgrent |
( |
void |
| ) |
|
◆ __wrap_fopen()
| FILE* __wrap_fopen |
( |
const char * |
pathname, |
|
|
const char * |
mode |
|
) |
| |
◆ __wrap_getenv()
| char* __wrap_getenv |
( |
const char * |
name | ) |
|
◆ __wrap_getgrent()
| struct group* __wrap_getgrent |
( |
void |
| ) |
|
◆ __wrap_getpid()
| pid_t __wrap_getpid |
( |
void |
| ) |
|
◆ __wrap_getpwnam_r()
| int __wrap_getpwnam_r |
( |
const char * |
name, |
|
|
struct passwd * |
pwd, |
|
|
char * |
buf, |
|
|
size_t |
buflen, |
|
|
struct passwd ** |
result |
|
) |
| |
◆ __wrap_readlink()
| ssize_t __wrap_readlink |
( |
const char *restrict |
path, |
|
|
char *restrict |
buf, |
|
|
size_t |
bufsize |
|
) |
| |
◆ __wrap_realloc()
| void* __wrap_realloc |
( |
void * |
ptr, |
|
|
size_t |
size |
|
) |
| |
◆ __wrap_setenv()
| int __wrap_setenv |
( |
const char * |
name, |
|
|
const char * |
value, |
|
|
int |
overwrite |
|
) |
| |
◆ __wrap_setgrent()
| void __wrap_setgrent |
( |
void |
| ) |
|
◆ __wrap_strdup()
| char* __wrap_strdup |
( |
const char * |
s | ) |
|
◆ __wrap_unsetenv()
| int __wrap_unsetenv |
( |
const char * |
name | ) |
|
◆ pcmk__mock_calloc
| bool pcmk__mock_calloc = false |
◆ pcmk__mock_fopen
| bool pcmk__mock_fopen = false |
◆ pcmk__mock_getenv
| bool pcmk__mock_getenv = false |
◆ pcmk__mock_getpid
| bool pcmk__mock_getpid = false |
◆ pcmk__mock_getpwnam_r
| bool pcmk__mock_getpwnam_r = false |
◆ pcmk__mock_grent
| bool pcmk__mock_grent = false |
◆ pcmk__mock_readlink
| bool pcmk__mock_readlink = false |
◆ pcmk__mock_realloc
| bool pcmk__mock_realloc = false |
◆ pcmk__mock_setenv
| bool pcmk__mock_setenv = false |
◆ pcmk__mock_strdup
| bool pcmk__mock_strdup = false |
◆ pcmk__mock_unsetenv
| bool pcmk__mock_unsetenv = false |