pacemaker  2.1.4-dc6eb4362
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 
20 void *__real_calloc(size_t nmemb, size_t size);
21 void *__wrap_calloc(size_t nmemb, size_t size);
22 
23 char *__real_getenv(const char *name);
24 char *__wrap_getenv(const char *name);
25 
26 int __real_getpwnam_r(const char *name, struct passwd *pwd,
27  char *buf, size_t buflen, struct passwd **result);
28 int __wrap_getpwnam_r(const char *name, struct passwd *pwd,
29  char *buf, size_t buflen, struct passwd **result);
30 
31 int __real_uname(struct utsname *buf);
32 int __wrap_uname(struct utsname *buf);
33 
34 #endif // MOCK_PRIVATE__H
uint32_t size
Definition: cpg.c:49
int __wrap_uname(struct utsname *buf)
const char * name
Definition: cib.c:24
int __wrap_getpwnam_r(const char *name, struct passwd *pwd, char *buf, size_t buflen, struct passwd **result)
char * __real_getenv(const char *name)
void * __wrap_calloc(size_t nmemb, size_t size)
uint32_t buflen
Definition: md5.h:77
int __real_uname(struct utsname *buf)
char * __wrap_getenv(const char *name)
void * __real_calloc(size_t nmemb, size_t size)
pcmk__action_result_t result
Definition: pcmk_fence.c:34
int __real_getpwnam_r(const char *name, struct passwd *pwd, char *buf, size_t buflen, struct passwd **result)