#include <crm_internal.h>
#include <sys/stat.h>
#include <sys/utsname.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>
#include <pwd.h>
#include <time.h>
#include <libgen.h>
#include <signal.h>
#include <grp.h>
#include <qb/qbdefs.h>
#include <crm/crm.h>
#include <crm/services.h>
#include <crm/cib/internal.h>
#include <crm/common/xml.h>
#include <crm/common/util.h>
#include <crm/common/ipc.h>
#include <crm/common/iso8601.h>
#include <crm/common/mainloop.h>
#include <libxml2/libxml/relaxng.h>
#include "crmcommon_private.h"
#include <crm/common/util_compat.h>
Go to the source code of this file.
◆ compare_version()
int compare_version |
( |
const char * |
version1, |
|
|
const char * |
version2 |
|
) |
| |
◆ crm_generate_uuid()
char* crm_generate_uuid |
( |
void |
| ) |
|
◆ crm_gnutls_global_init()
void crm_gnutls_global_init |
( |
void |
| ) |
|
◆ crm_is_daemon_name()
bool crm_is_daemon_name |
( |
const char * |
name | ) |
|
Check whether string represents a client name used by cluster daemons.
- Parameters
-
- Returns
- true if name is standard client name used by daemons, false otherwise
- Note
- This is provided by the client, and so cannot be used by itself as a secure means of authentication.
Definition at line 476 of file utils.c.
◆ CRM_TRACE_INIT_DATA()
CRM_TRACE_INIT_DATA |
( |
common |
| ) |
|
◆ crm_user_lookup()
int crm_user_lookup |
( |
const char * |
name, |
|
|
uid_t * |
uid, |
|
|
gid_t * |
gid |
|
) |
| |
◆ pcmk__create_timer()
guint pcmk__create_timer |
( |
guint |
interval_ms, |
|
|
GSourceFunc |
fn, |
|
|
gpointer |
data |
|
) |
| |
◆ pcmk__daemonize()
void pcmk__daemonize |
( |
const char * |
name, |
|
|
const char * |
pidfile |
|
) |
| |
◆ pcmk__is_user_in_group()
bool pcmk__is_user_in_group |
( |
const char * |
user, |
|
|
const char * |
group |
|
) |
| |
◆ pcmk__sleep_ms()
void pcmk__sleep_ms |
( |
unsigned int |
ms | ) |
|
◆ pcmk__timeout_ms2s()
guint pcmk__timeout_ms2s |
( |
guint |
timeout_ms | ) |
|
◆ pcmk_common_cleanup()
void pcmk_common_cleanup |
( |
void |
| ) |
|
Free all memory used by libcrmcommon.
Free all global memory allocated by the libcrmcommon library. This should be called before exiting a process that uses the library, and the process should not call any libcrmcommon or libxml2 APIs after calling this one.
Definition at line 54 of file utils.c.
◆ pcmk_daemon_user()
int pcmk_daemon_user |
( |
uid_t * |
uid, |
|
|
gid_t * |
gid |
|
) |
| |
Get user and group IDs of pacemaker daemon user.
- Parameters
-
[out] | uid | If non-NULL, where to store daemon user ID |
[out] | gid | If non-NULL, where to store daemon group ID |
- Returns
- pcmk_ok on success, -errno otherwise
Definition at line 139 of file utils.c.
◆ crm_system_name
char* crm_system_name = NULL |
◆ pcmk__config_has_error
bool pcmk__config_has_error = false |
◆ pcmk__config_has_warning
bool pcmk__config_has_warning = false |