pacemaker 2.1.4-dc6eb4362e
Scalable High-Availability cluster resource manager
mock_private.h
Go to the documentation of this file.
1/*
2 * Copyright 2021-2022 the Pacemaker project contributors
3 *
4 * The version control history for this file may have further details.
5 *
6 * This source code is licensed under the GNU Lesser General Public License
7 * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8 */
9
10#ifndef MOCK_PRIVATE__H
11# define MOCK_PRIVATE__H
12
13#include <pwd.h>
14#include <stdlib.h>
15#include <sys/types.h>
16#include <sys/utsname.h>
17
18/* This header is for the sole use of libcrmcommon_test. */
19
20void *__real_calloc(size_t nmemb, size_t size);
21void *__wrap_calloc(size_t nmemb, size_t size);
22
23char *__real_getenv(const char *name);
24char *__wrap_getenv(const char *name);
25
26int __real_getpwnam_r(const char *name, struct passwd *pwd,
27 char *buf, size_t buflen, struct passwd **result);
28int __wrap_getpwnam_r(const char *name, struct passwd *pwd,
29 char *buf, size_t buflen, struct passwd **result);
30
31int __real_uname(struct utsname *buf);
32int __wrap_uname(struct utsname *buf);
33
34#endif // MOCK_PRIVATE__H
const char * name
Definition: cib.c:24
uint32_t size
Definition: cpg.c:4
char * __wrap_getenv(const char *name)
int __real_uname(struct utsname *buf)
int __wrap_uname(struct utsname *buf)
char * __real_getenv(const char *name)
void * __wrap_calloc(size_t nmemb, size_t size)
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)
void * __real_calloc(size_t nmemb, size_t size)
pcmk__action_result_t result
Definition: pcmk_fence.c:34