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 |
|---|---|---|---|---|---|---|---|
char *abrt_kernel_tainted_short(const char *kernel_bt) {
unsigned int sz;
unsigned int cnt;
char *tainted;
char *tainteda;
char *tnt;
tainted = strstr(kernel_bt, "Tainted: ");
if (!tainted)
return 0;
tainteda = tainted + 9;
sz = 27;
cnt = 0;
tnt = (char *)g_malloc(27);
while (*tainteda > 64... | char *abrt_kernel_tainted_short(const char *kernel_bt) {
char *tainted = strstr(kernel_bt, "Tainted: ");
if (!tainted)
return NULL;
tainted += strlen("Tainted: ");
unsigned sz = 26 + 1;
unsigned cnt = 0;
char *tnt = g_malloc(sz);
for (;;) {
if (tainted[0] >= 'A' && tainted[0] <= 'Z') {
i... | abrt_kernel_tainted_short | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
void abrt_koops_extract_oopses(GList **oops_list, char *buffer, size_t buflen) {
gpointer v3;
char linelevel;
int linecount;
int lines_info_size;
char *long_needle;
char *short_needle;
char *c;
abrt_koops_line_info *lines_info;
char *hostname_dot;
char *c9;
char *colon;
char *kernel_str;
char ... | void abrt_koops_extract_oopses(GList **oops_list, char *buffer, size_t buflen) {
char hostname[HOST_NAME_MAX + 1] = {0};
g_autofree char *long_needle = NULL;
char *hostname_dot;
g_autofree char *short_needle = NULL;
char *c;
int linecount = 0;
int lines_info_size = 0;
struct abrt_koops_line_info *lines_... | abrt_koops_extract_oopses | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
void abrt_koops_extract_oopses_from_lines(
GList **oops_list, const abrt_koops_line_info *lines_info,
int lines_info_size) {
char prevlevel;
int i;
int oopsstart;
int inbacktrace;
int i2;
int oopsend;
int arm_regex_rc;
int trace_regex_rc;
int trace_regex2_rc;
int trace_regex3_rc;
int regis... | void abrt_koops_extract_oopses_from_lines(
GList **oops_list, const struct abrt_koops_line_info *lines_info,
int lines_info_size) {
int i;
char prevlevel = 0;
int oopsstart = -1;
int inbacktrace = 0;
regex_t arm_regex;
regex_t trace_regex;
regex_t trace_regex2;
regex_t trace_regex3;
regex_t r... | abrt_koops_extract_oopses_from_lines | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
char *abrt_koops_extract_version(const char *linepointer) {
int r;
int ra;
char *ret;
regex_t re;
regmatch_t matchptr[3];
char buf[2056];
unsigned long v8;
v8 = __readfsqword(0x28u);
if (!strstr(linepointer, "Pid") && !strstr(linepointer, "comm") &&
!strstr(linepointer, "CPU") && !strstr(linepo... | char *abrt_koops_extract_version(const char *linepointer) {
if (strstr(linepointer, "Pid") || strstr(linepointer, "comm") ||
strstr(linepointer, "CPU") || strstr(linepointer, "REGS") ||
strstr(linepointer, "EFLAGS")) {
const char *regexp =
"([ \\(]|kernel-)([0-9]+\\.[0-9]+\\.[0-9]+(\\.[^.-]+)... | abrt_koops_extract_version | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
char *abrt_koops_hash_str(const char *oops_buf) {
return abrt_koops_hash_str_ext(oops_buf, 6, 12);
} | char *abrt_koops_hash_str(const char *oops_buf) {
const int frame_count = 6;
const int duphash_flags = SR_DUPHASH_NONORMALIZE | SR_DUPHASH_KOOPS_COMPAT;
return abrt_koops_hash_str_ext(oops_buf, frame_count, duphash_flags);
} | abrt_koops_hash_str | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
char *abrt_koops_hash_str_ext(const char *oops_buf, int frame_count,
int duphash_flags) {
char *v3;
char *error;
char *digest;
sr_stacktrace *stacktrace;
sr_thread *thread;
unsigned long v10;
v10 = __readfsqword(0x28u);
error = 0;
digest = 0;
stacktrace = (sr_stacktrac... | char *abrt_koops_hash_str_ext(const char *oops_buf, int frame_count,
int duphash_flags) {
g_autofree char *error = NULL;
char *digest = NULL;
struct sr_stacktrace *stacktrace =
sr_stacktrace_parse(SR_REPORT_KERNELOOPS, oops_buf, &error);
if (!stacktrace) {
log_debug("Fai... | abrt_koops_hash_str_ext | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
void abrt_koops_line_skip_jiffies(const char **c) {
char *c2;
char *c3;
if (**c == 91) {
c2 = strchr(*c, 46);
c3 = strchr(*c, 93);
if (c2) {
if (c3 && c2 < c3 && c3 - *c <= 20) {
*c = c3 + 1;
if (**c == 32)
++*c;
}
}
}
} | void abrt_koops_line_skip_jiffies(const char **c) {
if (**c == '[') {
const char *c2 = strchr(*c, '.');
const char *c3 = strchr(*c, ']');
if (c2 && c3 && (c2 < c3) && (c3 - *c) < 21) {
*c = c3 + 1;
if (**c == ' ')
(*c)++;
}
}
} | abrt_koops_line_skip_jiffies | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int abrt_koops_line_skip_level(const char **c) {
int linelevel;
unsigned int exp;
const char *ptr;
const char *bck;
linelevel = 0;
if (**c == 60) {
for (ptr = *c + 1; ((*__ctype_b_loc())[*ptr] & 0x800) != 0; ++ptr)
;
if (*ptr == 62 && ptr - *c > 1) {
bck = ptr + 1;
for (exp = 1; -... | int abrt_koops_line_skip_level(const char **c) {
int linelevel = 0;
if (**c == '<') {
const char *ptr = *c + 1;
while (isdigit(*ptr))
++ptr;
if (*ptr == '>' && (ptr - *c > 1)) {
const char *const bck = ptr + 1;
unsigned exp = 1;
while (--ptr != *c) {
linelevel += (*ptr -... | abrt_koops_line_skip_level | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
void abrt_koops_print_suspicious_strings() {
abrt_koops_print_suspicious_strings_filtered(0);
} | void abrt_koops_print_suspicious_strings(void) {
abrt_koops_print_suspicious_strings_filtered(NULL);
} | abrt_koops_print_suspicious_strings | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
void abrt_koops_print_suspicious_strings_filtered(const regex_t **filterout) {
const char **str;
for (str = (const char **)s_koops_suspicious_strings; *str; ++str) {
if (!filterout || !match_any(filterout, *str))
puts(*str);
}
} | void abrt_koops_print_suspicious_strings_filtered(const regex_t **filterout) {
for (const char *const *str = s_koops_suspicious_strings; *str; ++str) {
if (filterout == NULL || !match_any(filterout, *str))
puts(*str);
}
} | abrt_koops_print_suspicious_strings_filtered | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
GList *abrt_koops_suspicious_strings_blacklist() {
GList *strings;
const char *const *str;
strings = 0;
for (str = s_koops_suspicious_strings_blacklist; *str; ++str)
strings = (GList *)g_list_prepend(strings, *str);
return strings;
} | GList *abrt_koops_suspicious_strings_blacklist(void) {
GList *strings = NULL;
for (const char *const *str = s_koops_suspicious_strings_blacklist; *str;
++str)
strings = g_list_prepend(strings, (gpointer)*str);
return strings;
} | abrt_koops_suspicious_strings_blacklist | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
GList *abrt_koops_suspicious_strings_list() {
GList *strings;
const char *const *str;
strings = 0;
for (str = s_koops_suspicious_strings; *str; ++str)
strings = (GList *)g_list_prepend(strings, *str);
return strings;
} | GList *abrt_koops_suspicious_strings_list(void) {
GList *strings = NULL;
for (const char *const *str = s_koops_suspicious_strings; *str; ++str)
strings = g_list_prepend(strings, (gpointer)*str);
return strings;
} | abrt_koops_suspicious_strings_list | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int abrt_load_abrt_conf() {
GHashTable_autoptr settings;
const char *abrt_conf;
unsigned long v3;
v3 = __readfsqword(0x28u);
abrt_free_abrt_conf_data();
abrt_conf = get_abrt_conf_file_name();
settings = (GHashTable_autoptr)g_hash_table_new_full(
&g_str_hash, &g_str_equal, &g_free, &g_free);
if (!... | int abrt_load_abrt_conf() {
abrt_free_abrt_conf_data();
const char *const abrt_conf = get_abrt_conf_file_name();
g_autoptr(GHashTable) settings =
g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
if (!abrt_load_abrt_conf_file(abrt_conf, settings))
perror_msg("Can't load '%s'", abrt_conf... | abrt_load_abrt_conf | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int abrt_load_abrt_conf_file(const char *file, GHashTable *settings) {
const char *v2;
char *env_conf_dir;
_QWORD conf_directories[3];
unsigned long v6;
v6 = __readfsqword(0x28u);
env_conf_dir = getenv("ABRT_CONF_DIR");
if (env_conf_dir)
v2 = env_conf_dir;
else
v2 = "/etc/abrt";
conf_director... | int abrt_load_abrt_conf_file(const char *file, GHashTable *settings) {
const char *env_conf_dir = getenv("ABRT_CONF_DIR");
const char *const conf_directories[] = {
env_conf_dir ? env_conf_dir : CONF_DIR, NULL};
return libreport_load_conf_file_from_dirs(file, conf_directories, settings,
... | abrt_load_abrt_conf_file | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int abrt_load_abrt_plugin_conf_file(const char *file, GHashTable *settings) {
return (unsigned char)libreport_load_conf_file_from_dirs(
file, conf_directories_0, settings, 0);
} | int abrt_load_abrt_plugin_conf_file(const char *file, GHashTable *settings) {
static const char *const conf_directories[] = {PLUGINS_CONF_DIR, NULL};
return libreport_load_conf_file_from_dirs(file, conf_directories, settings,
false);
} | abrt_load_abrt_plugin_conf_file | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int abrt_low_free_space(unsigned int setting_MaxCrashReportsSize,
const char *dump_location) {
statvfs vfs;
unsigned long v4;
v4 = __readfsqword(0x28u);
if (statvfs64(dump_location, (struct statvfs64 *)&vfs)) {
log_wrapper(3, "hooklib.c", 26, "abrt_low_free_space", 1, 1,
... | int abrt_low_free_space(unsigned setting_MaxCrashReportsSize,
const char *dump_location) {
struct statvfs vfs;
if (statvfs(dump_location, &vfs) != 0) {
perror_msg("statvfs('%s')", dump_location);
return 0;
}
unsigned long fs_free_mb_x4 =
((unsigned long long)vfs.f_bfree / ... | abrt_low_free_space | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
bool abrt_new_user_problem_entry_allowed(uid_t uid, const char *name,
const char *value) {
if (!uid)
return 1;
if (!problem_entry_is_post_create_condition(name))
return 1;
if (strcmp(value, "CCpp") && strcmp(value, "Kerneloops") &&
strcmp(value, "vmcore") && ... | bool abrt_new_user_problem_entry_allowed(uid_t uid, const char *name,
const char *value) {
if (uid == 0)
return true;
if (!problem_entry_is_post_create_condition(name))
return true;
if (strcmp(value, "CCpp") != 0 && strcmp(value, "Kerneloops") != 0 &&
strc... | abrt_new_user_problem_entry_allowed | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
void abrt_notify_new_path(const char *path) {
abrt_notify_new_path_with_response(path, 0);
} | void abrt_notify_new_path(const char *path) {
abrt_notify_new_path_with_response(path, NULL);
} | abrt_notify_new_path | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int abrt_notify_new_path_with_response(const char *path, char **message) {
size_t v3;
unsigned int code;
int fd;
int retval;
char *data;
sockaddr_un sunx;
unsigned long v9;
v9 = __readfsqword(0x28u);
fd = socket(1, 1, 0);
if (fd >= 0) {
memset(&sunx, 0, sizeof(sunx));
sunx.sun_family = 1;
... | int abrt_notify_new_path_with_response(const char *path, char **message) {
int retval;
int fd = socket(AF_UNIX, SOCK_STREAM, 0);
if (fd < 0) {
retval = -errno;
perror_msg("socket(AF_UNIX)");
return retval;
}
struct sockaddr_un sunx;
memset(&sunx, 0, sizeof(sunx));
sunx.sun_family = AF_UNIX;
... | abrt_notify_new_path_with_response | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
char *abrt_run_unstrip_n(const char *dump_dir_name, unsigned int timeout_sec) {
unsigned int flags;
int t;
unsigned int child;
int endtime;
int r;
GString *buf_out;
pollfd pfd;
int pipeout[2];
char *args[4];
char buff[1032];
unsigned long v13;
v13 = __readfsqword(0x28u);
flags = 326;
if (li... | char *abrt_run_unstrip_n(const char *dump_dir_name, unsigned timeout_sec) {
int flags =
EXECFLG_INPUT_NUL | EXECFLG_OUTPUT | EXECFLG_SETSID | EXECFLG_QUIET;
VERB1 flags &= ~EXECFLG_QUIET;
int pipeout[2];
char *args[4];
args[0] = (char *)"eu-unstrip";
args[1] = g_strdup_printf("--core=%s/" FILENAME_COR... | abrt_run_unstrip_n | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int abrt_save_abrt_conf_file(const char *file, GHashTable *settings) {
int v2;
char *path[3];
path[1] = (char *)__readfsqword(0x28u);
path[0] = (char *)g_build_filename("/etc/abrt", file, 0);
v2 = (unsigned char)libreport_save_conf_file(path[0], settings);
g_autoptr_cleanup_generic_gfree(path);
return v2... | int abrt_save_abrt_conf_file(const char *file, GHashTable *settings) {
g_autofree char *path = g_build_filename(CONF_DIR, file, NULL);
int retval = libreport_save_conf_file(path, settings);
return retval;
} | abrt_save_abrt_conf_file | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int abrt_save_abrt_plugin_conf_file(const char *file, GHashTable *settings) {
int v2;
char *path[3];
path[1] = (char *)__readfsqword(0x28u);
path[0] = (char *)g_build_filename("/etc/abrt/plugins", file, 0);
v2 = (unsigned char)libreport_save_conf_file(path[0], settings);
g_autoptr_cleanup_generic_gfree(pat... | int abrt_save_abrt_plugin_conf_file(const char *file, GHashTable *settings) {
g_autofree char *path = g_build_filename(PLUGINS_CONF_DIR, file, NULL);
int retval = libreport_save_conf_file(path, settings);
return retval;
} | abrt_save_abrt_plugin_conf_file | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
void abrt_trim_problem_dirs(const char *dirname, double cap_size,
const char *exclude_path) {
int v3;
const char *v4;
unsigned int len_dirname;
int count;
char *worst_basename;
char *d;
const char *excluded_basename;
double cur_size;
unsigned long v12;
v12 = __readfsqwor... | void abrt_trim_problem_dirs(const char *dirname, double cap_size,
const char *exclude_path) {
const char *excluded_basename = NULL;
if (exclude_path) {
unsigned len_dirname = strlen(dirname);
while (len_dirname > 1 && dirname[len_dirname - 1] == '/')
len_dirname--;
if ... | abrt_trim_problem_dirs | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int add_dirname_to_GList(dump_dir *dd, void *arg) {
long v3;
if (!abrt_dir_has_correct_permissions(dd->dd_dirname, 2)) {
log_wrapper(4, "problem_api.c", 91, "add_dirname_to_GList", 0, 0,
"Ignoring '%s': invalid owner, group or mode", dd->dd_dirname);
} else {
v3 = g_strdup(dd->dd_dirname)... | static int add_dirname_to_GList(struct dump_dir *dd, void *arg) {
if (!abrt_dir_has_correct_permissions(dd->dd_dirname, DD_PERM_DAEMONS)) {
log_warning("Ignoring '%s': invalid owner, group or mode", dd->dd_dirname);
return 0;
}
GList **list = arg;
*list = g_list_prepend(*list, g_strdup(dd->dd_dirname)... | add_dirname_to_GList | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int add_dirname_to_GList_if_not_accessible(dump_dir *dd, void *args) {
long v2;
if (!(unsigned int)dump_dir_accessible_by_uid(dd->dd_dirname,
*(unsigned int *)args)) {
v2 = g_strdup(dd->dd_dirname);
*((_QWORD *)args + 1) = g_list_prepend(*((_QWORD *)args + 1)... | static int add_dirname_to_GList_if_not_accessible(struct dump_dir *dd,
void *args) {
struct add_dirname_to_GList_if_not_accessible_args *param =
(struct add_dirname_to_GList_if_not_accessible_args *)args;
if (!dump_dir_accessible_by_uid(dd->dd_dirname, param-... | add_dirname_to_GList_if_not_accessible | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int check_recent_crash_file(const char *filename, const char *executable) {
void *v3;
_BYTE v4[16];
const char *executablea;
const char *filenamea;
int fd;
int ex_len;
int sz;
long v10;
char (*p_buf)[];
stat sb;
unsigned long v13;
filenamea = filename;
executablea = executable;
v13 = __read... | while (0)
int check_recent_crash_file(const char *filename, const char *executable) {
int fd = open(filename, O_RDWR | O_CREAT, 0600);
if (fd < 0)
return 0;
int ex_len = strlen(executable);
struct stat sb;
int sz;
if (-1 == fstat(fd, &sb))
perror_msg_and_die("Could not get infor... | check_recent_crash_file | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int chown_dir_over_dbus(const char *problem_dir_path) {
long v2;
gchar *message;
char *v4;
GError *error;
GDBusProxy *proxy;
unsigned long v7;
v7 = __readfsqword(0x28u);
if (!g_libabrt_inited) {
g_libabrt_inited = 1;
libabrt_init();
}
proxy = get_dbus_proxy();
if (!proxy)
return 1;
... | int chown_dir_over_dbus(const char *problem_dir_path) {
INITIALIZE_LIBABRT();
GDBusProxy *proxy = get_dbus_proxy();
if (!proxy)
return 1;
GError *error = NULL;
g_dbus_proxy_call_sync(proxy, "ChownProblemDir",
g_variant_new("(s)", problem_dir_path),
G_DBU... | chown_dir_over_dbus | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int dbus_problem_is_complete(const char *problem_id) {
return test_exist_over_dbus(problem_id, "count");
} | int dbus_problem_is_complete(const char *problem_id) {
return test_exist_over_dbus(problem_id, FILENAME_COUNT);
} | dbus_problem_is_complete | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int delete_problem_dirs_over_dbus(const GList *problem_dir_paths) {
gchar *message;
char *v3;
GError *error;
GDBusProxy *proxy;
GVariant *parameters;
unsigned long v7;
v7 = __readfsqword(0x28u);
if (!g_libabrt_inited) {
g_libabrt_inited = 1;
libabrt_init();
}
proxy = get_dbus_proxy();
if ... | int delete_problem_dirs_over_dbus(const GList *problem_dir_paths) {
INITIALIZE_LIBABRT();
GDBusProxy *proxy = get_dbus_proxy();
if (!proxy)
return 1;
GVariant *parameters = variant_from_string_list(problem_dir_paths);
GError *error = NULL;
g_dbus_proxy_call_sync(proxy, "DeleteProblem", parameters,
... | delete_problem_dirs_over_dbus | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int dump_suid_policy() {
int suid_dump_policy;
int c;
FILE *f;
suid_dump_policy = 0;
f = fopen64("/proc/sys/fs/suid_dumpable", "r");
if (f) {
c = fgetc(f);
fclose(f);
if (c != -1)
return c - 48;
return suid_dump_policy;
} else {
log_wrapper(4, "hooklib.c", 444, "dump_suid_policy... | int dump_suid_policy() {
int c;
int suid_dump_policy = 0;
const char *filename = "/proc/sys/fs/suid_dumpable";
FILE *f = fopen(filename, "r");
if (!f) {
log_warning("Can't open %s", filename);
return suid_dump_policy;
}
c = fgetc(f);
fclose(f);
if (c != EOF)
suid_dump_policy = c - '0';
... | dump_suid_policy | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
char *exec_vp(char **args, int redirect_stderr, int exec_timeout_sec,
int *status) {
unsigned int flags;
int t;
unsigned int child;
int endtime;
int r;
GString *buf_out;
pollfd pfd;
int pipeout[2];
char buff[1032];
unsigned long v16;
v16 = __readfsqword(0x28u);
flags = 326;
if (... | static char *exec_vp(char **args, int redirect_stderr, int exec_timeout_sec,
int *status) {
static const char *const env_vec[] = {
"LANG", "LC_ALL", "LC_COLLATE", "LC_CTYPE",
"LC_MESSAGES", "LC_MONETARY", "LC_NUMERIC", "LC_TIME",
"TERM", NULL};
int flags ... | exec_vp | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int fill_problem_data_over_dbus(const char *problem_id, const char **elements,
problem_data_t *problem_data) {
long v4;
gchar *message;
char *v6;
GError *error;
char *key;
char *val;
GVariantIter *iter;
const char **iter_0;
GDBusProxy *proxy;
GVariantBuilder *args_bui... | int fill_problem_data_over_dbus(const char *problem_id, const char **elements,
problem_data_t *problem_data) {
INITIALIZE_LIBABRT();
GDBusProxy *proxy = get_dbus_proxy();
if (!proxy)
return -1;
GVariantBuilder *args_builder = g_variant_builder_new(G_VARIANT_TYPE("as"));
... | fill_problem_data_over_dbus | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int for_each_problem_in_dir(const char *path, uid_t caller_uid,
int (*callback)(dump_dir *, void *), void *arg) {
int v5;
int v6;
int v7;
int brk;
int sv_logmode;
char *full_name;
dump_dir *dd;
DIR *dp;
dirent *dent;
unsigned long v16;
v16 = __readfsqword(0x28u);
dp ... | int for_each_problem_in_dir(const char *path, uid_t caller_uid,
int (*callback)(struct dump_dir *dd, void *arg),
void *arg) {
DIR *dp = opendir(path);
if (!dp) {
return 0;
}
int brk = 0;
struct dirent *dent;
while ((dent = readdir(dp)) != NULL) {... | for_each_problem_in_dir | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
const char *get_abrt_conf_file_name() {
char *abrt_conf;
abrt_conf = getenv("ABRT_CONF_FILE_NAME");
if (abrt_conf)
return abrt_conf;
else
return "abrt.conf";
} | static const char *get_abrt_conf_file_name(void) {
const char *const abrt_conf = getenv("ABRT_CONF_FILE_NAME");
return abrt_conf == NULL ? ABRT_CONF : abrt_conf;
} | get_abrt_conf_file_name | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
GDBusProxy *get_dbus_proxy() {
gchar *message;
char *v2;
GError *error[3];
error[1] = (GError *)__readfsqword(0x28u);
if (proxy_10)
return proxy_10;
error[0] = 0;
proxy_10 = (GDBusProxy *)g_dbus_proxy_new_for_bus_sync(
1, 0, 0, "org.freedesktop.problems", "/org/freedesktop/problems",
"org... | static GDBusProxy *get_dbus_proxy(void) {
static GDBusProxy *proxy;
if (proxy != NULL)
return proxy;
GError *error = NULL;
proxy = g_dbus_proxy_new_for_bus_sync(
G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_NONE, NULL, ABRT_DBUS_NAME,
ABRT_DBUS_OBJECT, ABRT_DBUS_IFACE, NULL, &error);
if (error) {
... | get_dbus_proxy | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
problem_data_t *get_full_problem_data_over_dbus(const char *problem_dir_path) {
long v2;
gchar *message;
char *v4;
unsigned int flags;
GError *error;
GVariantIter *iter;
gchar *name;
gulong size;
gchar *value;
GDBusProxy *proxy;
GVariant *result;
problem_data_t *pd;
unsigned long v14;
v14 =... | problem_data_t *get_full_problem_data_over_dbus(const char *problem_dir_path) {
INITIALIZE_LIBABRT();
GDBusProxy *proxy = get_dbus_proxy();
if (!proxy)
return ERR_PTR;
GError *error = NULL;
GVariant *result = g_dbus_proxy_call_sync(
proxy, "GetProblemData", g_variant_new("(s)", problem_dir_path),
... | get_full_problem_data_over_dbus | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
problem_data_t *get_problem_data_dbus(const char *problem_dir_path) {
char *v1;
problem_data_t *pd;
if (!g_libabrt_inited) {
g_libabrt_inited = 1;
libabrt_init();
}
pd = (problem_data_t *)problem_data_new();
if (!fill_problem_data_over_dbus(problem_dir_path, elements_5, pd))
return pd;
v1 = d... | problem_data_t *get_problem_data_dbus(const char *problem_dir_path) {
INITIALIZE_LIBABRT();
static const char *elements[] = {
FILENAME_TIME,
FILENAME_REASON,
FILENAME_NOT_REPORTABLE,
FILENAME_COMPONENT,
FILENAME_EXECUTABLE,
FILENAME_REPORTED_TO,
NULL,
};
problem_data_... | get_problem_data_dbus | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
GList *get_problem_dirs_for_uid(uid_t uid, const char *dump_location) {
GList *list[2];
list[1] = (GList *)__readfsqword(0x28u);
list[0] = 0;
for_each_problem_in_dir(dump_location, uid,
(int (*)(dump_dir *, void *))add_dirname_to_GList,
list);
return (GList... | GList *get_problem_dirs_for_uid(uid_t uid, const char *dump_location) {
GList *list = NULL;
for_each_problem_in_dir(dump_location, uid, add_dirname_to_GList, &list);
return g_list_reverse(list);
} | get_problem_dirs_for_uid | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
GList *get_problem_dirs_not_accessible_by_uid(uid_t uid,
const char *dump_location) {
add_dirname_to_GList_if_not_accessible_args args;
unsigned long v4;
v4 = __readfsqword(0x28u);
args.uid = uid;
args.list = 0;
for_each_problem_in_dir(
dump_location, 0xF... | GList *get_problem_dirs_not_accessible_by_uid(uid_t uid,
const char *dump_location) {
struct add_dirname_to_GList_if_not_accessible_args args = {
.uid = uid,
.list = NULL,
};
for_each_problem_in_dir(dump_location, -1,
add_dirname... | get_problem_dirs_not_accessible_by_uid | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
GList *get_problem_storages() {
long v0;
GList *paths;
abrt_load_abrt_conf();
v0 = g_strdup(abrt_g_settings_dump_location);
paths = (GList *)g_list_append(0, v0);
abrt_free_abrt_conf_data();
return paths;
} | GList *get_problem_storages(void) {
GList *paths = NULL;
abrt_load_abrt_conf();
paths = g_list_append(paths, g_strdup(abrt_g_settings_dump_location));
abrt_free_abrt_conf_data();
return paths;
} | get_problem_storages | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
GList *get_problems_over_dbus(bool authorize) {
long v2;
const char *v3;
gchar *message;
char *v5;
GError *error;
GList *list;
GDBusProxy *proxy;
GVariant *result;
GVariant *array;
unsigned long v11;
v11 = __readfsqword(0x28u);
if (!g_libabrt_inited) {
g_libabrt_inited = 1;
libabrt_init... | GList *get_problems_over_dbus(bool authorize) {
INITIALIZE_LIBABRT();
GDBusProxy *proxy = get_dbus_proxy();
if (!proxy)
return ERR_PTR;
GError *error = NULL;
GVariant *result = g_dbus_proxy_call_sync(
proxy, authorize ? "GetAllProblems" : "GetProblems", g_variant_new("()"),
G_DBUS_CALL_FLAGS... | get_problems_over_dbus | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
void libabrt_init() { bindtextdomain("abrt", "/usr/share/locale"); } | void libabrt_init(void) {
#if ENABLE_NLS
bindtextdomain(PACKAGE, LOCALEDIR);
#endif
} | libabrt_init | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
char *load_text_over_dbus(const char *problem_id, const char *element_name) {
long v3;
gchar *message;
char *v5;
GError *error;
char *retval;
gchar *key;
GDBusProxy *proxy;
GVariantBuilder *builder;
GVariant *params;
GVariant *result;
GVariant *values;
GVariant *contents;
unsigned long v15;
... | char *load_text_over_dbus(const char *problem_id, const char *element_name) {
INITIALIZE_LIBABRT();
GDBusProxy *proxy = get_dbus_proxy();
if (!proxy)
return ERR_PTR;
GVariantBuilder *builder = g_variant_builder_new(G_VARIANT_TYPE("as"));
g_variant_builder_add(builder, "s", element_name);
GVariant *par... | load_text_over_dbus | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
bool match_any(const regex_t **res, const char *str) {
int reti;
char msgbuf[104];
unsigned long v6;
v6 = __readfsqword(0x28u);
while (*res) {
reti = regexec(*res, str, 0, 0, 0);
if (!reti)
return 1;
if (reti != 1) {
regerror(reti, *res, msgbuf, 0x64u);
log_and_die_wrapper(3, "k... | static bool match_any(const regex_t **res, const char *str) {
for (const regex_t **r = res; *r != NULL; ++r) {
const int reti = regexec(*r, str, 0, NULL, 0);
if (reti == 0)
return true;
else if (reti != REG_NOMATCH) {
char msgbuf[100];
regerror(reti, *r, msgbuf, sizeof(msgbuf));
e... | match_any | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
void migrate_to_xdg_dirs() {
long home_dir;
long user_cache_dir;
char *v2;
char *v3;
char *v4;
long user_config_dir;
char *old;
char *s;
char *oslash;
char *nslash;
unsigned long v10;
v10 = __readfsqword(0x28u);
home_dir = g_get_home_dir();
old = (char *)g_build_filename(home_dir, ".abrt/ap... | void migrate_to_xdg_dirs(void) {
g_autofree char *old =
g_build_filename(g_get_home_dir(), ".abrt/applet_dirlist", NULL);
g_autofree char *new =
g_build_filename(g_get_user_cache_dir(), "abrt/applet_dirlist", NULL);
char *oslash = strrchr(old, '/');
char *nslash = strrchr(new, '/');
*nslash = '\0... | migrate_to_xdg_dirs | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
char *problem_data_save(problem_data_t *pd) {
char *problem_id;
dump_dir *dd;
abrt_load_abrt_conf();
dd = (dump_dir *)create_dump_dir_from_problem_data_ext(
pd, abrt_g_settings_dump_location, 0);
problem_id = 0;
if (dd) {
problem_id = (char *)g_strdup(dd->dd_dirname);
dd_close(dd);
}
log_... | char *problem_data_save(problem_data_t *pd) {
abrt_load_abrt_conf();
struct dump_dir *dd = create_dump_dir_from_problem_data_ext(
pd, abrt_g_settings_dump_location, 0);
char *problem_id = NULL;
if (dd) {
problem_id = g_strdup(dd->dd_dirname);
dd_close(dd);
}
log_info("problem id: '%s'", pro... | problem_data_save | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int problem_dump_dir_is_complete(dump_dir *dd) { return dd_exist(dd, "count"); } | int problem_dump_dir_is_complete(struct dump_dir *dd) {
return dd_exist(dd, FILENAME_COUNT);
} | problem_dump_dir_is_complete | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
bool problem_entry_is_post_create_condition(const char *name) {
return !strcmp(name, "type") || !strcmp(name, "analyzer") ||
!strcmp(name, "basename");
} | bool problem_entry_is_post_create_condition(const char *name) {
return strcmp(name, FILENAME_TYPE) == 0
|| strcmp(name, FILENAME_ANALYZER) == 0
|| strcmp(name, "basename") == 0;
} | problem_entry_is_post_create_condition | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
void record_oops(GList **oops_list, const abrt_koops_line_info *lines_info,
int oopsstart, int oopsend) {
char *v4;
long v5;
int q;
int qa;
int len;
int rv;
char *oops;
char *version;
char *dst;
unsigned long v15;
v15 = __readfsqword(0x28u);
rv = 1;
len = 2;
for (q = oopsst... | static void record_oops(GList **oops_list,
const struct abrt_koops_line_info *lines_info,
int oopsstart, int oopsend) {
int q;
int len;
int rv = 1;
len = 2;
for (q = oopsstart; q <= oopsend; q++)
len += strlen(lines_info[q].ptr) + 1;
if (len > SANE_MIN_O... | record_oops | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int signal_is_fatal(int signal_no, const char **name) {
const char *signame;
signame = 0;
switch (signal_no) {
case 4:
signame = "ILL";
break;
case 5:
signame = "TRAP";
break;
case 6:
signame = "ABRT";
break;
case 7:
signame = "BUS";
break;
case 8:
signame = "FPE";
... | int signal_is_fatal(int signal_no, const char **name) {
const char *signame = NULL;
switch (signal_no) {
case SIGILL:
signame = "ILL";
break;
case SIGFPE:
signame = "FPE";
break;
case SIGSEGV:
signame = "SEGV";
break;
case SIGBUS:
signame = "BUS";
break;
case SIGABRT:
s... | signal_is_fatal | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
GList *string_list_from_variant(GVariant *variant) {
long v1;
GVariantIter *iter;
gchar *str;
GList *list;
unsigned long v6;
v6 = __readfsqword(0x28u);
list = 0;
g_variant_get(variant, "as", &iter);
while ((unsigned int)g_variant_iter_loop(iter, "s", &str)) {
log_wrapper(7, "abrt_glib.c", 30, "st... | GList *string_list_from_variant(GVariant *variant) {
GList *list = NULL;
GVariantIter *iter;
gchar *str;
g_variant_get(variant, "as", &iter);
while (g_variant_iter_loop(iter, "s", &str)) {
log_debug("adding: %s", str);
list = g_list_prepend(list, g_strdup(str));
}
g_variant_unref(variant);
retu... | string_list_from_variant | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
bool suspicious_line(const char *line) {
const char *const *str;
const char *const *stra;
for (str = s_koops_suspicious_strings; *str && !strstr(line, *str); ++str)
;
if (!*str)
return 0;
for (stra = s_koops_suspicious_strings_blacklist;
*stra && !strstr(line, *stra); ++stra)
;
return *s... | static bool suspicious_line(const char *line) {
const char *const *str = s_koops_suspicious_strings;
for (; *str; ++str)
if (strstr(line, *str))
break;
if (!*str)
return false;
str = s_koops_suspicious_strings_blacklist;
for (; *str; ++str)
if (strstr(line, *str))
break;
return !*... | suspicious_line | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int test_exist_over_dbus(const char *problem_id, const char *element_name) {
long v3;
gchar *message;
char *v5;
gboolean retval;
GError *error;
GDBusProxy *proxy;
GVariant *result;
unsigned long v10;
v10 = __readfsqword(0x28u);
if (!g_libabrt_inited) {
g_libabrt_inited = 1;
libabrt_init();
... | int test_exist_over_dbus(const char *problem_id, const char *element_name) {
INITIALIZE_LIBABRT();
GDBusProxy *proxy = get_dbus_proxy();
if (!proxy)
return -1;
GError *error = NULL;
GVariant *result =
g_dbus_proxy_call_sync(proxy, "TestElementExists",
g_variant_new("(s... | test_exist_over_dbus | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
void try_to_move(const char *old, const char *a2) {
if (access(a2, 0) &&
(*__errno_location() == 2 || *__errno_location() == 20) &&
rename(old, a2) == -1)
log_wrapper(3, "migrate_dirs.c", 31, "try_to_move", 1, 1, aFailedToRename,
old, a2);
} | static void try_to_move(const char *old, const char *new) {
if (access(new, F_OK) != 0 && (errno == ENOENT || errno == ENOTDIR)) {
if (rename(old, new) == -1)
perror_msg("Failed to rename ‘%s’ to ‘%s’", old, new);
}
} | try_to_move | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
GVariant *variant_from_string_list(const GList *strings) {
long v1;
GVariantBuilder *builder;
GVariant *variant;
v1 = g_variant_type_checked_("as");
builder = (GVariantBuilder *)g_variant_builder_new(v1);
while (strings) {
g_variant_builder_add(builder, "s", strings->data);
strings = strings->next;... | GVariant *variant_from_string_list(const GList *strings) {
GVariantBuilder *builder;
builder = g_variant_builder_new(G_VARIANT_TYPE("as"));
while (strings) {
g_variant_builder_add(builder, "s", (char *)strings->data);
strings = strings->next;
}
GVariant *variant = g_variant_new("(as)", builder);
g... | variant_from_string_list | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
char *xstrdup_normalized_path(const char *path) {
const char *p;
char *r;
size_t len;
char *res;
len = strlen(path);
res = (char *)g_malloc0(len + 1);
*res = *path;
p = path + 1;
r = res;
while (len > p - path) {
if (*p != 47 || *r != 47)
*++r = *p;
++p;
}
if (r - res > 1 && *r ==... | static char *xstrdup_normalized_path(const char *path) {
const size_t len = strlen(path);
char *const res = g_malloc0(len + 1);
res[0] = path[0];
const char *p = path + 1;
char *r = res;
for (; p - path < len; ++p)
if (*p != '/' || *r != '/')
*++r = *p;
if (r - res > 1 && *r == '/')
*r = ... | xstrdup_normalized_path | abrt-2.15.1 | app-admin | O0/app-admin/abrt-2.15.1/libabrt.so.0.1.0 | ida | O0 |
int compare_dir_contents(WatchFile *file) {
int i;
timespec delay;
unsigned long v4;
v4 = __readfsqword(0x28u);
delay.tv_sec = 0;
delay.tv_nsec = 100000000;
for (i = 0; i <= 4; ++i) {
if (xlist_dir(file->fn) == file->file_count)
return 0;
nanosleep(&delay, 0);
}
return 1;
} | int compare_dir_contents(WatchFile *file) {
int i;
struct timespec delay = {0, 100 * 1000000};
for (i = 0; i < 5; i++) {
if (xlist_dir(file->fn) == file->file_count)
return 0;
nanosleep(&delay, NULL);
}
return 1;
} | compare_dir_contents | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
WatchFile *file_by_descriptor(int wd) {
int i;
for (i = 0; files[i]; ++i) {
if (wd == files[i]->fd)
return files[i];
}
return 0;
} | static WatchFile *file_by_descriptor(int wd) {
int i;
for (i = 0; files[i] != NULL; i++) {
if (files[i]->fd == wd)
return files[i];
}
return NULL;
} | file_by_descriptor | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
int fs_sysctl(const int name) {
int value;
FILE *file;
char line[8];
unsigned long v5;
v5 = __readfsqword(0x28u);
value = 0;
if (name == 2) {
file = fopen("/proc/sys/fs/inotify/max_user_watches", "r");
if (file && fgets(line, 8, file))
value = atoi(line);
else
value = 0;
if (f... | int fs_sysctl(const int name) {
FILE *file;
char line[8];
int value = 0;
switch (name) {
case INOTIFY_MAX_USER_WATCHES:
file = fopen("/proc/sys/fs/inotify/max_user_watches", "r");
if (file == NULL || fgets(line, sizeof(line), file) == NULL) {
value = 0;
} else
value = atoi(line);
... | fs_sysctl | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
void handle_exit(int sig) {
if (!noninteractive_opt && termios_set)
xtcsetattr(0, 1, &canonical_tty);
terminate_utility();
if (sig == 2 || sig == 1)
exit(0);
raise(sig);
} | void handle_exit(int sig) {
if ((!noninteractive_opt) && (termios_set))
xtcsetattr(STDIN_FILENO, TCSADRAIN, &canonical_tty);
terminate_utility();
if ((sig == SIGINT || sig == SIGHUP))
exit(0);
else
raise(sig);
} | handle_exit | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
int kqueue() {
if (!inotify_queue_0)
inotify_queue_0 = inotify_init();
if (getenv("ENTR_INOTIFY_WORKAROUND"))
warnx("broken inotify workaround enabled");
return inotify_queue_0;
} | int kqueue(void) {
static int inotify_queue;
if (inotify_queue == 0)
inotify_queue = inotify_init();
if (getenv("ENTR_INOTIFY_WORKAROUND"))
warnx("broken inotify workaround enabled");
return inotify_queue;
} | kqueue | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
int list_dir(char *dir) {
int count;
DIR *dfd;
struct dirent *dp;
dfd = opendir(dir);
count = 0;
if (!dfd)
errx(1, "unable to open directory: '%s'", dir);
while (1) {
dp = readdir(dfd);
if (!dp)
break;
if (dirwatch_opt == 2 || dp->d_name[0] != 46)
++count;
}
closedir(dfd);... | int list_dir(char *dir) {
struct dirent *dp;
DIR *dfd = opendir(dir);
int count = 0;
if (dfd == NULL)
errx(1, "unable to open directory: '%s'", dir);
while ((dp = readdir(dfd)) != NULL)
if ((dirwatch_opt == 2) || (dp->d_name[0] != '.'))
count++;
closedir(dfd);
return count;
} | list_dir | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int v4;
short argv_index;
int i;
unsigned int open_max;
int kq;
int n_files;
int ttyfd;
kevent evSet;
sigaction act;
unsigned long v13;
v13 = __readfsqword(0x28u);
if (test_runner_main)
return test_runner_main(argc, (char **)argv);
... | int main(int argc, char *argv[]) {
struct rlimit rl;
int kq;
struct sigaction act;
int ttyfd;
short argv_index;
int n_files;
int i;
struct kevent evSet;
unsigned open_max;
if ((*test_runner_main))
return (test_runner_main(argc, argv));
xstat = stat;
xkevent = kevent;
xkillpg = killpg;
... | main | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
void proc_exit(int sig) {
int v1;
char *v2;
char *v3;
int status;
unsigned long v5;
v5 = __readfsqword(0x28u);
if (wait((__WAIT_STATUS)&status) > 0)
child_exitstatus = BYTE1(status);
if (oneshot_opt == 1 && !terminating) {
if (shell_opt == 1 && !restart_opt) {
v1 = child_exitstatus;
... | void proc_exit(int sig) {
int status;
if (wait(&status) > 0)
child_exitstatus = WEXITSTATUS(status);
if ((oneshot_opt == 1) && (terminating == 0)) {
if ((shell_opt == 1) && (restart_opt == 0)) {
fprintf(stdout, "%s returned exit code %d\n", basename(getenv("SHELL")),
child_exitstatus)... | proc_exit | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
int process_input(FILE *file, WatchFile **files, int max_files) {
char *j;
WatchFile *v4;
int n_files;
int i;
int matches;
char *path;
char *p;
stat sb;
char buf[4104];
unsigned long v14;
v14 = __readfsqword(0x28u);
n_files = 0;
for (j = fgets(buf, 4096, file); j; j = fgets(buf, 4096, file)) ... | int process_input(FILE *file, WatchFile *files[], int max_files) {
char buf[PATH_MAX];
char *p, *path;
int n_files = 0;
struct stat sb;
int i, matches;
while (fgets(buf, sizeof(buf), file) != NULL) {
if ((p = strchr(buf, '\n')) != NULL)
*p = '\0';
if (buf[0] == '\0')
continue;
if (... | process_input | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
void run_utility(char **argv) {
const char *v1;
__pid_t v2;
int v3;
char *v4;
char *v5;
int status;
int i;
int m;
int ret;
int argc;
int pid;
char **new_argv;
char *p;
char *v15;
timespec delay;
int stdin_pipe[2];
unsigned long v18;
v18 = __readfsqword(0x28u);
delay.tv_sec = 0;
... | void run_utility(char *argv[]) {
int pid;
int i, m;
int ret, status;
struct timespec delay = {0, 1000000};
char **new_argv;
char *p, *arg_buf;
int argc;
int stdin_pipe[2] = {0, 0};
if (restart_opt == 1) {
terminate_utility();
if (pipe(stdin_pipe) != 0)
err(1, "Failed to create stdin pi... | run_utility | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
int set_options(char **argv) {
int v1;
int v2;
int argc;
int ch_0;
for (argc = 1; argv[argc] && *argv[argc] == 45; ++argc)
;
while (1) {
ch_0 = getopt(argc, argv, "acdnprsz");
if (ch_0 == -1)
break;
switch (ch_0) {
case 'a':
aggressive_opt = 1;
break;
case 'c':
... | int set_options(char *argv[]) {
int ch;
int argc;
for (argc = 1; argv[argc] != 0 && argv[argc][0] == '-'; argc++)
;
while ((ch = getopt(argc, argv, "acdnprsz")) != -1) {
switch (ch) {
case 'a':
aggressive_opt = 1;
break;
case 'c':
clear_opt = clear_opt ? 2 : 1;
break;
... | set_options | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
size_t strlcpy(char *dst, const char *src, size_t siz) {
char *v3;
char *v4;
const char *v5;
const char *s;
size_t n;
s = src;
n = siz;
if (siz) {
do {
if (!--n)
break;
v3 = (char *)s++;
v4 = dst++;
*v4 = *v3;
} while (*v4);
}
if (!n) {
if (siz)
*ds... | size_t strlcpy(char *dst, const char *src, size_t siz) {
char *d = dst;
const char *s = src;
size_t n = siz;
if (n != 0) {
while (--n != 0) {
if ((*d++ = *s++) == '\0')
break;
}
}
if (n == 0) {
if (siz != 0)
*d = '\0';
while (*s++)
;
}
return (s - src - 1);
} | strlcpy | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
void terminate_utility() {
int status;
unsigned long v1;
v1 = __readfsqword(0x28u);
terminating = 1;
if (child_pid > 0) {
xkillpg(child_pid, 15);
if (xwaitpid(child_pid, &status, 0) > 0)
child_exitstatus = BYTE1(status);
child_pid = 0;
}
terminating = 0;
} | void terminate_utility() {
int status;
terminating = 1;
if (child_pid > 0) {
xkillpg(child_pid, SIGTERM);
if (xwaitpid(child_pid, &status, 0) > 0)
child_exitstatus = WEXITSTATUS(status);
child_pid = 0;
}
terminating = 0;
} | terminate_utility | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
void usage() {
fprintf(stderr, "release: %s\n", "5.1");
fwrite("usage: entr [-acdnprsz] utility [argument [/_] ...] < filenames\n",
1u, 0x40u, stderr);
exit(1);
} | void usage() {
fprintf(stderr, "release: %s\n", RELEASE);
fprintf(stderr,
"usage: entr [-acdnprsz] utility [argument [/_] ...] < filenames\n");
exit(1);
} | usage | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
void watch_file(int kq, WatchFile *file) {
int i;
timespec delay;
kevent evSet;
unsigned long v5;
v5 = __readfsqword(0x28u);
delay.tv_sec = 0;
delay.tv_nsec = 100000000;
for (i = 0; i <= 9; ++i) {
file->fd = xopen(file->fn, 0);
if (file->fd != -1)
break;
nanosleep(&delay, 0);
}
if... | void watch_file(int kq, WatchFile *file) {
struct kevent evSet;
int i;
struct timespec delay = {0, 100 * 1000000};
for (i = 0; i < 10; i++) {
#ifdef O_EVTONLY
file->fd = xopen(file->fn, O_RDONLY | O_EVTONLY);
#else
file->fd = xopen(file->fn, O_RDONLY);
#endif
if (file->fd == -1)
nanosleep(&de... | watch_file | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
void watch_loop(int kq, char **argv) {
__pid_t v2;
int v3;
const char *v4;
char c;
int nev;
int i;
int reopen_only;
int collate_only;
int do_exec;
int dir_modified;
int leading_edge_set;
WatchFile *file;
timespec evTimeout;
kevent evSet;
termios character_tty;
stat sb;
kevent evList[32... | void watch_loop(int kq, char *argv[]) {
struct kevent evSet;
struct kevent evList[32];
int nev;
WatchFile *file;
int i;
struct timespec evTimeout = {0, 1000000};
int reopen_only = !aggressive_opt;
int collate_only = 0;
int do_exec = 0;
int dir_modified = 0;
int leading_edge_set = 0;
struct stat ... | watch_loop | entr-5.1 | app-admin | O0/app-admin/entr-5.1/entr | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
char buf[1032];
unsigned long val;
char *p;
FILE *f;
f = fopen("/proc/self/maps", "r");
memset(buf, 0, 1024);
if (!f)
return 0;
while (fgets(buf, 1023, f)) {
if (strstr(buf, "[vdso]")) {
p = strchr(buf, 45);
*p = 0;
va... | int main(int argc, char *argv[]) {
#ifdef __linux__
FILE *f = fopen("/proc/self/maps", "r");
char buf[1024] = {};
if (f == NULL)
return 0;
while (fgets(buf, sizeof(buf) - 1, f)) {
if (strstr(buf, "[vdso]")) {
char *p = strchr(buf, '-');
unsigned long val;
*p = '\0';
val = strtou... | main | paxtest-0.9.15-r1 | app-admin | O0/app-admin/paxtest-0.9.15-r1/getvdso | ida | O0 |
int check_end(const char *p) {
const char *pa;
pa = p;
if (!p)
return 0;
while (((*__ctype_b_loc())[*pa] & 0x2000) != 0)
++pa;
return !*pa || *pa == 71 && pa[1] == 77 && pa[2] == 84;
} | static int check_end(const char *p) {
if (!p)
return 0;
while (isspace(*p))
++p;
if (!*p || (p[0] == 'G' && p[1] == 'M' && p[2] == 'T'))
return 1;
else
return 0;
} | check_end | cronolog-1.6.2-r5 | app-admin | O0/app-admin/cronolog-1.6.2-r5/cronolog | ida | O0 |
void create_link(char *pfilename, const char *linkname, mode_t linktype,
const char *prevlinkname) {
stat stat_buf;
unsigned long v7;
v7 = __readfsqword(0x28u);
if (!stat(prevlinkname, &stat_buf))
unlink(prevlinkname);
if (!lstat(linkname, &stat_buf)) {
if (prevlinkname)
rename... | void create_link(char *pfilename, const char *linkname, mode_t linktype,
const char *prevlinkname) {
struct stat stat_buf;
if (stat(prevlinkname, &stat_buf) == 0) {
unlink(prevlinkname);
}
if (stat(linkname, &stat_buf) == 0) {
if (prevlinkname) {
rename(linkname, prevlinkname);
... | create_link | cronolog-1.6.2-r5 | app-admin | O0/app-admin/cronolog-1.6.2-r5/cronolog | ida | O0 |
void create_subdirs(char *filename) {
size_t v1;
const char *p;
char *pa;
stat stat_buf;
char dirname[1032];
unsigned long v6;
v6 = __readfsqword(0x28u);
if (debug_file)
print_debug_msg("Creating missing components of \"%s\"\n", filename);
for (p = filename;; p = pa + 1) {
pa = strchr(p, 47);... | void create_subdirs(char *filename) {
#ifndef CHECK_ALL_PREFIX_DIRS
static char lastpath[MAX_PATH] = "";
#endif
struct stat stat_buf;
char dirname[MAX_PATH];
char *p;
DEBUG(("Creating missing components of \"%s\"\n", filename));
for (p = filename; (p = strchr(p, '/')); p++) {
if (p == filename) {
... | create_subdirs | cronolog-1.6.2-r5 | app-admin | O0/app-admin/cronolog-1.6.2-r5/cronolog | ida | O0 |
PERIODICITY determine_periodicity(char *spec) {
char *v1;
unsigned int v2;
char *v3;
char *speca;
char ch_0;
PERIODICITY periodicity;
speca = spec;
periodicity = ONCE_ONLY;
if (debug_file)
print_debug_msg("Determining periodicity of \"%s\"\n", spec);
while (1) {
v3 = speca++;
if (!*v3)
... | PERIODICITY
determine_periodicity(char *spec) {
PERIODICITY periodicity = ONCE_ONLY;
char ch;
DEBUG(("Determining periodicity of \"%s\"\n", spec));
while ((ch = *spec++) != 0) {
if (ch == '%') {
ch = *spec++;
if (!ch)
break;
switch (ch) {
case 'y':
case 'Y':
i... | determine_periodicity | cronolog-1.6.2-r5 | app-admin | O0/app-admin/cronolog-1.6.2-r5/cronolog | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int v3;
int v4;
char *v5;
char *v6;
ssize_t v7;
int result;
int period_multiple;
int period_delay;
PERIODICITY periodicity;
PERIODICITY period_delay_units;
int use_american_date_formats;
uid_t new_uid;
gid_t new_gid;
int change_uid;
... | int main(int argc, char **argv) {
PERIODICITY periodicity = UNKNOWN;
PERIODICITY period_delay_units = UNKNOWN;
int period_multiple = 1;
int period_delay = 0;
int use_american_date_formats = 0;
char read_buf[BUFSIZE];
char tzbuf[BUFSIZE];
char filename[MAX_PATH];
char *start_time = NULL;
char *templa... | main | cronolog-1.6.2-r5 | app-admin | O0/app-admin/cronolog-1.6.2-r5/cronolog | ida | O0 |
time_t mktime_from_utc(tm *t) {
struct tm *v1;
time_t tl;
time_t tb;
unsigned long v5;
v5 = __readfsqword(0x28u);
tl = mktime(t);
v1 = gmtime(&tl);
tb = mktime(v1);
if (tb < tl)
return tl - (tb - tl);
else
return tl - tb + tl;
} | time_t mktime_from_utc(struct tm *t) {
time_t tl, tb;
tl = mktime(t);
tb = mktime(gmtime(&tl));
return (tl <= tb ? (tl + (tl - tb)) : (tl - (tb - tl)));
} | mktime_from_utc | cronolog-1.6.2-r5 | app-admin | O0/app-admin/cronolog-1.6.2-r5/cronolog | ida | O0 |
int new_log_file(const char *a1, const char *linkname, mode_t linktype,
const char *prevlinkname, PERIODICITY periodicity,
int period_multiple, int period_delay, char *pfilename,
size_t pfilename_len, time_t time_now, time_t *pnext_period) {
time_t v11;
time_t v12;... | int new_log_file(const char *template, const char *linkname, mode_t linktype,
const char *prevlinkname, PERIODICITY periodicity,
int period_multiple, int period_delay, char *pfilename,
size_t pfilename_len, time_t time_now, time_t *pnext_period) {
time_t start_of_per... | new_log_file | cronolog-1.6.2-r5 | app-admin | O0/app-admin/cronolog-1.6.2-r5/cronolog | ida | O0 |
time_t parse_time(char *time_str, int use_american_date_formats) {
char **v2;
char *v3;
char **date_formats;
tm tm;
unsigned long v7;
v7 = __readfsqword(0x28u);
memset(&tm, 0, sizeof(tm));
tm.tm_isdst = -1;
if (use_american_date_formats)
v2 = american_date_formats;
else
v2 = european_date_f... | time_t parse_time(char *time_str, int use_american_date_formats) {
struct tm tm;
char **date_formats;
memset(&tm, 0, sizeof(tm));
tm.tm_isdst = -1;
for (date_formats = (use_american_date_formats ? american_date_formats
: european_date_formats);
*date_f... | parse_time | cronolog-1.6.2-r5 | app-admin | O0/app-admin/cronolog-1.6.2-r5/cronolog | ida | O0 |
PERIODICITY parse_timespec(char *optarg, int *p_period_multiple) {
char *v2;
char *v3;
PERIODICITY periodicity;
int period_multiple;
periodicity = INVALID_PERIOD;
period_multiple = 1;
while (((*__ctype_b_loc())[*optarg] & 0x2000) != 0)
++optarg;
if (((*__ctype_b_loc())[*optarg] & 0x800) != 0) {
... | PERIODICITY
parse_timespec(char *optarg, int *p_period_multiple) {
PERIODICITY periodicity = INVALID_PERIOD;
int period_multiple = 1;
char *p = optarg;
while (isspace(*p)) {
p++;
}
if (isdigit(*p)) {
period_multiple = *p++ - '0';
while (isdigit(*p)) {
period_multiple *= 10;
period... | parse_timespec | cronolog-1.6.2-r5 | app-admin | O0/app-admin/cronolog-1.6.2-r5/cronolog | ida | O0 |
void print_debug_msg(char *msg, ...) {
long v1;
long v2;
long v3;
long v4;
long v5;
va_list ap;
unsigned long v7;
long v8;
long v9;
long v10;
long v11;
long v12;
va_start(ap, msg);
v3 = va_arg(ap, _QWORD);
v1 = va_arg(ap, _QWORD);
v2 = va_arg(ap, _QWORD);
v4 = va_arg(ap, _QWORD);
v5... | void print_debug_msg(char *msg, ...) {
va_list ap;
va_start(ap, msg);
vfprintf(debug_file, msg, ap);
} | print_debug_msg | cronolog-1.6.2-r5 | app-admin | O0/app-admin/cronolog-1.6.2-r5/cronolog | ida | O0 |
time_t start_of_next_period(time_t time_now, PERIODICITY periodicity,
int period_multiple) {
time_t start_time;
switch (periodicity) {
case PER_SECOND:
start_time = time_now + 1;
break;
case PER_MINUTE:
start_time = 60 * period_multiple + time_now + 2;
break;
case ... | time_t start_of_next_period(time_t time_now, PERIODICITY periodicity,
int period_multiple) {
time_t start_time;
switch (periodicity) {
case YEARLY:
start_time = (time_now + 366 * SECS_PER_DAY + DST_ALLOWANCE);
break;
case MONTHLY:
start_time = (time_now + 31 * SECS_PER_... | start_of_next_period | cronolog-1.6.2-r5 | app-admin | O0/app-admin/cronolog-1.6.2-r5/cronolog | ida | O0 |
time_t start_of_this_period(time_t start_time, PERIODICITY periodicity,
int period_multiple) {
time_t start_timea;
char sign;
int expected_mday;
time_t adjust;
tm tm_initial;
tm tm_adjusted;
unsigned long v11;
start_timea = start_time;
v11 = __readfsqword(0x28u);
localti... | time_t start_of_this_period(time_t start_time, PERIODICITY periodicity,
int period_multiple) {
struct tm tm_initial;
struct tm tm_adjusted;
int expected_mday;
#ifndef _WIN32
localtime_r(&start_time, &tm_initial);
#else
struct tm *tempTime;
tempTime = localtime(&start_time);
i... | start_of_this_period | cronolog-1.6.2-r5 | app-admin | O0/app-admin/cronolog-1.6.2-r5/cronolog | ida | O0 |
char *timestamp(time_t thetime) {
int v1;
time_t thetimea;
char *retval;
tm *tm;
thetimea = thetime;
v1 = index_1++;
retval = &buffer_0[80 * v1];
index_1 %= 4;
tm = localtime(&thetimea);
strftime(retval, 0x50u, "%Y/%m/%d-%H:%M:%S %Z", tm);
return retval;
} | char *timestamp(time_t thetime) {
static int index = 0;
static char buffer[4][80];
struct tm *tm;
char *retval;
retval = buffer[index++];
index %= 4;
tm = localtime(&thetime);
strftime(retval, 80, "%Y/%m/%d-%H:%M:%S %Z", tm);
return retval;
} | timestamp | cronolog-1.6.2-r5 | app-admin | O0/app-admin/cronolog-1.6.2-r5/cronolog | ida | O0 |
void doit() {
char *buf;
buf = (char *)mmap(0, 0x10000u, 3, 34, -1, 0);
if (buf == (char *)-1LL) {
fwrite("mmap() returned NULL\n", 1u, 0x15u, stderr);
exit(1);
}
copy_shellcode(buf);
do_mprotect(buf, 0x10000u, 5);
((void (*)(void))buf)();
itworked();
} | void doit(void) {
char *buf;
fptr func;
buf = mmap(NULL, PAGE_SIZE_MAX, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
if (buf == MAP_FAILED) {
fprintf(stderr, "mmap() returned NULL\n");
exit(1);
}
copy_shellcode(buf);
func = (fptr)buf;
do_mprotect(buf, PAGE_SIZE_M... | doit | paxtest-0.9.15-r1 | app-admin | O0/app-admin/paxtest-0.9.15-r1/mprotanon | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
pthread_t thread;
int status;
short arg;
void (*v6)();
short v7;
short *p_arg;
int v9;
char *v10;
char *mode;
int paxtest_mode;
char v13;
v10 = &v13;
arg = -17591;
v6 = main_dummy;
v7 = -17847;
p_arg = &arg;
v9 = -1864106167;
... | int main(int argc, char *argv[]) {
int status;
char *mode;
int paxtest_mode = 1;
#ifndef __clang__
void dummy(void) {}
#endif
mode = getenv("PAXTEST_MODE");
if (mode == NULL) {
paxtest_mode = 1;
} else {
if (strcmp(mode, "0") == 0) {
paxtest_mode = 0;
} else if (strcmp(mode, "1") == ... | main | paxtest-0.9.15-r1 | app-admin | O0/app-admin/paxtest-0.9.15-r1/mprotanon | ida | O0 |
void doit() {
copy_shellcode(buf);
do_mprotect(buf, (size_t)&stdout, 5);
(*(void (**)(void))buf)();
do_mprotect(buf, (size_t)&stdout, 3);
itworked();
} | void doit(void) {
fptr func;
copy_shellcode(buf);
func = (fptr)&buf;
do_mprotect(&buf, sizeof(buf), PROT_READ | PROT_EXEC);
func();
do_mprotect(&buf, sizeof(buf), PROT_READ | PROT_WRITE);
itworked();
} | doit | paxtest-0.9.15-r1 | app-admin | O0/app-admin/paxtest-0.9.15-r1/mprotbss | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
pthread_t thread;
int status;
short arg;
void (*v6)();
short v7;
short *p_arg;
int v9;
char *v10;
char *mode;
int paxtest_mode;
char v13;
v10 = &v13;
arg = -17591;
v6 = main_dummy;
v7 = -17847;
p_arg = &arg;
v9 = -1864106167;
... | int main(int argc, char *argv[]) {
int status;
char *mode;
int paxtest_mode = 1;
#ifndef __clang__
void dummy(void) {}
#endif
mode = getenv("PAXTEST_MODE");
if (mode == NULL) {
paxtest_mode = 1;
} else {
if (strcmp(mode, "0") == 0) {
paxtest_mode = 0;
} else if (strcmp(mode, "1") == ... | main | paxtest-0.9.15-r1 | app-admin | O0/app-admin/paxtest-0.9.15-r1/mprotbss | ida | O0 |
void doit() {
char *buf;
buf = (char *)malloc(0xCu);
if (!buf) {
fwrite("Out of memory\n", 1u, 0xEu, stderr);
exit(1);
}
copy_shellcode(buf);
do_mprotect(buf, 0xCu, 5);
((void (*)(char *))buf)(buf);
do_mprotect(buf, 0xCu, 3);
itworked();
} | void doit(void) {
char *buf;
fptr func;
buf = malloc(MAX_SHELLCODE_LEN);
if (buf == NULL) {
fprintf(stderr, "Out of memory\n");
exit(1);
}
copy_shellcode(buf);
do_mprotect(buf, MAX_SHELLCODE_LEN, PROT_READ | PROT_EXEC);
func = (fptr)buf;
func();
do_mprotect(buf, MAX_SHELLCODE_LEN, PROT... | doit | paxtest-0.9.15-r1 | app-admin | O0/app-admin/paxtest-0.9.15-r1/mprotheap | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
pthread_t thread;
int status;
short arg;
void (*v6)();
short v7;
short *p_arg;
int v9;
char *v10;
char *mode;
int paxtest_mode;
char v13;
v10 = &v13;
arg = -17591;
v6 = main_dummy;
v7 = -17847;
p_arg = &arg;
v9 = -1864106167;
... | int main(int argc, char *argv[]) {
int status;
char *mode;
int paxtest_mode = 1;
#ifndef __clang__
void dummy(void) {}
#endif
mode = getenv("PAXTEST_MODE");
if (mode == NULL) {
paxtest_mode = 1;
} else {
if (strcmp(mode, "0") == 0) {
paxtest_mode = 0;
} else if (strcmp(mode, "1") == ... | main | paxtest-0.9.15-r1 | app-admin | O0/app-admin/paxtest-0.9.15-r1/mprotheap | ida | O0 |
gchar *callback_arp() {
char *v0;
char *v1;
char *v2;
const char *v3;
char *v4;
v0 = gettext("MAC Address");
v1 = gettext("Interface");
v2 = gettext("IP Address");
v3 = _arp_table;
v4 = gettext("ARP Table");
return (gchar *)g_strdup_printf("[%s]\n"
"%s\n"
... | gchar *callback_arp() {
return g_strdup_printf("[%s]\n"
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=%s\n"
"ColumnTitle$Value=%s\n"
"ColumnT... | callback_arp | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/network.so | ida | O0 |
gchar *callback_connections() {
char *v0;
char *v1;
char *v2;
char *v3;
const char *v4;
char *v5;
v0 = gettext("State");
v1 = gettext("Foreign Address");
v2 = gettext("Protocol");
v3 = gettext("Local Address");
v4 = _connections;
v5 = gettext("Connections");
return (gchar *)g_strdup_printf("[... | gchar *callback_connections() {
return g_strdup_printf("[%s]\n"
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=%s\n"
"ColumnTitle$Value=%s\n"
... | callback_connections | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/network.so | ida | O0 |
gchar *callback_dns() {
char *v0;
char *v1;
const char *v2;
char *v3;
v0 = gettext("Name");
v1 = gettext("IP Address");
v2 = _nameservers;
v3 = gettext("Name Servers");
return (gchar *)g_strdup_printf(
"[%s]\n%s\n[$ShellParam$]\nColumnTitle$TextValue=%s\nColumnTitle$Value=%"
"s\nShowColum... | gchar *callback_dns() {
return g_strdup_printf("[%s]\n"
"%s\n"
"[$ShellParam$]\n"
"ColumnTitle$TextValue=%s\n"
"ColumnTitle$Value=%s\n"
"ShowColumnHeaders=true\n",
_("N... | callback_dns | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/network.so | ida | O0 |
gchar *callback_network() {
const char *v0;
char *v1;
char *v2;
char *v3;
char *v4;
v0 = network_icons;
v1 = gettext("Received");
v2 = gettext("Sent");
v3 = gettext("IP Address");
v4 = gettext("Interface");
return (gchar *)g_strdup_printf("%s\n"
"[$ShellParam$]\n... | gchar *callback_network() {
return g_strdup_printf("%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ViewType=1\n"
"ColumnTitle$TextValue=%s\n"
"ColumnTitle$Value=%s\n"
... | callback_network | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/network.so | ida | O0 |
gchar *callback_route() {
char *v0;
char *v1;
char *v2;
char *v3;
const char *v4;
char *v5;
v0 = gettext("Mask");
v1 = gettext("Flags");
v2 = gettext("Interface");
v3 = gettext("Destination/Gateway");
v4 = _routing_table;
v5 = gettext("IP routing table");
return (gchar *)g_strdup_printf("[%s]... | gchar *callback_route() {
return g_strdup_printf("[%s]\n"
"%s\n"
"[$ShellParam$]\n"
"ViewType=0\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=%s\n"
"ColumnTitle$Val... | callback_route | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/network.so | ida | O0 |
gchar *callback_shares() {
const char *v0;
char *v1;
const char *v2;
char *v3;
v0 = nfs_shares_list;
v1 = gettext("NFS");
v2 = smb_shares_list;
v3 = gettext("SAMBA");
return (gchar *)g_strdup_printf("[%s]\n%s\n[%s]\n%s", v3, v2, v1, v0);
} | gchar *callback_shares() {
return g_strdup_printf("[%s]\n"
"%s\n"
"[%s]\n"
"%s",
_("SAMBA"), smb_shares_list, _("NFS"),
nfs_shares_list);
} | callback_shares | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/network.so | ida | O0 |
gchar *callback_statistics() {
return (gchar *)g_strdup_printf("%s\n[$ShellParam$]\nReloadInterval=3000\n",
_statistics);
} | gchar *callback_statistics() {
return g_strdup_printf("%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n",
__statistics);
} | callback_statistics | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/network.so | ida | O0 |
void get_net_info(char *if_name, NetInfo *netinfo) {
char *v2;
char *v3;
char *v4;
int fd;
ifreq ifr;
unsigned long v7;
v7 = __readfsqword(0x28u);
fd = socket(2, 2, 0);
ifr.ifr_ifru.ifru_addr.sa_family = 2;
strncpy(netinfo->name, if_name, 0x10u);
strcpy(ifr.ifr_ifrn.ifrn_name, if_name);
if (ioc... | void get_net_info(char *if_name, NetInfo *netinfo) {
struct ifreq ifr;
int fd;
fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_IP);
ifr.ifr_addr.sa_family = AF_INET;
strncpy(netinfo->name, if_name, sizeof(netinfo->name));
strcpy(ifr.ifr_name, if_name);
if (ioctl(fd, SIOCGIFMTU, &ifr) < 0) {
netinfo->mtu =... | get_net_info | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/network.so | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.