root/lib/common/mock_private.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   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

/* [previous][next][first][last][top][bottom][index][help] */