1
2
3
4
5
6
7
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
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