|
clsync
|

Go to the source code of this file.
Macros | |
| #define | PEF_NONE 0 |
| #define | PEF_UNEXPECTED_END 1 |
| #define | PEF_UNSET_VARIABLE 2 |
| #define | PEF_LAZY_SUBSTITUTION 4 |
| #define | exit_on(cond) |
Functions | |
| int | main_rehash (ctx_t *ctx_p) |
| int | main_status_update (ctx_t *ctx_p) |
| int | ctx_set (ctx_t *ctx_p, const char *const parameter_name, const char *const parameter_value) |
| int | config_block_parse (ctx_t *ctx_p, const char *const config_block_name) |
| int | rules_count (ctx_t *ctx_p) |
| char * | parameter_expand (ctx_t *ctx_p, char *arg, int exceptionflags, int *macros_count_p, int *expand_count_p, const char *(*parameter_get)(const char *variable_name, void *arg), void *parameter_get_arg) |
| Expands option values, e. g. "/var/log/clsync-%label%.pid" -> "/var/log/clsync-clone.pid". | |
| pid_t | fork_helper () |
| int | parent_isalive () |
| int | sethandler_sigchld (void(*handler)(int signal)) |
| pid_t | waitpid_timed (pid_t child_pid, int *status_p, long sec, long nsec) |
Variables | |
| int | ncpus |
| pid_t | parent_pid |
| int | argc |
| char * | argv [] |
| #define exit_on | ( | cond | ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Expands option values, e. g. "/var/log/clsync-%label%.pid" -> "/var/log/clsync-clone.pid".
| [in] | ctx_p | Context |
| [in] | arg | An allocated string with unexpanded value. Will be free'd |
| [in] | exceptionflags | A bit field of allowed exceptions during parameter expansion:
|
| [out] | macro_count_p | A pointer to count of found macro-s |
| [out] | expand_count_p | A pointer to count of expanded macro-s |
| [in] | parameter_get | A function to resolve macro-s |
| [in] | parameter_get_arg | An argument to the function |
| char | * Pointer to newly allocated string, if successful |
| NULL | On error |
Definition at line 693 of file main.c.


|
extern |
|
extern |
|
extern |