input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
int main_cleanup(ctx_t *ctx_p) {
int v1;
int i;
for (i = 0; i <= 255 && ctx_p->rules[i].mask; ++i) {
v1 = i;
regfree(&ctx_p->rules[v1].expr);
}
return 0;
} | int main_cleanup(ctx_t *ctx_p) {
int i = 0;
while ((i < MAXRULES) && (ctx_p->rules[i].mask != RA_NONE))
regfree(&ctx_p->rules[i++].expr);
debug(3, "%i %i %i %i", ctx_p->watchdirsize, ctx_p->watchdirwslashsize,
ctx_p->destdirsize, ctx_p->destdirwslashsize);
return 0;
} | main_cleanup | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int main_rehash(ctx_t *ctx_p) {
int ret;
ret = 0;
main_cleanup(ctx_p);
if (ctx_p->rulfpath) {
ret = parse_rules_fromfile(ctx_p);
if (ret)
error("main_rehash", "Got error from parse_rules_fromfile().");
} else {
ctx_p->rules[0].perm = ruleaction_enum_RA_ALL;
ctx_p->rules[0].mask = ruleac... | int main_rehash(ctx_t *ctx_p) {
debug(3, "");
int ret = 0;
main_cleanup(ctx_p);
if (ctx_p->rulfpath != NULL) {
ret = parse_rules_fromfile(ctx_p);
if (ret)
error("Got error from parse_rules_fromfile().");
} else {
ctx_p->rules[0].perm = DEFAULT_RULES_PERM;
ctx_p->rules[0].mask = RA_NONE... | main_rehash | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int main_status_update(ctx_t *ctx_p) {
int v2;
volatile state_t state;
state = ctx_p->state;
if (ctx_p->state == state_old_2)
return 0;
setenv("CLSYNC_STATUS", status_descr_2[state], 1);
if (!ctx_p->statusfile)
return 0;
state_old_2 = state;
v2 = fileno(main_statusfile_f);
if (ftruncate(v2, 0... | int main_status_update(ctx_t *ctx_p) {
static state_t state_old = STATE_UNKNOWN;
state_t state = ctx_p->state;
debug(4, "%u", state);
if (state == state_old) {
debug(3, "State unchanged: %u == %u", state, state_old);
return 0;
}
#ifdef VERYPARANOID
if (status_descr[state] == NULL) {
error("st... | main_status_update | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
void *malloc_align(size_t size) {
size_t sizea;
void *ret;
size_t total_size;
unsigned long v5;
v5 = __readfsqword(0x28u);
ret = 0;
sizea = size + 1;
total_size = pagesize * ((pagesize + size) / pagesize);
if (posix_memalign(&ret, pagesize, total_size))
critical("malloc_align", "(%li): Cannot all... | void *malloc_align(size_t size) {
size_t total_size;
void *ret = NULL;
debug(20, "(%li)", size);
#ifdef PARANOID
size++;
#endif
total_size = size;
total_size += pagesize - 1;
total_size /= pagesize;
total_size *= pagesize;
if (unlikely(posix_memalign(&ret, pagesize, total_size)))
critical("(%li)... | malloc_align | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int memory_init() {
pagesize = sysconf(30);
if (pagesize == -1)
critical("memory_init", "Got error from sysconf(_SC_PAGE_SIZE)");
devzero_fd = open("/dev/zero", 0);
if (devzero_fd == -1)
critical("memory_init", "Got error while open(\"/dev/zero\", O_RDONLY)");
return 0;
} | int memory_init() {
#ifdef CAPABILITIES_SUPPORT
pagesize = sysconf(_SC_PAGE_SIZE);
if (unlikely(pagesize == -1))
critical("Got error from sysconf(_SC_PAGE_SIZE)");
#ifdef SECCOMP_SUPPORT
devzero_fd = open(DEVZERO, O_RDONLY);
if (unlikely(devzero_fd == -1))
critical("Got error while open(\"" DEVZERO "... | memory_init | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int mkdirat_open(const char *const dir_path, int dirfd_parent,
mode_t dir_mode) {
int dirfd;
if (mkdirat(dirfd_parent, dir_path, dir_mode))
return -1;
dirfd = openat(dirfd_parent, dir_path, 2162690);
if (dirfd == -1)
return -1;
else
return dirfd;
} | int mkdirat_open(const char *const dir_path, int dirfd_parent,
mode_t dir_mode) {
int dirfd;
debug(5, "mkdirat(%u, \"%s\", %o)", dirfd_parent, dir_path, dir_mode);
if (mkdirat(dirfd_parent, dir_path, dir_mode))
return -1;
debug(5, "openat(%u, \"%s\", %x)", dirfd_parent, dir_path,
... | mkdirat_open | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int nonprivileged_seccomp_init(ctx_t *ctx_p) {
sock_fprog *p_filter_w_mprotect;
sock_fprog *filter_p;
sock_fprog filter;
sock_fprog filter_w_mprotect;
unsigned long v6;
v6 = __readfsqword(0x28u);
filter.len = 62;
filter.filter = filter_table;
filter_w_mprotect.len = 64;
filter_w_mprotect.filter = f... | int nonprivileged_seccomp_init(ctx_t *ctx_p) {
struct sock_fprog *filter_p;
struct sock_fprog filter = {
.len = (unsigned short)(sizeof(filter_table) / sizeof(filter_table[0])),
.filter = filter_table,
};
struct sock_fprog filter_w_mprotect = {
.len = (unsigned short)(sizeof(filter_w_mprotect_... | nonprivileged_seccomp_init | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int pa_setup(pa_options *opts, ctx_t *ctx_p, uid_t *exec_uid_p,
gid_t *exec_gid_p) {
int a_i;
int i;
int ia;
int i_0;
int argc_s;
char **argv_d;
for (a_i = 0; a_i <= 1; ++a_i) {
argc_s = ctx_p->synchandler_args[a_i].c;
argv_d = opts->args[a_i].v;
if (argc_s > 255)
critical(... | int pa_setup(struct pa_options *opts, ctx_t *ctx_p, uid_t *exec_uid_p,
gid_t *exec_gid_p) {
synchandler_args_t *args = opts->args;
int a_i;
a_i = 0;
do {
int i, argc_s;
char **argv_s, **argv_d, *isex_s, *isex_d;
argc_s = ctx_p->synchandler_args[a_i].c;
argv_s = ctx_p->synchandler_a... | pa_setup | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int pa_strcmp(const char *s1, const char *s2, int isexpanded) {
const char *s2a;
const char *s1a;
const char *s1b;
const char *s1_start;
const char *s2_start;
s1a = s1;
s2a = s2;
if (isexpanded)
return strcmp(s1, s2);
s1_start = 0;
s2_start = 0;
while (*s1a && *s2a) {
if (*s1a == 37) {
... | int pa_strcmp(const char *s1, const char *s2, int isexpanded) {
if (isexpanded)
return strcmp(s1, s2);
{
const char *s1_start = NULL;
const char *s2_start = NULL;
while (1) {
while (1) {
if (!*s1 || !*s2) {
if (!*s1 && s1_start != NULL)
return 0;
retu... | pa_strcmp | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int pa_unsetup(pa_options *opts) { return 0; } | int pa_unsetup(struct pa_options *opts) {
(void)opts;
#ifdef TODO_FIX
free(opts->exithookfile);
free(opts->preexithookfile);
free(opts->label);
{
int a_i = 0;
do {
int i;
i = 0;
while (i < opts->args[a_i].c) {
free(opts->args[a_i].v[i]);
i++;
}
} while (+... | pa_unsetup | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
char *parameter_expand(ctx_t *ctx_p, char *arg, int exceptionflags,
int *macro_count_p, int *expand_count_p,
const char *(*parameter_get)(const char *, void *),
void *parameter_get_arg) {
char *v8;
size_t v9;
int *v10;
char *v11;
size_t v12;... | char *parameter_expand(ctx_t *ctx_p, char *arg, int exceptionflags,
int *macro_count_p, int *expand_count_p,
const char *(*parameter_get)(const char *variable_name,
void *arg),
void *parameter_get_ar... | parameter_expand | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
const char *parameter_get(const char *variable_name, void *_ctx_p) {
int param_id;
const option *long_option_p;
long_option_p = long_options;
param_id = -1;
while (long_option_p->name) {
if (!strcmp(long_option_p->name, variable_name)) {
param_id = long_option_p->val;
break;
}
++long_... | const char *parameter_get(const char *variable_name, void *_ctx_p) {
const ctx_t *ctx_p = _ctx_p;
const struct option *long_option_p = long_options;
int param_id = -1;
debug(8, "(\"%s\", %p)", variable_name, ctx_p);
while (long_option_p->name != NULL) {
if (!strcmp(long_option_p->name, variable_name)) {
... | parameter_get | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
const char *parameter_get_name_by_id(const uint16_t param_id) {
const option *long_option_p;
const char *param_name;
long_option_p = long_options;
param_name = 0;
while (long_option_p->name) {
if (long_option_p->val == param_id) {
param_name = long_option_p->name;
break;
}
++long_opti... | const char *parameter_get_name_by_id(const uint16_t param_id) {
const struct option *long_option_p = long_options;
const char *param_name = NULL;
debug(8, "(%u)", param_id);
while (long_option_p->name != NULL) {
if (long_option_p->val == param_id) {
param_name = long_option_p->name;
break;
... | parameter_get_name_by_id | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
const char *parameter_get_wmacro(const char *variable_name, void *_ctx_p) {
const char *r;
if (*variable_name <= 64 || *variable_name > 90)
return parameter_get(variable_name, _ctx_p);
if (!strcmp(variable_name, "RSYNC-ARGS")) {
*((_DWORD *)_ctx_p + 12920) |= 1u;
return 0;
} else if (!strcmp(variab... | const char *parameter_get_wmacro(const char *variable_name, void *_ctx_p) {
ctx_t *ctx_p = _ctx_p;
static struct dosync_arg dosync_arg = {0};
debug(9, "(\"%s\", %p)", variable_name, _ctx_p);
if (*variable_name < 'A' || *variable_name > 'Z')
return parameter_get(variable_name, _ctx_p);
if (!strcmp(variab... | parameter_get_wmacro | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
const char *parametersource_get_name(paramsource_t paramsource) {
const char *result;
switch (paramsource) {
case paramsource_enum_PS_UNKNOWN:
result = "unknown_case_0";
break;
case paramsource_enum_PS_ARGUMENT:
result = "cli_arguments";
break;
case paramsource_enum_PS_CONFIG:
result = "c... | const char *parametersource_get_name(paramsource_t paramsource) {
switch (paramsource) {
case PS_UNKNOWN:
return "unknown_case_0";
case PS_ARGUMENT:
return "cli_arguments";
case PS_CONFIG:
return "config";
case PS_CONTROL:
return "control";
case PS_DEFAULTS:
return "defaults";
cas... | parametersource_get_name | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int parent_isalive() {
return !kill(parent_pid, 0) || *__errno_location() != 3;
} | int parent_isalive() {
int rc;
debug(12, "parent_pid == %u", parent_pid);
if ((rc = kill(parent_pid, 0))) {
if (errno == ESRCH) {
debug(1, "kill(%u, 0) => %i; errno => %s", parent_pid, rc,
strerror(errno));
return 0;
}
}
return 1;
} | parent_isalive | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int parse_customsignals(ctx_t *ctx_p, char *arg) {
int v2;
char *v4;
char ch_1;
char ch_0;
int i;
unsigned int signal;
char *ptr;
char *ptra;
const char *start;
char *end;
ptr = arg;
start = arg;
do {
v2 = *ptr;
if (v2 == 58)
goto LABEL_7;
if (v2 > 58)
goto LABEL_26;
... | __extension__ static inline int parse_customsignals(ctx_t *ctx_p, char *arg) {
char *ptr = arg, *start = arg;
int ret = 0;
unsigned int signal;
do {
switch (*ptr) {
case 0:
case ',':
case ':':
signal = (unsigned int)atoi(start);
if (ret) {
errno = ret;
return errno... | parse_customsignals | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int parse_parameter(ctx_t *ctx_p, uint16_t param_id, char *arg,
paramsource_t paramsource) {
int result;
char *v5;
char *v6;
char *v7;
int permitted_hookfiles;
int v9;
int v10;
char *v11;
int v12;
size_t v13;
int v14;
const char *v15;
const char *v16;
const char *name;
... | __extension__ static int parse_parameter(ctx_t *ctx_p, uint16_t param_id,
char *arg, paramsource_t paramsource) {
int ret = 0;
#ifdef _DEBUG_FORCE
fprintf(stderr, "Force-Debug: parse_parameter(): %i: %i = \"%s\"\n",
paramsource, param_id, arg);
#endif
switch (pa... | parse_parameter | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int parse_rules_fromfile(ctx_t *ctx_p) {
int v2;
int v3;
int v4;
int v5;
uint8_t sign;
int ret;
int i;
char *line_buf;
size_t size;
char *rulfpath;
rule_t *rules;
size_t *rules_count_p;
FILE *f;
GHashTable *autowrules_ht;
ssize_t linelen;
char *line;
rule_t *rule;
unsigned long v19;
... | int parse_rules_fromfile(ctx_t *ctx_p) {
int ret = 0;
char *rulfpath = ctx_p->rulfpath;
rule_t *rules = ctx_p->rules;
size_t *rules_count_p = &ctx_p->rules_count;
char *line_buf = NULL;
FILE *f = fopen(rulfpath, "r");
if (f == NULL) {
rules->mask = RA_NONE;
rules->perm = DEFAULT_RULES_PERM;
e... | parse_rules_fromfile | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int printf_stderr(const char *fmt, ...) {
va_list args;
unsigned long v3;
v3 = __readfsqword(0x28u);
va_start(args, fmt);
return vfprintf(stderr, fmt, args);
} | static int printf_stderr(const char *fmt, ...) {
va_list args;
int rc;
va_start(args, fmt);
rc = vfprintf(stderr, fmt, args);
va_end(args);
return rc;
} | printf_stderr | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int printf_stdout(const char *fmt, ...) {
va_list args;
unsigned long v3;
v3 = __readfsqword(0x28u);
va_start(args, fmt);
return vfprintf(stdout, fmt, args);
} | static int printf_stdout(const char *fmt, ...) {
va_list args;
int rc;
va_start(args, fmt);
rc = vfprintf(stdout, fmt, args);
va_end(args);
return rc;
} | printf_stdout | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int privileged_check() {
if (helper_pid && !helper_isalive_proc())
critical("privileged_check", "Assert: !helper_isalive_proc()");
return 0;
} | int privileged_check() {
if (helper_pid)
critical_on(!helper_isalive_proc());
return 0;
} | privileged_check | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int privileged_deinit(ctx_t *ctx_p) {
int v2;
int v3;
int v4;
int status;
int ret;
int i;
long _SAFE_rc;
long _SAFE_rc_0;
unsigned long v10;
v10 = __readfsqword(0x28u);
ret = 0;
if (!ctx_p->flags[538])
return 0;
v2 = privileged_action_0(0, privileged_action_PA_DIE, 0);
_SAFE_rc = v2;
... | int privileged_deinit(ctx_t *ctx_p) {
int ret = 0;
#ifdef CAPABILITIES_SUPPORT
if (ctx_p->flags[SPLITTING] == SM_OFF)
return 0;
#ifdef HL_LOCK_TRIES_AUTO
#define ARGS PC_DEFAULT, PA_DIE, NULL
#else
#define ARGS PA_DIE, NULL
#endif
SAFE(privileged_action(ARGS), ret = errno);
#ifdef HL_LOCK_TRIES_AUTO
{
... | privileged_deinit | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int privileged_execvp_check_arguments(pa_options *opts, const char *u_file,
char *const *u_argv) {
int a_i;
int i_0;
size_t u_argc;
size_t i;
size_t argc;
char **argv;
char *isexpanded;
for (u_argc = 0; u_argv[u_argc]; ++u_argc)
;
for (a_i = 0; a_i <= 1; ++a_... | int privileged_execvp_check_arguments(struct pa_options *opts,
const char *u_file, char *const *u_argv) {
int a_i;
size_t u_argc;
synchandler_args_t *args = opts->args;
debug(9, "");
u_argc = 0;
while (u_argv[u_argc] != NULL)
u_argc++;
a_i = 0;
do {
size... | privileged_execvp_check_arguments | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int privileged_handler(ctx_t *ctx_p) {
size_t blockthread_count;
pthread_t v2;
int v3;
volatile pa_lstat64_arg *v4;
char *const *path_argv;
volatile cmd_ret *v6;
const char *pathname_p;
int v8;
uid_t exec_uid;
gid_t exec_gid;
int setup;
int use_args_check;
int helper_isrunning;
int rc;
pid... | int privileged_handler(ctx_t *ctx_p) {
#ifdef READWRITE_SIGNALLING
char buf[1] = {0};
#else
struct timespec wait_timeout = {0};
#endif
int setup = 0;
uid_t exec_uid = 65535;
gid_t exec_gid = 65535;
struct pa_options *opts;
int use_args_check = 0;
int helper_isrunning = 1;
opts = calloc_align(1, sizeof... | privileged_handler | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int privileged_init(ctx_t *ctx_p) {
int v2;
int v3;
if (!ctx_p->flags[538]) {
privileged_fork_execvp =
(int (*)(const char *, char *const *))_privileged_fork_execvp;
_privileged_fork_execvp_uid = ctx_p->synchandler_uid;
_privileged_fork_execvp_gid = ctx_p->synchandler_gid;
privileged_kill... | int privileged_init(ctx_t *ctx_p) {
#ifdef READWRITE_SIGNALLING
int pipefds[2];
#endif
#ifdef CAPABILITIES_SUPPORT
if (ctx_p->flags[SPLITTING] == SM_OFF) {
#endif
_privileged_fork_execvp = __privileged_fork_execvp;
__privileged_fork_execvp_uid = ctx_p->synchandler_uid;
__privileged_fork_execvp_gid = ct... | privileged_init | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int pthread_cond_destroy_shared(pthread_cond_t *cond_p) {
int rc;
rc = pthread_cond_destroy(cond_p);
shm_free(cond_p);
return rc;
} | int pthread_cond_destroy_shared(pthread_cond_t *cond_p) {
int rc;
rc = pthread_cond_destroy(cond_p);
shm_free(cond_p);
return rc;
} | pthread_cond_destroy_shared | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int pthread_cond_init_shared(pthread_cond_t **cond_p) {
pthread_condattr_t attr;
unsigned long v3;
v3 = __readfsqword(0x28u);
*cond_p = (pthread_cond_t *)shm_malloc(0x30u);
memcpy(*cond_p, &cond_initial_0, sizeof(pthread_cond_t));
pthread_condattr_init(&attr);
pthread_condattr_setpshared(&attr, 1);
ret... | int pthread_cond_init_shared(pthread_cond_t **cond_p) {
static pthread_cond_t cond_initial = PTHREAD_COND_INITIALIZER;
*cond_p = shm_malloc(sizeof(**cond_p));
memcpy(*cond_p, &cond_initial, sizeof(cond_initial));
pthread_condattr_t attr;
pthread_condattr_init(&attr);
pthread_condattr_setpshared(&attr, PTHRE... | pthread_cond_init_shared | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int pthread_mutex_destroy_shared(pthread_mutex_t *mutex_p) {
int rc;
rc = pthread_mutex_destroy(mutex_p);
shm_free(mutex_p);
return rc;
} | int pthread_mutex_destroy_shared(pthread_mutex_t *mutex_p) {
int rc;
rc = pthread_mutex_destroy(mutex_p);
shm_free(mutex_p);
return rc;
} | pthread_mutex_destroy_shared | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int pthread_mutex_init_shared(pthread_mutex_t **mutex_p) {
pthread_mutexattr_t attr;
unsigned long v3;
v3 = __readfsqword(0x28u);
*mutex_p = (pthread_mutex_t *)shm_malloc_try(0x28u);
memcpy(*mutex_p, &mutex_initial_1, sizeof(pthread_mutex_t));
pthread_mutexattr_init(&attr);
pthread_mutexattr_setpshared(&... | int pthread_mutex_init_shared(pthread_mutex_t **mutex_p) {
static pthread_mutex_t mutex_initial = PTHREAD_MUTEX_INITIALIZER;
*mutex_p = shm_malloc_try(sizeof(**mutex_p));
memcpy(*mutex_p, &mutex_initial, sizeof(mutex_initial));
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
pthread_mutexattr_setps... | pthread_mutex_init_shared | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int pthread_mutex_reltimedlock(pthread_mutex_t *mutex_p, long tv_sec,
long tv_nsec) {
timespec abs_time;
unsigned long v6;
v6 = __readfsqword(0x28u);
if (clock_gettime(0, &abs_time))
return -1;
abs_time.tv_sec += tv_sec;
abs_time.tv_nsec += tv_nsec;
if (abs_time.tv_nsec... | int pthread_mutex_reltimedlock(pthread_mutex_t *mutex_p, long tv_sec,
long tv_nsec) {
struct timespec abs_time;
if (clock_gettime(CLOCK_REALTIME, &abs_time))
return -1;
abs_time.tv_sec += tv_sec;
abs_time.tv_nsec += tv_nsec;
if (abs_time.tv_nsec > 1000 * 1000 * 1000) {
... | pthread_mutex_reltimedlock | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
void recognize_event(recognize_event_return *r, uint32_t event) {
eventobjtype_t v2;
eventobjtype_t v3;
eventobjtype_t type;
if ((event & 0x40000000) != 0)
v2 = eventobjtype_EOT_DIR;
else
v2 = eventobjtype_EOT_FILE;
type = v2;
if ((event & 0x180) != 0)
v2 = eventobjtype_EOT_DOESNTEXIST;
r->... | static inline void recognize_event(struct recognize_event_return *r,
uint32_t event) {
eventobjtype_t type;
int is_created;
int is_deleted;
type = (event & IN_ISDIR ? EOT_DIR : EOT_FILE);
is_created = event & (IN_CREATE | IN_MOVED_TO);
is_deleted = event & (IN_DELETE_SELF ... | recognize_event | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int rule_complete(rule_t *rule_p, char *expr, size_t *rules_count_p) {
int ret;
char buf[8200];
unsigned long v7;
v7 = __readfsqword(0x28u);
if (rule_p->num <= 255) {
ret = regcomp(&rule_p->expr, expr, 9);
if (ret) {
regerror(ret, &rule_p->expr, buf, 0x2000u);
error("rule_complete",
... | int rule_complete(rule_t *rule_p, char *expr, size_t *rules_count_p) {
debug(3, "<%s>.", expr);
#ifdef VERYPARANOID
if (rule_p->mask == RA_NONE) {
error("Received a rule with rule_p->mask == 0x00. Exit.");
return EINVAL;
}
#endif
char buf[BUFSIZ];
int ret = 0;
if (rule_p->num >= MAXRULES) {
e... | rule_complete | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
ruleaction_t rules_getperm(const char *fpath, mode_t st_mode, rule_t *rules_p,
ruleaction_t ruleactions) {
ruleaction_t gotpermto;
ruleaction_t resultperm;
rule_t *rule_p[2];
rule_p[1] = (rule_t *)__readfsqword(0x28u);
rule_p[0] = 0;
gotpermto = ruleaction_enum_RA_NONE;
resultp... | ruleaction_t rules_getperm(const char *fpath, mode_t st_mode, rule_t *rules_p,
ruleaction_t ruleactions) {
rule_t *rule_p = NULL;
ruleaction_t gotpermto = 0;
ruleaction_t resultperm = 0;
debug(3, "rules_getperm(\"%s\", %p, %p (#%u), %p)", fpath,
(void *)(long)st_mode, rules_p,... | rules_getperm | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
ruleaction_t rules_search_getperm(const char *fpath, mode_t st_mode,
rule_t *rules_p,
const ruleaction_t ruleaction,
rule_t **rule_pp) {
int i;
rule_t *rule_p;
rule_p = rules_p;
i = 0;
if (rule_pp && *rule_p... | ruleaction_t rules_search_getperm(const char *fpath, mode_t st_mode,
rule_t *rules_p,
const ruleaction_t ruleaction,
rule_t **rule_pp) {
debug(3, "rules_search_getperm(\"%s\", %p, %p, %p, %p)", fpath,
(void *... | rules_search_getperm | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
void setenv_iteration(uint32_t iteration_num) {
char iterations[11];
unsigned long v2;
v2 = __readfsqword(0x28u);
sprintf(iterations, "%i", iteration_num);
setenv("CLSYNC_ITERATION", iterations, 1);
} | static inline void setenv_iteration(uint32_t iteration_num) {
char iterations[sizeof("4294967296")];
sprintf(iterations, "%i", iteration_num);
setenv("CLSYNC_ITERATION", iterations, 1);
return;
} | setenv_iteration | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int sethandler_sigchld(void (*handler)(...)) {
sigaction sa;
unsigned long v3;
v3 = __readfsqword(0x28u);
sa.sa_handler = (__sighandler_t)handler;
sigemptyset(&sa.sa_mask);
sa.sa_flags = 268435457;
if (sigaction(17, &sa, 0) == -1)
critical("sethandler_sigchld", "Assert: sigaction ( 17, &sa, 0 ) == -1... | int sethandler_sigchld(void (*handler)()) {
struct sigaction sa;
sa.sa_handler = handler;
sigemptyset(&sa.sa_mask);
sa.sa_flags = SA_RESTART | SA_NOCLDSTOP;
critical_on(sigaction(SIGCHLD, &sa, 0) == -1);
return 0;
} | sethandler_sigchld | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
void *shm_calloc(size_t nmemb, size_t size) {
void *ret;
ret = shm_malloc((size + 1) * (nmemb + 1));
if (!ret)
critical("shm_calloc", "Assert: ret == ((void *)0)");
memset(ret, 0, (size + 1) * (nmemb + 1));
return ret;
} | void *shm_calloc(size_t nmemb, size_t size) {
void *ret;
size_t total_size;
#ifdef PARANOID
nmemb++;
size++;
#endif
total_size = nmemb * size;
ret = shm_malloc(total_size);
critical_on(ret == NULL);
memset(ret, 0, total_size);
return ret;
} | shm_calloc | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
void shm_free(void *ptr) { shmdt(ptr); } | void shm_free(void *ptr) {
debug(25, "(%p)", ptr);
shmdt(ptr);
} | shm_free | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
void *shm_malloc(size_t size) {
void *ret;
ret = shm_malloc_try(size);
if (!ret)
critical("shm_malloc", "Assert: ret == ((void *)0)");
return ret;
} | void *shm_malloc(size_t size) {
void *ret;
ret = shm_malloc_try(size);
critical_on(ret == NULL);
return ret;
} | shm_malloc | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
void *shm_malloc_try(size_t size) {
int privileged_shmid;
void *ret;
shmid_ds shmid_ds;
unsigned long v5;
v5 = __readfsqword(0x28u);
privileged_shmid = shmget(0, size + 1, 896);
if (privileged_shmid == -1)
return 0;
ret = shmat(privileged_shmid, 0, 0);
if (ret == (void *)-1LL)
return 0;
shm... | void *shm_malloc_try(size_t size) {
void *ret;
#ifdef PARANOID
size++;
#endif
int privileged_shmid = shmget(0, size, IPC_PRIVATE | IPC_CREAT | 0600);
struct shmid_ds shmid_ds;
if (unlikely(privileged_shmid == -1))
return NULL;
ret = shmat(privileged_shmid, NULL, 0);
if (unlikely((long)ret == -1))
... | shm_malloc_try | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
uint32_t stat_diff(stat64_t *a, stat64_t *b) {
uint32_t difference;
if (!a)
critical("stat_diff", "Assert: a == ((void *)0)");
if (!b)
critical("stat_diff", "Assert: b == ((void *)0)");
difference = a->st_dev != b->st_dev;
if (a->st_ino != b->st_ino)
difference |= 2u;
if (a->st_mode != b->st_mo... | uint32_t stat_diff(stat64_t *a, stat64_t *b) {
uint32_t difference;
#ifdef PARANOID
critical_on(a == NULL);
critical_on(b == NULL);
#endif
difference = 0x0000;
#define STAT_COMPARE(bit, field) \
if (a->field != b->field) ... | stat_diff | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
char *strdup_protect(const char *src, int prot) {
size_t len;
char *dst;
len = strlen(src) + 1;
dst = (char *)malloc_align(len);
strcpy(dst, src);
if (mprotect(dst, len, prot))
critical("strdup_protect",
"(%p, 0x%o): Got error from mprotect(%p, %lu, 0x%o)", src, prot,
dst, len... | char *strdup_protect(const char *src, int prot) {
size_t len = strlen(src) + 1;
char *dst = malloc_align(len);
strcpy(dst, src);
if (unlikely(mprotect(dst, len, prot)))
critical("(%p, 0x%o): Got error from mprotect(%p, %lu, 0x%o)", src, prot,
dst, len, prot);
return dst;
} | strdup_protect | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
unsigned int sync_seqid() { return sync_seqid_value++; } | static inline unsigned int sync_seqid() { return _sync_seqid_value++; } | sync_seqid | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int synchandler_arg(char *arg, size_t arg_len, void *_ctx_p,
shargsid shargsid) {
char **v4;
size_t v5;
char *v6;
const char *v8;
int v9;
char **args_p;
char *args_i[6];
char *args_e[8];
unsigned long v15;
v15 = __readfsqword(0x28u);
if (!strcmp(arg, "%RSYNC-ARGS%")) {
arg... | static inline int synchandler_arg(char *arg, size_t arg_len, void *_ctx_p,
enum shargsid shargsid) {
ctx_t *ctx_p = _ctx_p;
debug(9, "(\"%s\" [%p], %u, %p, %u)", arg, arg, arg_len, _ctx_p, shargsid);
if (!strcmp(arg, "%RSYNC-ARGS%")) {
char *args_e[] = RSYNC_ARGS_E, *args_i[... | synchandler_arg | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int synchandler_arg0(char *arg, size_t arg_len, void *_ctx_p) {
return synchandler_arg(arg, arg_len, _ctx_p, shargsid_SHARGS_PRIMARY);
} | static int synchandler_arg0(char *arg, size_t arg_len, void *_ctx_p) {
return synchandler_arg(arg, arg_len, _ctx_p, SHARGS_PRIMARY);
} | synchandler_arg0 | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int synchandler_arg1(char *arg, size_t arg_len, void *_ctx_p) {
return synchandler_arg(arg, arg_len, _ctx_p, shargsid_SHARGS_INITIAL);
} | static int synchandler_arg1(char *arg, size_t arg_len, void *_ctx_p) {
return synchandler_arg(arg, arg_len, _ctx_p, SHARGS_INITIAL);
} | synchandler_arg1 | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int syntax() {
const char *v0;
unsigned int val;
unsigned int v2;
int i;
info("syntax", "possible options:");
i = -1;
while (long_options[++i].name) {
if ((unsigned int)(long_options[i].val - 533) > 1 &&
(long_options[i].val & 0x100) == 0) {
if (long_options[i].has_arg == 1)
v0 ... | int syntax() {
info("possible options:");
int i = -1;
while (long_options[++i].name != NULL) {
switch (long_options[i].val) {
case SYNCHANDLERARGS0:
case SYNCHANDLERARGS1:
continue;
}
if (long_options[i].val & OPTION_CONFIGONLY)
continue;
info("\t--%-24s%c%c%s", long_options... | syntax | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int syslog_buf(const char *fmt, ...) {
va_list args;
unsigned long v3;
v3 = __readfsqword(0x28u);
va_start(args, fmt);
return vsyslog_buf(fmt, args);
} | static int syslog_buf(const char *fmt, ...) {
va_list args;
int rc;
va_start(args, fmt);
rc = vsyslog_buf(fmt, args);
va_end(args);
return rc;
} | syslog_buf | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
void syslog_flush(int level) {
syslog(level, "%s", syslog_buffer);
syslog_buffer_filled = 0;
} | static void syslog_flush(int level) {
syslog(level, "%s", _syslog_buffer);
_syslog_buffer_filled = 0;
} | syslog_flush | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int thread_del_bynum(int thread_num) {
int *v1;
void **v3;
threadinfo_t **threadsstack;
int stacklen;
char **ptr;
threadsinfo_t *threadsinfo_p;
threadinfo_t *threadinfo_p;
threadinfo_t *t;
threadsinfo_p = thread_info_lock("thread_del_bynum");
if (!threadsinfo_p) {
v1 = __errno_location();
r... | int thread_del_bynum(int thread_num) {
debug(2, "thread_del_bynum(%i)", thread_num);
threadsinfo_t *threadsinfo_p = thread_info_lock();
#ifdef PARANOID
if (threadsinfo_p == NULL)
return thread_info_unlock(errno);
#endif
if (thread_num >= threadsinfo_p->used)
return thread_info_unlock(EINVAL);
thre... | thread_del_bynum | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
threadsinfo_t *thread_info() {
int i;
if (!threadsinfo_47.mutex_init) {
for (i = 0; i <= 2; ++i) {
if (pthread_mutex_init(&threadsinfo_47.mutex[i], 0)) {
error("thread_info", "Cannot pthread_mutex_init().");
return 0;
}
if (pthread_cond_init(&threadsinfo_47.cond[i], 0)) {
... | threadsinfo_t *thread_info() {
static threadsinfo_t threadsinfo = {0};
if (!threadsinfo.mutex_init) {
int i = 0;
while (i < PTHREAD_MUTEX_MAX) {
if (pthread_mutex_init(&threadsinfo.mutex[i], NULL)) {
error("Cannot pthread_mutex_init().");
return NULL;
}
if (pthread_cond_... | thread_info | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
threadinfo_t *thread_new() {
threadinfo_t **threadsstack;
int used;
int thread_num;
threadinfo_t *threadinfo_p;
threadsinfo_t *threadsinfo_p;
threadsinfo_p = thread_info_lock("thread_new");
if (threadsinfo_p) {
if (threadsinfo_p->stacklen) {
threadsstack = threadsinfo_p->threadsstack;
thr... | threadinfo_t *thread_new() {
threadsinfo_t *threadsinfo_p = thread_info_lock();
#ifdef PARANOID
if (threadsinfo_p == NULL) {
thread_info_unlock(0);
return NULL;
}
#endif
int thread_num;
threadinfo_t *threadinfo_p;
if (threadsinfo_p->stacklen) {
threadinfo_p = threadsinfo_p->threadsstack[--thr... | thread_new | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
time_t thread_nextexpiretime() {
time_t expiretime;
int thread_num;
time_t nextexpiretime;
threadsinfo_t *threadsinfo_p;
threadinfo_t *threadinfo_p;
nextexpiretime = 0;
threadsinfo_p = thread_info_lock("thread_nextexpiretime");
if (!threadsinfo_p)
return thread_info_unlock("thread_nextexpiretime", ... | time_t thread_nextexpiretime() {
time_t nextexpiretime = 0;
threadsinfo_t *threadsinfo_p = thread_info_lock();
#ifdef PARANOID
if (threadsinfo_p == NULL)
return thread_info_unlock(0);
#endif
int thread_num = threadsinfo_p->used;
while (thread_num--) {
threadinfo_t *threadinfo_p = &threadsinfo_p->th... | thread_nextexpiretime | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int threads_foreach(int (*funct)(threadinfo_t *, void *), state_t state,
void *arg) {
int v4;
int i;
int rc;
threadsinfo_t *threadsinfo_p;
threadinfo_t *threadinfo_p;
threadsinfo_p = thread_info_lock("threads_foreach");
if (!threadsinfo_p)
return thread_info_unlock("threads_foreac... | int threads_foreach(int (*funct)(threadinfo_t *, void *), state_t state,
void *arg) {
int i, rc;
threadsinfo_t *threadsinfo_p = thread_info_lock();
#ifdef PARANOID
if (threadsinfo_p == NULL)
return thread_info_unlock(EINVAL);
#endif
rc = 0;
i = 0;
while (i < threadsinfo_p->used) {... | threads_foreach | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int version() {
char flags[136];
unsigned long v1;
v1 = __readfsqword(0x28u);
strcpy(
flags,
" -DINOTIFY_SUPPORT -DBACKTRACE_SUPPORT -DCAPABILITIES_SUPPORT "
"-DSECCOMP_SUPPORT -DGETMNTENT_SUPPORT -DTHREADING_SUPPORT -DHL_LOCKS");
info("version",
"clsync v%i.%i.%i-release\n"
"... | int version() {
char flags[] =
#ifdef _DEBUG_SUPPORT
" -D_DEBUG_SUPPORT"
#endif
#ifdef _DEBUG_FORCE
" -D_DEBUG_FORCE"
#endif
#ifdef KQUEUE_SUPPORT
" -DKQUEUE_SUPPORT"
#endif
#ifdef INOTIFY_SUPPORT
" -DINOTIFY_SUPPORT"
#endif
#ifdef INOTIFY_OLD
" -DINOTIFY_OLD"
#endif
#ifdef FANOTIFY_SUPP... | version | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int vprintf_stderr(const char *fmt, __va_list_tag *args) {
return vfprintf(stderr, fmt, args);
} | static int vprintf_stderr(const char *fmt, va_list args) {
return vfprintf(stderr, fmt, args);
} | vprintf_stderr | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int vprintf_stdout(const char *fmt, __va_list_tag *args) {
return vfprintf(stdout, fmt, args);
} | static int vprintf_stdout(const char *fmt, va_list args) {
return vfprintf(stdout, fmt, args);
} | vprintf_stdout | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
int vsyslog_buf(const char *fmt, __va_list_tag *args) {
int len;
if (syslog_buffer_filled == 0x10000)
return 0;
len = vsnprintf(&syslog_buffer[syslog_buffer_filled],
0x10000 - syslog_buffer_filled, fmt, args);
if (len > 0) {
syslog_buffer_filled += len;
if (syslog_buffer_filled > ... | static int vsyslog_buf(const char *fmt, va_list args) {
int len;
size_t size;
size = SYSLOG_BUFSIZ - _syslog_buffer_filled;
#ifdef VERYPARANOID
if ((size > SYSLOG_BUFSIZ) ||
(_syslog_buffer_filled + size > SYSLOG_BUFSIZ) ||
(_syslog_buffer_filled > SYSLOG_BUFSIZ)) {
fprintf(stderr,
... | vsyslog_buf | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
pid_t waitpid_timed(pid_t child_pid, int *status_p, long sec, long nsec) {
int status;
timespec ts;
unsigned long v7;
v7 = __readfsqword(0x28u);
ts.tv_sec = sec;
ts.tv_nsec = nsec;
while (1) {
if (ts.tv_sec < 0)
return 0;
if (waitpid(child_pid, &status, 1) < 0)
break;
if (status_p... | pid_t waitpid_timed(pid_t child_pid, int *status_p, long sec, long nsec) {
struct timespec ts;
int status;
ts.tv_sec = sec;
ts.tv_nsec = nsec;
while (ts.tv_sec >= 0) {
if (waitpid(child_pid, &status, WNOHANG) < 0) {
if (errno == ECHILD)
return child_pid;
return -1;
} else if (sta... | waitpid_timed | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
void *xcalloc(size_t nmemb, size_t size) {
void *ret;
ret = calloc(nmemb + 1, size + 1);
if (!ret)
critical("xcalloc", "(%li): Cannot allocate memory.", size + 1);
return ret;
} | void *xcalloc(size_t nmemb, size_t size) {
debug(20, "(%li, %li)", nmemb, size);
#ifdef PARANOID
nmemb++;
size++;
#endif
void *ret = calloc(nmemb, size);
if (unlikely(ret == NULL))
critical("(%li): Cannot allocate memory.", size);
return ret;
} | xcalloc | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
void *xmalloc(size_t size) {
size_t sizea;
void *ret;
sizea = size + 1;
ret = malloc(size + 1);
if (!ret)
critical("xmalloc", "(%li): Cannot allocate memory.", sizea);
memset(ret, 0, sizea);
return ret;
} | void *xmalloc(size_t size) {
debug(20, "(%li)", size);
#ifdef PARANOID
size++;
#endif
void *ret = malloc(size);
if (unlikely(ret == NULL))
critical("(%li): Cannot allocate memory.", size);
#ifdef PARANOID
memset(ret, 0, size);
#endif
return ret;
} | xmalloc | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
void *xrealloc(void *oldptr, size_t size) {
void *ret;
ret = realloc(oldptr, size + 1);
if (!ret)
critical("xrealloc", "(%p, %li): Cannot reallocate memory.", oldptr,
size + 1);
return ret;
} | void *xrealloc(void *oldptr, size_t size) {
debug(20, "(%p, %li)", oldptr, size);
#ifdef PARANOID
size++;
#endif
void *ret = realloc(oldptr, size);
if (unlikely(ret == NULL))
critical("(%p, %li): Cannot reallocate memory.", oldptr, size);
return ret;
} | xrealloc | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
char *xstrncpy(char *dest, const char *src, size_t n) {
char *ret;
ret = strncpy(dest, src, n - 1);
if (n)
dest[n - 1] = 0;
else
*dest = 0;
return ret;
} | char *xstrncpy(char *dest, const char *src, size_t n) {
char *ret = strncpy(dest, src, n - 1);
if (likely(n > 0))
dest[n - 1] = 0;
else
dest[0] = 0;
return ret;
} | xstrncpy | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
long xstrtol(const char *str, int *err) {
char *endptr;
long res;
unsigned long v5;
v5 = __readfsqword(0x28u);
*__errno_location() = 0;
res = strtol(str, &endptr, 0);
if (*__errno_location() || *endptr) {
error("xstrtol", "argument \"%s\" can't be parsed as a number", str);
*err = 22;
}
retur... | static inline long xstrtol(const char *str, int *err) {
long res;
char *endptr;
errno = 0;
res = strtol(str, &endptr, 0);
if (errno || *endptr) {
error("argument \"%s\" can't be parsed as a number", str);
*err = EINVAL;
}
return res;
} | xstrtol | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
long xstrtol_trim(char *str, int *err) {
char *end;
char *enda;
while (*str == 32 || *str == 9 || *str == 13 || *str == 10)
++str;
for (end = str; *end; ++end)
;
for (enda = end - 1; *enda == 32 || *enda == 9 || *enda == 13 || *enda == 10;
--enda)
;
enda[1] = 0;
return xstrtol(str, err... | static inline long xstrtol_trim(char *str, int *err) {
while (*str == ' ' || *str == '\t' || *str == '\r' || *str == '\n')
str++;
char *end = str;
while (*end != '\0')
end++;
end--;
while (*end == ' ' || *end == '\t' || *end == '\r' || *end == '\n')
end--;
end++;
*end = '\0';
return x... | xstrtol_trim | clsync-0.4.5 | app-admin | O0/app-admin/clsync-0.4.5/clsync | ida | O0 |
gpointer active_thread_func(gpointer user_data) {
const void *v1;
const void *v2;
const void *v3;
int number_of_messages;
int rate;
const void *v6;
const void *v7;
unsigned long v8;
const void *v9;
const void *v10;
const void *v11;
const void *v12;
unsigned int sock_type;
int fd;
gboolean ... | gpointer active_thread_func(gpointer user_data) {
ThreadData *thread_context = (ThreadData *)user_data;
PluginOption *option = thread_context->option;
int sock_type = SOCK_STREAM;
if (sock_type_d)
sock_type = SOCK_DGRAM;
if (sock_type_s)
sock_type = SOCK_STREAM;
char *message = g_malloc0(MAX_MESS... | active_thread_func | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libloggen_socket_plugin.so | ida | O0 |
GOptionEntry *get_options() { return loggen_options; } | static GOptionEntry *get_options(void) { return loggen_options; } | get_options | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libloggen_socket_plugin.so | ida | O0 |
gint get_thread_count() {
gint num;
g_mutex_lock(&thread_lock);
num = active_thread_count + idle_thread_count;
g_mutex_unlock(&thread_lock);
return num;
} | static gint get_thread_count(void) {
g_mutex_lock(&thread_lock);
int num = active_thread_count + idle_thread_count;
g_mutex_unlock(&thread_lock);
return num;
} | get_thread_count | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libloggen_socket_plugin.so | ida | O0 |
gpointer idle_thread_func(gpointer user_data) {
const void *v1;
const void *v2;
const void *v3;
int number_of_messages;
int rate;
const void *v6;
unsigned int sock_type;
int fd;
int thread_index;
PluginOption *option;
gchar *base_0;
gchar *base;
gchar *base_1;
gchar *base_2;
option = *(Pl... | gpointer idle_thread_func(gpointer user_data) {
ThreadData *thread_context = (ThreadData *)user_data;
PluginOption *option = thread_context->option;
int thread_index = thread_context->index;
int sock_type = SOCK_STREAM;
if (sock_type_d)
sock_type = SOCK_DGRAM;
if (sock_type_s)
sock_type = SOCK_STR... | idle_thread_func | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libloggen_socket_plugin.so | ida | O0 |
gboolean is_plugin_activated() {
gchar *base;
if (sock_type_d || sock_type_s || inet_socket_i || unix_socket_x)
return 1;
if ((unsigned int)get_debug_level()) {
base = (gchar *)g_path_get_basename(
"tests/loggen/socket_plugin/socket_plugin.c");
fprintf(stdout, "debug [%s:%s:%d] ", base, "is_p... | static gboolean is_plugin_activated(void) {
if (!sock_type_d && !sock_type_s && !inet_socket_i && !unix_socket_x) {
DEBUG("socket plugin: none of command line option triggered. no thread "
"will be started\n");
return FALSE;
}
return TRUE;
} | is_plugin_activated | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libloggen_socket_plugin.so | ida | O0 |
gboolean send_msg(int fd, char *msg, size_t msg_len) {
size_t v3;
unsigned long sent;
long rc;
gchar *base;
for (sent = 0; strlen(msg) > sent; sent += rc) {
v3 = strlen(msg);
rc = send_plain(fd, &msg[sent], v3 - sent);
if (rc < 0) {
base = (gchar *)g_path_get_basename(
"tests/logg... | static gboolean send_msg(int fd, char *msg, size_t msg_len) {
ssize_t sent = 0;
while (sent < strlen(msg)) {
ssize_t rc = send_plain(fd, msg + sent, strlen(msg) - sent);
if (rc < 0) {
ERROR("error sending buffer on %d (rc=%zd)\n", fd, rc);
errno = ECONNABORTED;
return TRUE;
}
sent ... | send_msg | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libloggen_socket_plugin.so | ida | O0 |
ssize_t send_plain(int fd, void *buf, size_t length) {
int cc;
timespec tspec;
unsigned long v7;
v7 = __readfsqword(0x28u);
while (1) {
cc = send(fd, buf, length, 0);
if (cc > 0)
break;
if (cc >= 0 || *__errno_location() != 105)
return -1;
tspec.tv_sec = 0;
tspec.tv_nsec = 100... | static ssize_t send_plain(int fd, void *buf, size_t length) {
int cc;
for (;;) {
cc = send(fd, buf, length, 0);
if (cc > 0)
break;
if (cc < 0 && errno == ENOBUFS) {
struct timespec tspec;
tspec.tv_sec = 0;
tspec.tv_nsec = 1e6;
while (nanosleep(&tspec, &tspec) < 0 && errn... | send_plain | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libloggen_socket_plugin.so | ida | O0 |
void set_generate_message(generate_message_func gen_message) {
generate_message = gen_message;
} | static void set_generate_message(generate_message_func gen_message) {
generate_message = gen_message;
} | set_generate_message | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libloggen_socket_plugin.so | ida | O0 |
void stop(PluginOption *option) {
int j;
gchar *base_0;
gchar *base_1;
GThread *thread_id;
gchar *base;
if (option) {
if (is_plugin_activated()) {
if ((unsigned int)get_debug_level()) {
base_0 = (gchar *)g_path_get_basename(
"tests/loggen/socket_plugin/socket_plugin.c");
... | static void stop(PluginOption *option) {
if (!option) {
ERROR("invalid option reference\n");
return;
}
if (!is_plugin_activated())
return;
DEBUG("plugin stop\n");
thread_run = FALSE;
for (int j = 0; j < option->active_connections + option->idle_connections;
j++) {
GThread *thread_i... | stop | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libloggen_socket_plugin.so | ida | O0 |
void azure_auth_header_content_type_set(AzureAuthHeaderPlugin *self,
const gchar *content_type) {
g_free(self->content_type);
self->content_type = (gchar *)g_strdup(content_type);
} | void azure_auth_header_content_type_set(AzureAuthHeaderPlugin *self,
const gchar *content_type) {
g_free(self->content_type);
self->content_type = g_strdup(content_type);
} | azure_auth_header_content_type_set | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libazure-auth-header.so | ida | O0 |
void azure_auth_header_method_set(AzureAuthHeaderPlugin *self,
const gchar *method) {
g_free(self->method);
self->method = (gchar *)g_strdup(method);
} | void azure_auth_header_method_set(AzureAuthHeaderPlugin *self,
const gchar *method) {
g_free(self->method);
self->method = g_strdup(method);
} | azure_auth_header_method_set | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libazure-auth-header.so | ida | O0 |
gboolean azure_auth_header_module_init(PluginContext *context, CfgArgs *args) {
plugin_register(context, azure_auth_header_plugins, 1);
return 1;
} | gboolean azure_auth_header_module_init(PluginContext *context, CfgArgs *args) {
plugin_register(context, azure_auth_header_plugins,
G_N_ELEMENTS(azure_auth_header_plugins));
return TRUE;
} | azure_auth_header_module_init | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libazure-auth-header.so | ida | O0 |
void azure_auth_header_path_set(AzureAuthHeaderPlugin *self,
const gchar *path) {
g_free(self->path);
self->path = (gchar *)g_strdup(path);
} | void azure_auth_header_path_set(AzureAuthHeaderPlugin *self,
const gchar *path) {
g_free(self->path);
self->path = g_strdup(path);
} | azure_auth_header_path_set | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libazure-auth-header.so | ida | O0 |
AzureAuthHeaderPlugin *azure_auth_header_plugin_new() {
AzureAuthHeaderPlugin *self;
self = (AzureAuthHeaderPlugin *)g_malloc0_n(1, 80);
log_driver_plugin_init_instance(self, "azure-auth-header");
self->super.attach = (gboolean (*)(LogDriverPlugin *, LogDriver *))attach;
self->super.free_fn = (void (*)(LogDr... | AzureAuthHeaderPlugin *azure_auth_header_plugin_new(void) {
AzureAuthHeaderPlugin *self = g_new0(AzureAuthHeaderPlugin, 1);
log_driver_plugin_init_instance(&self->super, AZURE_AUTH_HEADER_PLUGIN);
self->super.attach = _attach;
self->super.free_fn = _free;
return self;
} | azure_auth_header_plugin_new | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libazure-auth-header.so | ida | O0 |
gboolean azure_auth_header_secret_set_from_b64str(AzureAuthHeaderPlugin *self,
const gchar *b64secret) {
g_free(self->secret);
self->secret = (guchar *)g_base64_decode(b64secret, &self->secret_len);
return self->secret && self->secret_len;
} | gboolean azure_auth_header_secret_set_from_b64str(AzureAuthHeaderPlugin *self,
const gchar *b64secret) {
g_free(self->secret);
self->secret = g_base64_decode(b64secret, &self->secret_len);
return (self->secret != NULL) && (self->secret_len > 0);
} | azure_auth_header_secret_set_from_b64str | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libazure-auth-header.so | ida | O0 |
void azure_auth_header_workspace_id_set(AzureAuthHeaderPlugin *self,
const gchar *workspace_id) {
g_free(self->workspace_id);
self->workspace_id = (gchar *)g_strdup(workspace_id);
} | void azure_auth_header_workspace_id_set(AzureAuthHeaderPlugin *self,
const gchar *workspace_id) {
g_free(self->workspace_id);
self->workspace_id = g_strdup(workspace_id);
} | azure_auth_header_workspace_id_set | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libazure-auth-header.so | ida | O0 |
void yydestruct(const char *yymsg, yysymbol_kind_t yykind,
AZURE_AUTH_HEADER_STYPE *yyvaluep,
AZURE_AUTH_HEADER_LTYPE *yylocationp, CfgLexer *lexer,
LogDriverPlugin **instance, gpointer arg) {
if (yykind == yysymbol_kind_t_YYSYMBOL_string ||
yykind <= yysymbol_kin... | static void yydestruct(const char *yymsg, yysymbol_kind_t yykind,
YYSTYPE *yyvaluep, YYLTYPE *yylocationp, CfgLexer *lexer,
LogDriverPlugin **instance, gpointer arg) {
YY_USE(yyvaluep);
YY_USE(yylocationp);
YY_USE(lexer);
YY_USE(instance);
YY_USE(arg);
if (!yyms... | yydestruct | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libazure-auth-header.so | ida | O0 |
int yypcontext_expected_tokens(const yypcontext_t *yyctx,
yysymbol_kind_t *yyarg, int yyargn) {
int v3;
int v4;
int v6;
int yycount;
yysymbol_kind_t yyx;
int yyn;
int yyxbegin;
int yyxend;
yycount = 0;
yyn = yypact[*yyctx->yyssp];
if (yyn != -159) {
if (yyn >= 0... | static int yypcontext_expected_tokens(const yypcontext_t *yyctx,
yysymbol_kind_t yyarg[], int yyargn) {
int yycount = 0;
int yyn = yypact[+*yyctx->yyssp];
if (!yypact_value_is_default(yyn)) {
int yyxbegin = yyn < 0 ? -yyn : 0;
int yychecklim = YYLAST - yyn + 1;
... | yypcontext_expected_tokens | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libazure-auth-header.so | ida | O0 |
void evt_closelog() { ; } | void evt_closelog(void) {} | evt_closelog | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
void evt_ctx_free(EVTCONTEXT *ctx) {
EVTTAGHOOK *p;
EVTTAGHOOK *p_next;
if (ctx->ec_ref <= 0)
__assert_fail("ctx->ec_ref > 0", "lib/eventlog/src/evtctx.c", 0x8Cu,
"evt_ctx_free");
if (!--ctx->ec_ref) {
for (p = ctx->ec_tag_hooks; p; p = p_next) {
p_next = p->et_next;
free(... | void evt_ctx_free(EVTCONTEXT *ctx) {
assert(ctx->ec_ref > 0);
if (--ctx->ec_ref == 0) {
EVTTAGHOOK *p, *p_next;
p = ctx->ec_tag_hooks;
while (p) {
p_next = p->et_next;
free(p);
p = p_next;
}
free(ctx);
}
} | evt_ctx_free | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
EVTCONTEXT *evt_ctx_init(const char *prog, int syslog_fac) {
EVTCONTEXT *ctx;
ctx = (EVTCONTEXT *)calloc(0x78u, 1u);
if (ctx) {
strcpy(ctx->ec_formatter, "plain");
strcpy(ctx->ec_outmethod, "local");
ctx->ec_ref = 1;
ctx->ec_flags = 0x8000;
ctx->ec_prog = (char *)prog;
ctx->ec_syslog_fac ... | EVTCONTEXT *evt_ctx_init(const char *prog, int syslog_fac) {
EVTCONTEXT *ctx;
ctx = (EVTCONTEXT *)calloc(sizeof(*ctx), 1);
if (ctx) {
strcpy(ctx->ec_formatter, "plain");
strcpy(ctx->ec_outmethod, "local");
ctx->ec_ref = 1;
ctx->ec_flags = EF_INITIALIZED;
ctx->ec_prog = (char *)prog;
ctx->... | evt_ctx_init | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
EVTCONTEXT *evt_ctx_ref(EVTCONTEXT *ctx) {
if (ctx->ec_ref <= 0)
__assert_fail("ctx->ec_ref > 0", "lib/eventlog/src/evtctx.c", 0x84u,
"evt_ctx_ref");
++ctx->ec_ref;
return ctx;
} | EVTCONTEXT *evt_ctx_ref(EVTCONTEXT *ctx) {
assert(ctx->ec_ref > 0);
ctx->ec_ref++;
return ctx;
} | evt_ctx_ref | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
int evt_ctx_tag_hook_add(EVTCONTEXT *ctx, int (*func)(EVTREC *, void *),
void *user_ptr) {
EVTTAGHOOK *cb;
cb = (EVTTAGHOOK *)malloc(0x18u);
if (!cb)
return 0;
cb->et_callback = func;
cb->et_userptr = user_ptr;
cb->et_next = ctx->ec_tag_hooks;
ctx->ec_tag_hooks = cb;
return... | int evt_ctx_tag_hook_add(EVTCONTEXT *ctx,
int (*func)(EVTREC *e, void *user_ptr),
void *user_ptr) {
EVTTAGHOOK *cb = malloc(sizeof(EVTTAGHOOK));
if (!cb)
return 0;
cb->et_callback = func;
cb->et_userptr = user_ptr;
cb->et_next = ctx->ec_tag_hooks;
ctx->... | evt_ctx_tag_hook_add | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
char *evt_format(EVTREC *e) {
int i;
EVTCONTEXT *ctx;
ctx = e->ev_ctx;
if (!ctx->ec_formatter_fn) {
for (i = 0; evt_formatters[i].ef_name; ++i) {
if (!strcmp(evt_formatters[i].ef_name, ctx->ec_formatter)) {
ctx->ec_formatter_fn = evt_formatters[i].ef_formatter;
break;
}
}
... | char *evt_format(EVTREC *e) {
EVTCONTEXT *ctx = e->ev_ctx;
if (!ctx->ec_formatter_fn) {
int i;
for (i = 0; evt_formatters[i].ef_name; i++) {
if (strcmp(evt_formatters[i].ef_name, ctx->ec_formatter) == 0) {
ctx->ec_formatter_fn = evt_formatters[i].ef_formatter;
break;
}
}
... | evt_format | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
int evt_log(EVTREC *e) {
int i;
int res;
EVTCONTEXT *ctx;
ctx = e->ev_ctx;
if (!ctx->ec_outmethod_fn) {
for (i = 0; evt_outmethods[i].eo_name; ++i) {
if (!strcmp(evt_outmethods[i].eo_name, ctx->ec_outmethod)) {
ctx->ec_outmethod_fn = evt_outmethods[i].eo_outmethod_fn;
break;
}... | int evt_log(EVTREC *e) {
int res;
EVTCONTEXT *ctx = e->ev_ctx;
if (!ctx->ec_outmethod_fn) {
int i;
for (i = 0; evt_outmethods[i].eo_name; i++) {
if (strcmp(evt_outmethods[i].eo_name, ctx->ec_outmethod) == 0) {
ctx->ec_outmethod_fn = evt_outmethods[i].eo_outmethod_fn;
break;
}
... | evt_log | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
void evt_openlog(const char *ident, int options, int facility) {
syslog_context = evt_ctx_init(ident, facility);
syslog_opts.es_options = options;
} | void evt_openlog(const char *ident, int options, int facility) {
syslog_context = evt_ctx_init(ident, facility);
syslog_opts.es_options = options;
} | evt_openlog | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
int evt_output_local(EVTREC *e) {
EVTCONTEXT *ctx;
char *msg;
ctx = e->ev_ctx;
if (!initialized_0) {
initialized_0 = 1;
syslog_opts.es_openlog(ctx->ec_prog, syslog_opts.es_options,
ctx->ec_syslog_fac);
}
msg = evt_format(e);
syslog_opts.es_syslog(e->ev_syslog_pri, "%s",... | static int evt_output_local(EVTREC *e) {
static int initialized = 0;
char *msg;
EVTCONTEXT *ctx = e->ev_ctx;
if (!initialized) {
initialized = 1;
syslog_opts.es_openlog(ctx->ec_prog, syslog_opts.es_options,
ctx->ec_syslog_fac);
}
msg = evt_format(e);
syslog_opts.es_sys... | evt_output_local | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
void evt_rec_add_tag(EVTREC *e, EVTTAG *tag) {
tag->et_next = 0;
if (e->ev_last_pair)
e->ev_last_pair->et_next = tag;
else
e->ev_pairs = tag;
e->ev_last_pair = tag;
} | void evt_rec_add_tag(EVTREC *e, EVTTAG *tag) {
tag->et_next = NULL;
if (e->ev_last_pair)
e->ev_last_pair->et_next = tag;
else
e->ev_pairs = tag;
e->ev_last_pair = tag;
} | evt_rec_add_tag | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
void evt_rec_add_tags(EVTREC *e, EVTTAG *first, ...) {
long v2;
long v3;
long v4;
long v5;
va_list ap;
unsigned long v7;
long v8;
long v9;
long v10;
long v11;
va_start(ap, first);
v2 = va_arg(ap, _QWORD);
v3 = va_arg(ap, _QWORD);
v4 = va_arg(ap, _QWORD);
v5 = va_arg(ap, _QWORD);
v8 = v2... | void evt_rec_add_tags(EVTREC *e, EVTTAG *first, ...) {
va_list ap;
va_start(ap, first);
evt_rec_add_tag(e, first);
evt_rec_add_tagsv(e, ap);
va_end(ap);
} | evt_rec_add_tags | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
void evt_rec_add_tagsv(EVTREC *e, __va_list_tag *tags) {
EVTTAG **overflow_arg_area;
EVTTAG **v3;
EVTTAG *t;
if (tags->gp_offset > 0x2F) {
overflow_arg_area = (EVTTAG **)tags->overflow_arg_area;
tags->overflow_arg_area = overflow_arg_area + 1;
} else {
overflow_arg_area =
(EVTTAG **)((cha... | void evt_rec_add_tagsv(EVTREC *e, va_list tags) {
EVTTAG *t;
t = va_arg(tags, EVTTAG *);
while (t) {
evt_rec_add_tag(e, t);
t = va_arg(tags, EVTTAG *);
}
} | evt_rec_add_tagsv | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
int evt_rec_call_hooks(EVTREC *e) {
int res;
EVTTAGHOOK *et;
res = 1;
for (et = e->ev_ctx->ec_tag_hooks; et; et = et->et_next) {
if (!et->et_callback(e, et->et_userptr))
res = 0;
}
return res;
} | static int evt_rec_call_hooks(EVTREC *e) {
EVTTAGHOOK *et;
int res = 1;
for (et = e->ev_ctx->ec_tag_hooks; et; et = et->et_next) {
if (!et->et_callback(e, et->et_userptr))
res = 0;
}
return res;
} | evt_rec_call_hooks | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
void evt_rec_free(EVTREC *e) {
EVTTAG *p;
EVTTAG *p_next;
if (!--e->ev_ref) {
free(e->ev_desc);
for (p = e->ev_pairs; p; p = p_next) {
p_next = p->et_next;
evt_tag_free(p);
}
evt_ctx_free(e->ev_ctx);
free(e);
}
} | void evt_rec_free(EVTREC *e) {
EVTTAG *p, *p_next;
if (--e->ev_ref == 0) {
free(e->ev_desc);
for (p = e->ev_pairs; p; p = p_next) {
p_next = p->et_next;
evt_tag_free(p);
}
evt_ctx_free(e->ev_ctx);
free(e);
}
} | evt_rec_free | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
int evt_rec_get_syslog_pri(EVTREC *e) { return e->ev_syslog_pri; } | int evt_rec_get_syslog_pri(EVTREC *e) { return e->ev_syslog_pri; } | evt_rec_get_syslog_pri | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
EVTREC *evt_rec_init(EVTCONTEXT *ctx, int syslog_pri, const char *desc) {
EVTREC *e;
e = (EVTREC *)malloc(0x28u);
if (e) {
e->ev_ctx = evt_ctx_ref(ctx);
e->ev_desc = strdup(desc);
e->ev_pairs = 0;
e->ev_last_pair = 0;
e->ev_ref = 1;
e->ev_syslog_pri = syslog_pri;
if (!evt_rec_call_hoo... | EVTREC *evt_rec_init(EVTCONTEXT *ctx, int syslog_pri, const char *desc) {
EVTREC *e;
e = (EVTREC *)malloc(sizeof(EVTREC));
if (e) {
e->ev_ctx = evt_ctx_ref(ctx);
e->ev_desc = strdup(desc);
e->ev_pairs = NULL;
e->ev_last_pair = NULL;
e->ev_ref = 1;
e->ev_syslog_pri = syslog_pri;
if (!e... | evt_rec_init | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libevtlog-3.35.so.0.0.0 | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.