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
void nice_name_intel_gpu_device(char *pci_ids_device_string) { long v1; while (str_shorten_anycase(pci_ids_device_string, "(R)", &byte_5E616)) ; str_shorten(pci_ids_device_string, "Graphics Controller", "Graphics"); str_shorten(pci_ids_device_string, "Graphics Device", "Graphics"); str_shorten(pci_ids_de...
void nice_name_intel_gpu_device(char *pci_ids_device_string) { while (str_shorten_anycase(pci_ids_device_string, "(R)", "")) { }; str_shorten(pci_ids_device_string, "Graphics Controller", "Graphics"); str_shorten(pci_ids_device_string, "Graphics Device", "Graphics"); str_shorten(pci_ids_device_string, "Genera...
nice_name_intel_gpu_device
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void nice_name_x86_cpuid_model_string(char *cpuid_model_string) { long v1; long v2; unsigned int i; int l_1; char *radeon; char *u; __int128 intel; char *comma; char *dash; char *m; char buffer[40]; unsigned long v12; v12 = __readfsqword(0x28u); if (cpuid_model_string) { v1 = g_strchug(...
void nice_name_x86_cpuid_model_string(char *cpuid_model_string) { static gboolean move_vendor_to_front = TRUE; static gboolean remove_long_core_count = TRUE; static gboolean remove_amd_compute_cores = TRUE; static gboolean remove_amd_xn_ncore_redundancy = TRUE; static gboolean remove_processor_cpu_apu_etc = T...
nice_name_x86_cpuid_model_string
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void nonblock_sleep(guint msec) { g_timeout_add(msec, _nonblock_cb, 0); gtk_main(msec); }
void nonblock_sleep(guint msec) { g_timeout_add(msec, (GSourceFunc)__nonblock_cb, NULL); gtk_main(); }
nonblock_sleep
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean note_cond_bullet(gboolean cond, gchar *note_buff, const gchar *desc_str) { const char *v3; int l; l = strlen(note_buff); if (params.markup_ok) { if (cond) v3 = bullet_yes; else v3 = bullet_no; } else if (cond) { v3 = "[X]"; } else { v3 = "[ ]";...
gboolean note_cond_bullet(gboolean cond, gchar *note_buff, const gchar *desc_str) { int l = strlen(note_buff); if (params.markup_ok) snprintf(note_buff + l, note_max_len - l - 1, "%s %s\n", cond ? bullet_yes : bullet_no, desc_str); else snprintf(note_buff + l, note_m...
note_cond_bullet
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
ShellNote *note_new() { long type; long v1; long v2; long v3; GtkWidget *image; long v5; long v6; long v7; long v8; long v9; long v10; long v11; GtkWidget *label; long v13; long v14; long v15; long v16; long v17; long v18; long v19; long v20; ShellNote *note; GtkWidget *but...
static ShellNote *note_new(void) { ShellNote *note; GtkWidget *hbox, *icon, *button; GtkWidget *border_box; GdkColor info_default_border_color = {0, 0xb800, 0xad00, 0x9d00}; GdkColor info_default_fill_color = {0, 0xff00, 0xff00, 0xbf00}; note = g_new0(ShellNote, 1); note->label = gtk_label_new(""); no...
note_new
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean note_require_tool(const gchar *tool, gchar *note_buff, const gchar *desc_str) { gboolean found; gchar *tl; tl = find_program((gchar *)tool); found = note_cond_bullet(tl != 0, note_buff, desc_str); g_free(tl); return found; }
gboolean note_require_tool(const gchar *tool, gchar *note_buff, const gchar *desc_str) { gchar *tl = find_program((gchar *)tool); gboolean found = note_cond_bullet(!!tl, note_buff, desc_str); g_free(tl); return found; }
note_require_tool
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean nv_fill_procfs_info(gpud *s) { long v1; nvgpu *nv_info; nvgpu *v3; nvgpu *v4; gchar *data; gchar *p; gchar *pci_loc; gchar *nvi_file; gchar *next_nl; gchar *l; unsigned long v12; v12 = __readfsqword(0x28u); pci_loc = pci_address_str(s->pci_dev->domain, s->pci_dev->bus, ...
static gboolean nv_fill_procfs_info(gpud *s) { gchar *data, *p, *l, *next_nl; gchar *pci_loc = pci_address_str(s->pci_dev->domain, s->pci_dev->bus, s->pci_dev->device, s->pci_dev->function); gchar *nvi_file = g_strdup_printf("/proc/driver/nvidia/gpus/%s/information", pci_l...
nv_fill_procfs_info
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void nvgpu_free(nvgpu *s) { if (s) { free(s->model); free(s->bios_version); free(s->uuid); } }
void nvgpu_free(nvgpu *s) { if (s) { free(s->model); free(s->bios_version); free(s->uuid); } }
nvgpu_free
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
nvgpu *nvgpu_new() { return (nvgpu *)g_malloc0_n(1, 24); }
nvgpu *nvgpu_new() { return g_new0(nvgpu, 1); }
nvgpu_new
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void parameters_init(int *argc, char ***argv, ProgramParameters *param) { char *v3; char *v4; char *v5; long user_config_dir; GOptionContext *ctx; char *p; gchar *confdir; v3 = gettext("- System Profiler and Benchmark tool"); ctx = (GOptionContext *)g_option_context_new(v3); g_option_context_set_ig...
void parameters_init(int *argc, char ***argv, ProgramParameters *param) { static gboolean create_report = FALSE; static gboolean force_all_details = FALSE; static gboolean show_version = FALSE; static gboolean list_modules = FALSE; static gboolean autoload_deps = FALSE; static gboolean run_xmlrpc_server = F...
parameters_init
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
char *pci_address_str(uint32_t dom, uint32_t bus, uint32_t dev, uint32_t func) { return g_strdup_printf("%04x:%02x:%02x.%01x", dom, bus, dev, func); }
char *pci_address_str(uint32_t dom, uint32_t bus, uint32_t dev, uint32_t func) { return g_strdup_printf("%04x:%02x:%02x.%01x", dom, bus, dev, func); }
pci_address_str
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean pci_fill_details(pcid *s) { long v1; gboolean spawned; gchar *out; gchar *err; gchar *p; gchar *pci_loc; gchar *lspci_cmd; gchar *next_nl; gchar *l; unsigned long v11; v11 = __readfsqword(0x28u); pci_loc = pci_address_str(s->domain, s->bus, s->device, s->function); lspci_cmd = g_strd...
static gboolean pci_fill_details(pcid *s) { if (nolspci) return FALSE; gboolean spawned; gchar *out, *err, *p, *l, *next_nl; gchar *pci_loc = pci_address_str(s->domain, s->bus, s->device, s->function); gchar *lspci_cmd = g_strdup_printf("lspci -D -s %s -vvv", pci_loc); spawned = hardinfo_spawn_command_...
pci_fill_details
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
pcid *pci_get_device(uint32_t dom, uint32_t bus, uint32_t dev, uint32_t func) { gboolean ok; pcid *s; s = (pcid *)g_malloc0_n(1, 120); if (s) { ok = pci_get_device_sysfs(dom, bus, dev, func, s); if (ok) { ok |= pci_lookup_ids(s); if (!ok) ok = pci_get_device_lspci(dom, bus, dev, fun...
pcid *pci_get_device(uint32_t dom, uint32_t bus, uint32_t dev, uint32_t func) { pcid *s = pcid_new(); gboolean ok = FALSE; if (s) { ok = pci_get_device_sysfs(dom, bus, dev, func, s); if (ok) { ok |= pci_lookup_ids(s); if (!ok) ok |= pci_get_device_lspci(dom, bus, dev, func, s); } ...
pci_get_device
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
pcid_list pci_get_device_list(uint32_t class_min, uint32_t class_max) { GSList *dl_0; dl_0 = pci_get_device_list_sysfs(class_min, class_max); if (!dl_0) return pci_get_device_list_lspci(class_min, class_max); return dl_0; }
pcid_list pci_get_device_list(uint32_t class_min, uint32_t class_max) { pcid_list dl = NULL; dl = pci_get_device_list_sysfs(class_min, class_max); if (!dl) dl = pci_get_device_list_lspci(class_min, class_max); return dl; }
pci_get_device_list
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
pcid_list pci_get_device_list_lspci(uint32_t class_min, uint32_t class_max) { uint32_t class_maxa; uint32_t dom; uint32_t bus; uint32_t dev; uint32_t func; uint32_t cls; int ec; gchar *out; gchar *err; gchar *p; pcid_list dl_0; gchar *next_nl; pcid *nd; unsigned long v17; class_maxa = cla...
static pcid_list pci_get_device_list_lspci(uint32_t class_min, uint32_t class_max) { if (nolspci) return NULL; gboolean spawned; gchar *out, *err, *p, *next_nl; pcid_list dl = NULL; pcid *nd; uint32_t dom, bus, dev, func, cls; int ec; if (class_max == 0) ...
pci_get_device_list_lspci
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
pcid_list pci_get_device_list_sysfs(uint32_t class_min, uint32_t class_max) { uint32_t class_maxa; uint32_t dom; uint32_t bus; uint32_t dev; uint32_t func; int ec; uint32_t cls; gchar *cstr; pcid_list dl_0; const gchar *f; GDir *d; gchar *cf_0; pcid *nd; unsigned long v16; class_maxa = cl...
static pcid_list pci_get_device_list_sysfs(uint32_t class_min, uint32_t class_max) { pcid_list dl = NULL; pcid *nd; uint32_t dom, bus, dev, func, cls; int ec; if (class_max == 0) class_max = 0xffff; const gchar *f = NULL; GDir *d = g_dir_open("/sys/bus/pci/...
pci_get_device_list_sysfs
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean pci_get_device_lspci(uint32_t dom, uint32_t bus, uint32_t dev, uint32_t func, pcid *s) { long v5; gboolean spawned; gchar *out; gchar *err; gchar *p; gchar *pci_loc; gchar *lspci_cmd; gchar *next_nl; gchar *l; unsigned long v18; v18 = __readfsqword(0x28u); ...
static gboolean pci_get_device_lspci(uint32_t dom, uint32_t bus, uint32_t dev, uint32_t func, pcid *s) { if (nolspci) return FALSE; gboolean spawned; gchar *out, *err, *p, *l, *next_nl; gchar *pci_loc = pci_address_str(dom, bus, dev, func); gchar *lspci_cmd = g_strdup_...
pci_get_device_lspci
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
pcid *pci_get_device_str(const char *addy) { uint32_t dom; uint32_t bus; uint32_t dev; uint32_t func; int ec; unsigned long v7; v7 = __readfsqword(0x28u); if (addy && (ec = __isoc99_sscanf(addy, "%x:%x:%x.%x", &dom, &bus, &dev, &func), ec == 4)) return pci_get_device(dom, bus, dev, fun...
pcid *pci_get_device_str(const char *addy) { uint32_t dom, bus, dev, func; int ec; if (addy) { ec = sscanf(addy, "%x:%x:%x.%x", &dom, &bus, &dev, &func); if (ec == 4) { return pci_get_device(dom, bus, dev, func); } } return NULL; }
pci_get_device_str
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean pci_get_device_sysfs(uint32_t dom, uint32_t bus, uint32_t dev, uint32_t func, pcid *s) { char *slot_str; float tf_0; int ec; char *tmp; unsigned long v13; v13 = __readfsqword(0x28u); tmp = 0; ec = 0; s->domain = dom; s->bus = bus; s->device = dev; s->funct...
static gboolean pci_get_device_sysfs(uint32_t dom, uint32_t bus, uint32_t dev, uint32_t func, pcid *s) { char *tmp = NULL; int ec = 0; float tf; s->domain = dom; s->bus = bus; s->device = dev; s->function = func; s->slot_str = s->slot_str ? s->slot_str : pci_ad...
pci_get_device_sysfs
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean pci_lookup_ids(pcid *d) { gboolean ret; gchar *qpath; gchar *qpatha; gchar *qpathb; ids_query_result result; unsigned long v7; v7 = __readfsqword(0x28u); ret = 0; memset(&result, 0, sizeof(result)); if (!find_pci_ids_file()) return 0; qpath = g_strdup_printf("%04x/%04x/%04x %04x", d-...
static gboolean pci_lookup_ids(pcid *d) { gboolean ret = FALSE; ids_query_result result = {}; gchar *qpath; if (!find_pci_ids_file()) return FALSE; qpath = g_strdup_printf("%04x/%04x/%04x %04x", d->vendor_id, d->device_id, d->sub_vendor_id, d->sub_device_id); scan_ids_file(pc...
pci_lookup_ids
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
char *pci_lookup_ids_vendor_str(uint32_t id) { char *ret; gchar *qpath; ids_query_result result; unsigned long v5; v5 = __readfsqword(0x28u); ret = 0; memset(&result, 0, sizeof(result)); if (!find_pci_ids_file()) return 0; qpath = g_strdup_printf("%04x", id); scan_ids_file(pci_ids_file, qpath, ...
char *pci_lookup_ids_vendor_str(uint32_t id) { gchar *ret = NULL; ids_query_result result = {}; gchar *qpath; if (!find_pci_ids_file()) return FALSE; qpath = g_strdup_printf("%04x", id); scan_ids_file(pci_ids_file, qpath, &result, -1); if (result.results[0]) { ret = g_strdup(result.results[0]);...
pci_lookup_ids_vendor_str
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gint pcid_cmp_by_addy(const pcid *a, const pcid *b) { if (a && b) return g_strcmp0(a->slot_str, b->slot_str); else return (a != 0) - (b != 0); }
gint pcid_cmp_by_addy(const pcid *a, const pcid *b) { if (!a || !b) return (!!a - !!b); return g_strcmp0(a->slot_str, b->slot_str); }
pcid_cmp_by_addy
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void pcid_free(pcid *s) { if (s) { g_free(s->slot_str); g_free(s->class_str); g_free(s->vendor_id_str); g_free(s->device_id_str); g_free(s->sub_vendor_id_str); g_free(s->sub_device_id_str); g_free(s->driver); g_free(s->driver_list); g_free(s); } }
void pcid_free(pcid *s) { if (s) { g_free(s->slot_str); g_free(s->class_str); g_free(s->vendor_id_str); g_free(s->device_id_str); g_free(s->sub_vendor_id_str); g_free(s->sub_device_id_str); g_free(s->driver); g_free(s->driver_list); g_free(s); } }
pcid_free
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void populate_store(GtkListStore *store) { char *v1; GSList *entry; SyncEntry *e; GtkTreeIter iter; unsigned long v5; v5 = __readfsqword(0x28u); gtk_list_store_clear(store); for (entry = entries_0; entry; entry = entry->next) { e = (SyncEntry *)entry->data; *((_DWORD *)entry->data + 6) = 1; ...
static void populate_store(GtkListStore *store) { GSList *entry; SyncEntry *e; gtk_list_store_clear(store); for (entry = entries; entry; entry = entry->next) { GtkTreeIter iter; e = (SyncEntry *)entry->data; e->selected = TRUE; gtk_list_store_append(store, &iter); gtk_list_store_set(sto...
populate_store
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gint priority(char operation) { gint result; if (operation > 47) { if (operation == 94) return 3; return 0; } if (operation < 40) return 0; switch (operation) { case '(': result = 0; break; case '*': case '/': result = 2; break; case '+': case '-': result = 1; ...
static inline gint priority(char operation) { switch (operation) { case '^': return 3; case '*': case '/': return 2; case '+': case '-': return 1; case '(': return 0; } return 0; }
priority
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
const char *problem_marker() { if (params.markup_ok) return as_markup_1; else return "(!)"; }
const char *problem_marker() { static const char as_markup[] = "<big><b>\u26A0</b></big>"; static const char as_text[] = "(!)"; if (params.markup_ok) return as_markup; else return as_text; }
problem_marker
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
int processor_has_flag(gchar *strflags, gchar *strflag) { gint ret; gchar **flags; if (!strflags || !strflag) return 0; flags = (gchar **)g_strsplit(strflags, " ", 0); ret = g_strv_contains(flags, strflag); g_strfreev(flags); return ret; }
int processor_has_flag(gchar *strflags, gchar *strflag) { gchar **flags; gint ret = 0; if (strflags == NULL || strflag == NULL) return 0; flags = g_strsplit(strflags, " ", 0); ret = g_strv_contains((const gchar *const *)flags, strflag); g_strfreev(flags); return ret; }
processor_has_flag
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
int query_list_count_found(ids_query_list query_list) { int count; count = 0; while (query_list) { if (*((_QWORD *)query_list->data + 1)) ++count; query_list = query_list->next; } return count; }
int query_list_count_found(ids_query_list query_list) { long count = 0; for (GSList *l = query_list; l; l = l->next) { ids_query *q = l->data; if (q->result.results[0]) count++; } return count; }
query_list_count_found
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
uint32_t r16be(edid *e, uint32_t offset, uint32_t mask) { if (bounds_check(e, offset + 1)) return bf_value((*((unsigned char *)e->data + offset) << 8) + *((unsigned char *)e->data + offset + 1), mask); else return 0; }
static inline uint32_t r16be(edid *e, uint32_t offset, uint32_t mask) { if (!bounds_check(e, offset + 1)) return 0; uint32_t v = (e->u8[offset] << 8) + e->u8[offset + 1]; return bf_value(v, mask); }
r16be
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
uint32_t r16le(edid *e, uint32_t offset, uint32_t mask) { if (bounds_check(e, offset + 1)) return bf_value((*((unsigned char *)e->data + offset + 1) << 8) + *((unsigned char *)e->data + offset), mask); else return 0; }
static inline uint32_t r16le(edid *e, uint32_t offset, uint32_t mask) { if (!bounds_check(e, offset + 1)) return 0; uint32_t v = (e->u8[offset + 1] << 8) + e->u8[offset]; return bf_value(v, mask); }
r16le
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
uint32_t r24le(edid *e, uint32_t offset, uint32_t mask) { if (bounds_check(e, offset + 2)) return bf_value((*((unsigned char *)e->data + offset + 1) << 8) + (*((unsigned char *)e->data + offset + 2) << 16) + *((unsigned char *)e->data + offset), ...
static inline uint32_t r24le(edid *e, uint32_t offset, uint32_t mask) { if (!bounds_check(e, offset + 2)) return 0; uint32_t v = (e->u8[offset + 2] << 16) + (e->u8[offset + 1] << 8) + e->u8[offset]; return bf_value(v, mask); }
r24le
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
uint32_t r32le(edid *e, uint32_t offset, uint32_t mask) { if (bounds_check(e, offset + 3)) return bf_value((*((unsigned char *)e->data + offset + 1) << 8) + (*((unsigned char *)e->data + offset + 2) << 16) + (*((unsigned char *)e->data + offset + 3) << 24) + ...
static inline uint32_t r32le(edid *e, uint32_t offset, uint32_t mask) { if (!bounds_check(e, offset + 3)) return 0; uint32_t v = (e->u8[offset + 3] << 24) + (e->u8[offset + 2] << 16) + (e->u8[offset + 1] << 8) + e->u8[offset]; return bf_value(v, mask); }
r32le
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
int read_from_vendor_conf(const char *path) { gint i; gint count; GKeyFile *vendors_file; Vendor *v; gchar *tmp; count = 0; vendors_file = (GKeyFile *)g_key_file_new(); if ((unsigned int)g_key_file_load_from_file(vendors_file, path, 0, 0)) { for (i = g_key_file_get_integer(vendors_file, "vendors", ...
static int read_from_vendor_conf(const char *path) { GKeyFile *vendors_file; gchar *tmp; gint num_vendors, i, count = 0; DEBUG("using vendor.conf format loader for %s", path); vendors_file = g_key_file_new(); if (g_key_file_load_from_file(vendors_file, path, 0, NULL)) { num_vendors = g_key_fil...
read_from_vendor_conf
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
int read_from_vendor_ids(const char *path) { long v2; long v3; long v4; long v5; long v6; long v7; long v8; int name_rule_count; int count; int tl; int line; int ok; int mrule; char *p; FILE *fd; char *b; char *ba; Vendor *v; char vars[7][128]; char buff[136]; unsigned long v22...
static int read_from_vendor_ids(const char *path) { #define VEN_BUFF_SIZE 128 #define VEN_FFWD() \ while (isspace((unsigned char)*p)) \ p++; #define VEN_CHK(TOK) (strncmp(p, TOK, tl = strlen(TOK)) == 0 && (ok = 1...
read_from_vendor_ids
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean reload_section(gpointer data) { long type; long v2; long v3; long v4; long v5; long v6; long v7; GtkTreePath *path; GdkWindow *gdk_window; GtkTreeIter iter; unsigned long v12; v12 = __readfsqword(0x28u); type = gtk_widget_get_type(data); v2 = g_type_check_instance_cast(shell->windo...
static gboolean reload_section(gpointer data) { ShellModuleEntry *entry = (ShellModuleEntry *)data; #if GTK_CHECK_VERSION(2, 14, 0) GdkWindow *gdk_window = gtk_widget_get_window(GTK_WIDGET(shell->window)); #endif if (entry->selected) { GtkTreePath *path = NULL; GtkTreeIter iter; double pos_info_scrol...
reload_section
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void remove_linefeed(gchar *str) { strend(str, 10); }
void remove_linefeed(gchar *str) { strend(str, '\n'); }
remove_linefeed
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean remove_module_methods(gpointer key, gpointer value, gpointer data) { return g_str_has_prefix(key, data); }
static gboolean remove_module_methods(gpointer key, gpointer value, gpointer data) { return g_str_has_prefix(key, data); }
remove_module_methods
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void remove_quotes(gchar *str) { gchar *v1; gchar *stra; stra = str; if (str) { while (*stra == 34) { v1 = stra++; *v1 = 32; } strend(stra, 34); } }
void remove_quotes(gchar *str) { if (!str) return; while (*str == '"') *(str++) = ' '; strend(str, '"'); }
remove_quotes
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_context_configure(ReportContext *ctx, GKeyFile *keyfile) { long v2; long v3; gint i; gchar **keys; gchar *key; gchar *ikey; gchar *tag; gchar *icon; char *title; gchar *titlea; gchar *value; if (ctx->icon_refs) { g_hash_table_remove_all(ctx->icon_refs); ctx->icon_refs = 0; ...
void report_context_configure(ReportContext *ctx, GKeyFile *keyfile) { gchar **keys; const gchar *group = "$ShellParam$"; if (ctx->icon_refs) { g_hash_table_remove_all(ctx->icon_refs); ctx->icon_refs = NULL; } ctx->icon_refs = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); k...
report_context_configure
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_context_free(ReportContext *ctx) { g_hash_table_destroy(ctx->column_titles); if (ctx->icon_refs) g_hash_table_destroy(ctx->icon_refs); if (ctx->icon_data) g_hash_table_destroy(ctx->icon_data); g_free(ctx->output); g_free(ctx); }
void report_context_free(ReportContext *ctx) { g_hash_table_destroy(ctx->column_titles); if (ctx->icon_refs) g_hash_table_destroy(ctx->icon_refs); if (ctx->icon_data) g_hash_table_destroy(ctx->icon_data); g_free(ctx->output); g_free(ctx); }
report_context_free
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
ReportContext *report_context_html_new() { ReportContext *ctx; ctx = (ReportContext *)g_malloc0_n(1, 144); ctx->header = (void (*)(ReportContext *))report_html_header; ctx->footer = (void (*)(ReportContext *))report_html_footer; ctx->title = (void (*)(ReportContext *, gchar *))report_html_title; ctx->subti...
ReportContext *report_context_html_new() { ReportContext *ctx; ctx = g_new0(ReportContext, 1); ctx->header = report_html_header; ctx->footer = report_html_footer; ctx->title = report_html_title; ctx->subtitle = report_html_subtitle; ctx->subsubtitle = report_html_subsubtitle; ctx->keyvalue = report_htm...
report_context_html_new
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
ReportContext *report_context_shell_new() { ReportContext *ctx; ctx = (ReportContext *)g_malloc0_n(1, 144); ctx->header = (void (*)(ReportContext *))report_text_header; ctx->footer = (void (*)(ReportContext *))report_text_footer; ctx->title = (void (*)(ReportContext *, gchar *))report_text_title; ctx->subt...
ReportContext *report_context_shell_new() { ReportContext *ctx; ctx = g_new0(ReportContext, 1); ctx->header = report_text_header; ctx->footer = report_text_footer; ctx->title = report_text_title; ctx->subtitle = report_text_subtitle; ctx->output = g_strdup(""); ctx->format = REPORT_FORMAT_SHELL; c...
report_context_shell_new
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
ReportContext *report_context_text_new() { ReportContext *ctx; ctx = (ReportContext *)g_malloc0_n(1, 144); ctx->header = (void (*)(ReportContext *))report_text_header; ctx->footer = (void (*)(ReportContext *))report_text_footer; ctx->title = (void (*)(ReportContext *, gchar *))report_text_title; ctx->subti...
ReportContext *report_context_text_new() { ReportContext *ctx; ctx = g_new0(ReportContext, 1); ctx->header = report_text_header; ctx->footer = report_text_footer; ctx->title = report_text_title; ctx->subtitle = report_text_subtitle; ctx->subsubtitle = report_text_subsubtitle; ctx->keyvalue = report_tex...
report_context_text_new
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_create_from_module_list(ReportContext *ctx, GSList *modules) { if (ctx->format == REPORT_FORMAT_HTML) params.fmt_opts = 0x40000; report_header(ctx); report_create_inner_from_module_list(ctx, modules); report_module_list_free(modules); report_footer(ctx); }
void report_create_from_module_list(ReportContext *ctx, GSList *modules) { if (ctx->format == REPORT_FORMAT_HTML) params.fmt_opts = FMT_OPT_HTML; report_header(ctx); report_create_inner_from_module_list(ctx, modules); report_module_list_free(modules); report_footer(ctx); }
report_create_from_module_list
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gchar *report_create_from_module_list_format(GSList *modules, ReportFormat format) { long (*create_context)(void); ReportContext *ctx; gchar *retval; if ((unsigned int)format > REPORT_FORMAT_SHELL) return 0; create_context = (long (*)(void))file_types[format]....
gchar *report_create_from_module_list_format(GSList *modules, ReportFormat format) { ReportContext *(*create_context)(); ReportContext *ctx; gchar *retval; if (format >= N_REPORT_FORMAT) return NULL; create_context = file_types[format].data; if (!create_con...
report_create_from_module_list_format
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_create_inner_from_module_list(ReportContext *ctx, GSList *modules) { gchar *v2; GSList *entries; ShellModule *module; ShellModuleEntry *entry; while (modules) { module = (ShellModule *)modules->data; if (!params.gui_running) fprintf(stderr, "\x1B[40;32m%s\x1B[0m\n", module->name); ...
static void report_create_inner_from_module_list(ReportContext *ctx, GSList *modules) { for (; modules; modules = modules->next) { ShellModule *module = (ShellModule *)modules->data; GSList *entries; if (!params.gui_running) fprintf(stderr, "\033[40;...
report_create_inner_from_module_list
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
GSList *report_create_module_list_from_dialog(ReportDialog *rd) { GSList *v1; gboolean selected; gint i; gint children; gchar *name; ShellModuleEntry *entry; GSList *modules; GtkTreeModel *model; ShellModule *module; GtkTreeIter iter; GtkTreeIter child; unsigned long v13; v13 = __readfsqword(...
static GSList *report_create_module_list_from_dialog(ReportDialog *rd) { ShellModule *module; GSList *modules = NULL; GtkTreeModel *model = rd->model; GtkTreeIter iter; gtk_tree_model_get_iter_first(model, &iter); do { gboolean selected; gchar *name; gtk_tree_model_get(model, &iter, TREE_COL_S...
report_create_module_list_from_dialog
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_details(ReportContext *ctx, gchar *key, gchar *value, gchar *details, gsize longest_key) { size_t v5; size_t v6; gsize v7; gint i; gint j; gint ja; gchar *lbl; gsize longest_key_0; gchar *value_0; GKeyFile *key_file; gchar **groups; gchar *group; gchar *tmpgroup...
void report_details(ReportContext *ctx, gchar *key, gchar *value, gchar *details, gsize longest_key) { GKeyFile *key_file = g_key_file_new(); gchar **groups; gint i; report_details_start(ctx, key, value, longest_key); ctx->in_details = TRUE; g_key_file_load_from_data(key_file, details,...
report_details
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_details_end(ReportContext *ctx) { ctx->details_end(ctx); }
void report_details_end(ReportContext *ctx) { ctx->details_end(ctx); }
report_details_end
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_details_keyvalue(ReportContext *ctx, gchar *key, gchar *value, gsize longest_key) { long v4; ((void (*)(ReportContext *, gchar *, gchar *, gsize, void (*)(ReportContext *, gchar *, gchar *, gsize), long, gsize, gchar *, gchar *, ReportContext *))ct...
void report_details_keyvalue(ReportContext *ctx, gchar *key, gchar *value, gsize longest_key) { ctx->details_keyvalue(ctx, key, value, longest_key); }
report_details_keyvalue
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_details_section(ReportContext *ctx, gchar *label) { ctx->details_section(ctx, label); }
void report_details_section(ReportContext *ctx, gchar *label) { ctx->details_section(ctx, label); }
report_details_section
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_details_start(ReportContext *ctx, gchar *key, gchar *value, gsize longest_key) { long v4; ((void (*)(ReportContext *, gchar *, gchar *, gsize, void (*)(ReportContext *, gchar *, gchar *, gsize), long, gsize, gchar *, gchar *, ReportContext *))ctx->det...
void report_details_start(ReportContext *ctx, gchar *key, gchar *value, gsize longest_key) { ctx->details_start(ctx, key, value, longest_key); }
report_details_start
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
ReportDialog *report_dialog_new(GtkTreeModel *model, GtkWidget *parent) { char *v2; long type; long v4; long v5; long v6; long v7; long v8; long v9; long v10; long v11; long v12; long v13; long v14; long v15; long v16; long v17; long v18; long v19; long v20; long v21; long v22;...
static ReportDialog *report_dialog_new(GtkTreeModel *model, GtkWidget *parent) { ReportDialog *rd; GtkWidget *dialog; GtkWidget *dialog1_vbox; GtkWidget *scrolledwindow2; GtkWidget *treeview2; GtkWidget *vbuttonbox3; GtkWidget *button3; GtkWidget *button6; GtkWidget *dialog1_action_area; GtkWidget *...
report_dialog_new
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_dialog_sel_all(GtkWidget *widget, ReportDialog *rd) { set_all_active(rd, 1); }
static void report_dialog_sel_all(GtkWidget *widget, ReportDialog *rd) { set_all_active(rd, TRUE); }
report_dialog_sel_all
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_dialog_sel_none(GtkWidget *widget, ReportDialog *rd) { set_all_active(rd, 0); }
static void report_dialog_sel_none(GtkWidget *widget, ReportDialog *rd) { set_all_active(rd, FALSE); }
report_dialog_sel_none
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_dialog_sel_toggle(GtkCellRendererToggle *cellrenderertoggle, gchar *path_str, ReportDialog *rd) { GtkTreeModel *v3; unsigned int v4; long type; long v6; GtkTreeModel *v7; unsigned int v8; long v9; long v10; gboolean active; GtkTreeModel *model; GtkTreePath...
static void report_dialog_sel_toggle(GtkCellRendererToggle *cellrenderertoggle, gchar *path_str, ReportDialog *rd) { GtkTreeModel *model = rd->model; GtkTreeIter iter; GtkTreePath *path = gtk_tree_path_new_from_string(path_str); gboolean active; gtk_tree_model_get_iter(mo...
report_dialog_sel_toggle
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_dialog_show(GtkTreeModel *model, GtkWidget *parent) { long type; long v3; char *v4; char *v5; gboolean success; ReportDialog *rd; rd = report_dialog_new(model, parent); type = gtk_dialog_get_type(model); v3 = g_type_check_instance_cast(rd->dialog, type); if ((unsigned int)gtk_dialog_run...
void report_dialog_show(GtkTreeModel *model, GtkWidget *parent) { gboolean success; ReportDialog *rd = report_dialog_new(model, parent); if (gtk_dialog_run(GTK_DIALOG(rd->dialog)) == GTK_RESPONSE_ACCEPT) { shell_status_update(_("Generating report...")); gtk_widget_hide(rd->dialog); shell_view_set_ena...
report_dialog_show
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_footer(ReportContext *ctx) { ctx->footer(ctx); }
void report_footer(ReportContext *ctx) { ctx->footer(ctx); }
report_footer
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean report_generate(ReportDialog *rd) { char *v2; GSList *module_list_from_dialog; char *v4; long v5; char *v6; char *v7; long type; long v9; long v10; long v11; int old_fmt_opts; char *file; FILE *stream; long (*create_context)(void); ReportContext *ctx; GtkWidget *dialog; gchar ...
static gboolean report_generate(ReportDialog *rd) { GSList *modules; ReportContext *ctx; ReportContext *(*create_context)(); gchar *file; FILE *stream; int old_fmt_opts = params.fmt_opts; params.fmt_opts = FMT_OPT_NONE; if (!(file = report_get_filename())) return FALSE; if (!(stream = fopen(fil...
report_generate
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gchar *report_get_filename() { char *v0; char *v1; char *v2; long type; long v4; long v5; long v6; gchar *filename; GtkWidget *dialog; gchar *ext; filename = 0; v0 = gettext("_Save"); v1 = gettext("_Cancel"); v2 = gettext("Save File"); dialog = (GtkWidget *)gtk_file_chooser_dialog_new(v2,...
static gchar *report_get_filename(void) { GtkWidget *dialog; gchar *filename = NULL; #if GTK_CHECK_VERSION(3, 0, 0) dialog = gtk_file_chooser_dialog_new( _("Save File"), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, _("_Cancel"), GTK_RESPONSE_CANCEL, _("_Save"), GTK_RESPONSE_ACCEPT, NULL); #else dialog = gtk...
report_get_filename
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gint report_get_visible_columns(ReportContext *ctx) { gint columns; columns = 2; if ((ctx->columns & 4) != 0) columns = 3; if ((ctx->columns & 8) != 0) ++columns; return columns; }
gint report_get_visible_columns(ReportContext *ctx) { gint columns; columns = 2; if (ctx->columns & REPORT_COL_EXTRA1) columns++; if (ctx->columns & REPORT_COL_EXTRA2) columns++; return columns; }
report_get_visible_columns
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_header(ReportContext *ctx) { ctx->header(ctx); }
void report_header(ReportContext *ctx) { ctx->header(ctx); }
report_header
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_html_details_end(ReportContext *ctx) { ctx->output = h_strdup_cprintf("</table></td></tr>\n", ctx->output); ctx->columns = ctx->parent_columns; ctx->parent_columns = 0; }
static void report_html_details_end(ReportContext *ctx) { ctx->output = h_strdup_cprintf("</table></td></tr>\n", ctx->output); ctx->columns = ctx->parent_columns; ctx->parent_columns = 0; }
report_html_details_end
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_html_details_start(ReportContext *ctx, gchar *key, gchar *value, gsize longest_key) { unsigned int cols; cols = report_get_visible_columns(ctx); report_key_value(ctx, key, value, longest_key); ctx->parent_columns = ctx->columns; ctx->columns = 2; ctx->output = h_s...
static void report_html_details_start(ReportContext *ctx, gchar *key, gchar *value, gsize longest_key) { guint cols = report_get_visible_columns(ctx); report_key_value(ctx, key, value, longest_key); ctx->parent_columns = ctx->columns; ctx->columns = REPORT_COL_VALUE; ctx-...
report_html_details_start
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_html_footer(ReportContext *ctx) { GList *l; GList *keys; gchar *data; ctx->output = h_strconcat(ctx->output, "</table>", 0); ctx->output = h_strconcat(ctx->output, "<style>\n", 0); keys = (GList *)g_hash_table_get_keys(ctx->icon_data); for (l = keys; l; l = l->next) { data = (gchar *)g_ha...
static void report_html_footer(ReportContext *ctx) { ctx->output = h_strconcat(ctx->output, "</table>", NULL); ctx->output = h_strconcat(ctx->output, "<style>\n", NULL); GList *l = NULL, *keys = g_hash_table_get_keys(ctx->icon_data); for (l = keys; l; l = l->next) { gchar *data = g_hash_table_lookup(ctx->ic...
report_html_footer
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_html_header(ReportContext *ctx) { g_free(ctx->output); ctx->output = g_strdup_printf( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Final//EN\">\n" "<html><head>\n" "<title>HardInfo (%s) System Report</title>\n" "<meta http-equiv=\"Content-Type\" content=\"text/html; " "cha...
static void report_html_header(ReportContext *ctx) { g_free(ctx->output); ctx->output = g_strdup_printf( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Final//EN\">\n" "<html><head>\n" "<title>HardInfo (%s) System Report</title>\n" "<meta http-equiv=\"Content-Type\" content=\"text/html; " ...
report_html_header
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_html_key_value(ReportContext *ctx, gchar *key, gchar *value, gsize longest_key) { long v4; const char *v5; const char *v6; gint i; unsigned int columns; gboolean highlight; gint mc; gchar *icon; gchar *icona; gchar *tag; const char *icon_class; gchar *name;...
static void report_html_key_value(ReportContext *ctx, gchar *key, gchar *value, gsize longest_key) { gint columns = report_get_visible_columns(ctx); gchar **values; gint i, mc; gboolean highlight = key_is_highlighted(key); gchar *tag = key_mi_tag(key); gchar *icon = tag ? ...
report_html_key_value
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_html_subsubtitle(ReportContext *ctx, gchar *text) { gint columns; columns = report_get_visible_columns(ctx); ctx->output = h_strdup_cprintf( "<tr><td colspan=\"%d\" class=\"sstitle\">%s</td></tr>\n", ctx->output, (unsigned int)(columns + 1), text); }
static void report_html_subsubtitle(ReportContext *ctx, gchar *text) { gint columns = report_get_visible_columns(ctx); ctx->output = h_strdup_cprintf("<tr><td colspan=\"%d\" class=\"ssti" "tle\">%s</td></tr>\n", ctx->output, columns + 1, text); }
report_html_subsubtitle
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_html_subtitle(ReportContext *ctx, gchar *text) { unsigned int columns; gchar *icon; const char *icon_class; columns = report_get_visible_columns(ctx); if (ctx->first_table) ctx->first_table = 0; else ctx->output = h_strdup_cprintf("</table>", ctx->output); if (ctx->entry->icon_file) {...
static void report_html_subtitle(ReportContext *ctx, gchar *text) { gint columns = report_get_visible_columns(ctx); if (!ctx->first_table) { ctx->output = h_strdup_cprintf("</table>", ctx->output); } else { ctx->first_table = FALSE; } gchar *icon = NULL; if (ctx->entry->icon_file) { gchar *ico...
report_html_subtitle
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_html_title(ReportContext *ctx, gchar *text) { if (!ctx->first_table) ctx->output = h_strdup_cprintf("</table>", ctx->output); ctx->output = h_strdup_cprintf("<h1 class=\"title\">%s</h1>", ctx->output, text); }
static void report_html_title(ReportContext *ctx, gchar *text) { if (!ctx->first_table) { ctx->output = h_strdup_cprintf("</table>", ctx->output); } ctx->output = h_strdup_cprintf("<h1 class=\"title\">%s</h1>", ctx->output, text); }
report_html_title
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_key_value(ReportContext *ctx, gchar *key, gchar *value, gsize longest_key) { long v4; ((void (*)(ReportContext *, gchar *, gchar *, gsize, void (*)(ReportContext *, gchar *, gchar *, gsize), long, gsize, gchar *, gchar *, ReportContext *))ctx->keyvalue)( ...
void report_key_value(ReportContext *ctx, gchar *key, gchar *value, gsize longest_key) { ctx->keyvalue(ctx, key, value, longest_key); }
report_key_value
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_module_list_free(GSList *modules) { GSList *m; for (m = modules; m; m = m->next) g_slist_free(*((_QWORD *)m->data + 7)); g_slist_free(modules); }
void report_module_list_free(GSList *modules) { GSList *m; for (m = modules; m; m = m->next) { ShellModule *module = (ShellModule *)m->data; g_slist_free(module->entries); } g_slist_free(modules); }
report_module_list_free
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_subsubtitle(ReportContext *ctx, gchar *text) { ctx->subsubtitle(ctx, text); }
void report_subsubtitle(ReportContext *ctx, gchar *text) { ctx->subsubtitle(ctx, text); }
report_subsubtitle
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_subtitle(ReportContext *ctx, gchar *text) { ctx->subtitle(ctx, text); }
void report_subtitle(ReportContext *ctx, gchar *text) { ctx->subtitle(ctx, text); }
report_subtitle
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_table(ReportContext *ctx, gchar *text) { size_t v2; size_t v3; gsize v4; gint i; gint ia; gint j; gint ja; gchar *lbl; gsize longest_key; gchar *value; gchar *mi_data; GKeyFile *key_file; gchar **groups; gchar *group; gchar *tmpgroup; gchar **keys; gchar *key; gchar *raw_...
void report_table(ReportContext *ctx, gchar *text) { GKeyFile *key_file = NULL; gchar **groups; gint i; if (ctx->format == REPORT_FORMAT_SHELL) { report_table_shell_dump(ctx, text, 0); return; } key_file = g_key_file_new(); ctx->columns = REPORT_COL_VALUE; ctx->show_column_headers = FALSE; ...
report_table
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_table_shell_dump(ReportContext *ctx, gchar *key_file_str, int level) { gchar *text; gchar *p; gchar *indent; char *next_nl; char *eq; gchar *mi_tag; gchar *mi_data; indent = (gchar *)g_strnfill(4 * level, 32); if (key_file_str) { text = (gchar *)g_strdup(k...
static void report_table_shell_dump(ReportContext *ctx, gchar *key_file_str, int level) { gchar *text, *p, *next_nl, *eq, *indent; gchar *key, *value; indent = g_strnfill(level * 4, ' '); if (key_file_str) { p = text = g_strdup(key_file_str); while (next_nl = strchr...
report_table_shell_dump
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_text_footer(ReportContext *ctx) { ; }
static void report_text_footer(ReportContext *ctx) {}
report_text_footer
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_text_header(ReportContext *ctx) { g_free(ctx->output); ctx->output = (gchar *)g_strdup(&unk_5D0D4); }
static void report_text_header(ReportContext *ctx) { g_free(ctx->output); ctx->output = g_strdup(""); }
report_text_header
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_text_key_value(ReportContext *ctx, gchar *key, gchar *value, gsize longest_key) { int v4; int v5; _BOOL4 v6; const char *v7; size_t v8; size_t v9; size_t v10; gchar *v11; gint i; gint ia; gint ib; unsigned int columns; gint field_width; gboolean highlig...
static void report_text_key_value(ReportContext *ctx, gchar *key, gchar *value, gsize longest_key) { gint columns = report_get_visible_columns(ctx); gchar **values; gint i, mc, field_width = MAX(10, longest_key); gchar indent[10] = " "; if (!ctx->in_details) indent[0...
report_text_key_value
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_text_subsubtitle(ReportContext *ctx, gchar *text) { gchar indent[10]; unsigned long v3; v3 = __readfsqword(0x28u); *(_QWORD *)indent = 2105376; *(_WORD *)&indent[8] = 0; if (!ctx->in_details) indent[0] = 0; ctx->output = h_strdup_cprintf("%s-%s-\n", ctx->output, indent, text); }
static void report_text_subsubtitle(ReportContext *ctx, gchar *text) { gchar indent[10] = " "; if (!ctx->in_details) indent[0] = 0; ctx->output = h_strdup_cprintf("%s-%s-\n", ctx->output, indent, text); }
report_text_subsubtitle
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_text_subtitle(ReportContext *ctx, gchar *text) { int i; gchar *stra; gchar *str; stra = ctx->output; i = strlen(text); str = h_strdup_cprintf("\n%s\n", stra, text); while (i) { str = h_strconcat(str, "-", 0); --i; } ctx->output = h_strconcat(str, "\n\n", 0); }
static void report_text_subtitle(ReportContext *ctx, gchar *text) { gchar *str = ctx->output; int i = strlen(text); str = h_strdup_cprintf("\n%s\n", str, text); for (; i; i--) str = h_strconcat(str, "-", NULL); str = h_strconcat(str, "\n\n", NULL); ctx->output = str; }
report_text_subtitle
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_text_title(ReportContext *ctx, gchar *text) { int i; gchar *stra; gchar *str; stra = ctx->output; i = strlen(text); str = h_strdup_cprintf("\n%s\n", stra, text); while (i) { str = h_strconcat(str, "*", 0); --i; } ctx->output = h_strconcat(str, "\n\n", 0); }
static void report_text_title(ReportContext *ctx, gchar *text) { gchar *str = (gchar *)ctx->output; int i = strlen(text); str = h_strdup_cprintf("\n%s\n", str, text); for (; i; i--) str = h_strconcat(str, "*", NULL); str = h_strconcat(str, "\n\n", NULL); ctx->output = str; }
report_text_title
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void report_title(ReportContext *ctx, gchar *text) { ctx->title(ctx, text); }
void report_title(ReportContext *ctx, gchar *text) { ctx->title(ctx, text); }
report_title
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean rescan_section(gpointer data) { module_entry_reload((ShellModuleEntry *)data); return *((_DWORD *)data + 6); }
static gboolean rescan_section(gpointer data) { ShellModuleEntry *entry = (ShellModuleEntry *)data; module_entry_reload(entry); return entry->selected; }
rescan_section
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
int rouicpy(edid_ven *dest, edid *e, uint32_t offset) { long v3; edid_ven ret; unsigned long v6; v6 = __readfsqword(0x28u); *(_QWORD *)ret.pnp = 0; *(_DWORD *)&ret.type = 2; ret.oui = r24le(e, offset, 0xFFFFFFFF); sprintf(ret.pnp, "%02x%02x%02x", BYTE2(ret.oui), BYTE1(ret.oui), LOBYTE(ret.oui...
static inline int rouicpy(edid_ven *dest, edid *e, uint32_t offset) { edid_ven ret = {.type = VEN_TYPE_OUI}; ret.oui = r24le(e, offset, NOMASK); sprintf(ret.oui_str, "%02x%02x%02x", (ret.oui >> 16) & 0xff, (ret.oui >> 8) & 0xff, ret.oui & 0xff); if (ret.oui) { *dest = ret; return 1; } retu...
rouicpy
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
int rpnpcpy(edid_ven *dest, edid *e, uint32_t offset) { uint32_t pnp; edid_ven ret; pnp = r16be(e, offset, 0xFFFFFFFF); ret = (edid_ven)0LL; if (!pnp) return 0; ret.type = 1; ret.pnp[2] = (pnp & 0x1F) + 64; ret.pnp[1] = ((pnp >> 5) & 0x1F) + 64; ret.pnp[0] = ((pnp >> 10) & 0x1F) + 64; *dest = r...
static inline int rpnpcpy(edid_ven *dest, edid *e, uint32_t offset) { uint32_t pnp = r16be(e, offset, NOMASK); edid_ven ret = {.type = VEN_TYPE_INVALID}; if (pnp) { ret.type = VEN_TYPE_PNP; ret.pnp[2] = 64 + (pnp & 0x1f); ret.pnp[1] = 64 + ((pnp >> 5) & 0x1f); ret.pnp[0] = 64 + ((pnp >> 10) & 0x1f...
rpnpcpy
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
char *rstr(edid *e, uint32_t offset, uint32_t len) { char *raw; char *ret; if (!bounds_check(e, len + offset)) return 0; raw = (char *)malloc(len + 1); strncpy(raw, (const char *)e->data + offset, len); raw[len] = 0; ret = (char *)g_utf8_make_valid(raw, len); g_free(raw); return ret; }
static inline char *rstr(edid *e, uint32_t offset, uint32_t len) { if (!bounds_check(e, offset + len)) return NULL; char *raw = malloc(len + 1), *ret = NULL; strncpy(raw, (char *)&e->u8[offset], len); raw[len] = 0; ret = g_utf8_make_valid(raw, len); g_free(raw); return ret; }
rstr
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
char *rstr_strip(edid *e, uint32_t offset, uint32_t len) { long valid; long v5; char *raw; char *ret; if (!bounds_check(e, len + offset)) return 0; raw = (char *)malloc(len + 1); strncpy(raw, (const char *)e->data + offset, len); raw[len] = 0; valid = g_utf8_make_valid(raw, len); v5 = g_strchug...
static inline char *rstr_strip(edid *e, uint32_t offset, uint32_t len) { if (!bounds_check(e, offset + len)) return NULL; char *raw = malloc(len + 1), *ret = NULL; strncpy(raw, (char *)&e->u8[offset], len); raw[len] = 0; ret = g_strstrip(g_utf8_make_valid(raw, len)); g_free(raw); return ret; }
rstr_strip
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gchar *safe_ansi_color(gchar *ansi_color, gboolean free_in) { int i; int len; int c; gchar *ret; gchar **codes; if (!ansi_color) return 0; ret = 0; codes = (gchar **)g_strsplit(ansi_color, ";", 0xFFFFFFFFLL); if (free_in) g_free(ansi_color); len = g_strv_length(codes); for (i = 0; i < len...
gchar *safe_ansi_color(gchar *ansi_color, gboolean free_in) { if (!ansi_color) return NULL; gchar *ret = NULL; gchar **codes = g_strsplit(ansi_color, ";", -1); if (free_in) g_free(ansi_color); int len = g_strv_length(codes); for (int i = 0; i < len; i++) { int c = atoi(codes[i]); if (c == 0 ...
safe_ansi_color
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
long scan_ids_file(const gchar *file, const gchar *qpath, ids_query_result *result, long start_offset) { int tabs; int qdepth; int i; int i_0; char *p; gchar *pa; gchar *pb; gchar *pc; long last_root_fpos; long fpos; long line; gchar **qparts; FILE *fd; int qpartlen[4]; ...
long scan_ids_file(const gchar *file, const gchar *qpath, ids_query_result *result, long start_offset) { gchar **qparts = NULL; gchar buff[IDS_LOOKUP_BUFF_SIZE] = ""; ids_query_result ret = {}; gchar *p = NULL; FILE *fd; int tabs; int qdepth; int qpartlen[IDS_LOOKUP_MAX_DEPTH]; lon...
scan_ids_file
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
long scan_ids_file_list(const gchar *file, ids_query_list query_list, long start_offset) { long v3; long offset; GSList *l; GSList *tmp; v3 = g_slist_copy(query_list); tmp = (GSList *)g_slist_sort(v3, ids_query_list_cmp); offset = start_offset; for (l = query_list; l; l = l->nex...
long scan_ids_file_list(const gchar *file, ids_query_list query_list, long start_offset) { GSList *tmp = g_slist_copy(query_list); tmp = g_slist_sort(tmp, (GCompareFunc)_ids_query_list_cmp); long offset = start_offset; for (GSList *l = query_list; l; l = l->next) { ids_query *q = l-...
scan_ids_file_list
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gchar *seconds_to_string(unsigned int seconds) { unsigned int secondsa; unsigned int minutes; unsigned int hoursa; unsigned int hours; unsigned int days; gchar *full_fmt; char *ret; char *days_fmt; char *hours_fmt; char *minutes_fmt; char *seconds_fmt; g_strdup(&replacement); secondsa = secon...
gchar *seconds_to_string(unsigned int seconds) { unsigned int hours, minutes, days; const gchar *days_fmt, *hours_fmt, *minutes_fmt, *seconds_fmt; gchar *full_fmt, *ret = g_strdup(""); minutes = seconds / 60; seconds %= 60; hours = minutes / 60; minutes %= 60; days = hours / 24; hours %= 24; days_...
seconds_to_string
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void sel_toggle(GtkCellRendererToggle *cellrenderertoggle, gchar *path_str, GtkTreeModel *model) { unsigned int selected; long type; long v5; long v6; gboolean active; SyncEntry *se; GtkTreePath *path; GtkTreeIter iter; unsigned long v12; v12 = __readfsqword(0x28u); path = (GtkTre...
static void sel_toggle(GtkCellRendererToggle *cellrenderertoggle, gchar *path_str, GtkTreeModel *model) { GtkTreeIter iter; GtkTreePath *path = gtk_tree_path_new_from_string(path_str); SyncEntry *se; gboolean active; gtk_tree_model_get_iter(model, &iter, path); gtk_tree_model_get(mod...
sel_toggle
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean select_first_item(gpointer data) { GtkTreeIter first; unsigned long v3; v3 = __readfsqword(0x28u); if ((unsigned int)gtk_tree_model_get_iter_first(shell->info_tree->model, &first)) gtk_tree_selection_select_iter(shell->info_tree->selection, &first)...
static gboolean select_first_item(gpointer data) { GtkTreeIter first; if (gtk_tree_model_get_iter_first(shell->info_tree->model, &first)) gtk_tree_selection_select_iter(shell->info_tree->selection, &first); return FALSE; }
select_first_item
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean select_first_tree_item(gpointer data) { GtkTreeIter first; unsigned long v3; v3 = __readfsqword(0x28u); if ((unsigned int)gtk_tree_model_get_iter_first(shell->tree->model, &first)) gtk_tree_selection_select_iter(shell->tree->selection, &first); return 0; }
static gboolean select_first_tree_item(gpointer data) { GtkTreeIter first; if (gtk_tree_model_get_iter_first(shell->tree->model, &first)) gtk_tree_selection_select_iter(shell->tree->selection, &first); return FALSE; }
select_first_tree_item
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean select_marked_or_first_item(gpointer data) { gboolean found_selection; gchar *datacol; GtkTreeIter first; GtkTreeIter it; unsigned long v6; v6 = __readfsqword(0x28u); found_selection = 0; if ((unsigned int)gtk_tree_model_get_iter_first(shell->info_tree->model, ...
static gboolean select_marked_or_first_item(gpointer data) { GtkTreeIter first, it; gboolean found_selection = FALSE; gchar *datacol; if (gtk_tree_model_get_iter_first(shell->info_tree->model, &first)) { it = first; while (gtk_tree_model_iter_next(shell->info_tree->model, &it)) { gtk_tree_model_g...
select_marked_or_first_item
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean send_request_for_net_action(SyncNetAction *sna) { gsize size; SoupMessage *msg; gchar *uri; gchar *contents; unsigned long v6; v6 = __readfsqword(0x28u); uri = g_strdup_printf("%s/%s", "https://api.hardinfo.org", sna->entry->file_name); if (sna->entry->generate_contents...
static gboolean send_request_for_net_action(SyncNetAction *sna) { gchar *uri; SoupMessage *msg; guint response_code; uri = g_strdup_printf("%s/%s", API_SERVER_URI, sna->entry->file_name); if (sna->entry->generate_contents_for_upload == NULL) { msg = soup_message_new("GET", uri); } else { gsize siz...
send_request_for_net_action
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void set_all_active(ReportDialog *rd, gboolean setting) { GtkTreeModel *model; GtkTreeIter iter; unsigned long v4; v4 = __readfsqword(0x28u); model = rd->model; gtk_tree_model_get_iter_first(model, &iter); do set_children_active(model, &iter, setting); while ((unsigned int)gtk_tree_model_iter_next(...
static void set_all_active(ReportDialog *rd, gboolean setting) { GtkTreeIter iter; GtkTreeModel *model = rd->model; gtk_tree_model_get_iter_first(model, &iter); do { set_children_active(model, &iter, setting); } while (gtk_tree_model_iter_next(model, &iter)); }
set_all_active
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void set_children_active(GtkTreeModel *model, GtkTreeIter *iter, gboolean setting) { long type; long v4; long v5; long v6; gint childrena; gint children; GtkTreeIter child; unsigned long v11; v11 = __readfsqword(0x28u); if ((unsigned int)gtk_tree_model_iter_has_child(model,...
static void set_children_active(GtkTreeModel *model, GtkTreeIter *iter, gboolean setting) { if (gtk_tree_model_iter_has_child(model, iter)) { gint children = gtk_tree_model_iter_n_children(model, iter); gtk_tree_store_set(GTK_TREE_STORE(model), iter, TREE_COL_SEL, setting, -1)...
set_children_active
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void set_gerror(GError **error, GbrInitError errcode) { unsigned int v2; gchar *error_message; if (error) { switch (errcode) { case GBR_INIT_ERROR_NOMEM: error_message = "Cannot allocate memory."; break; case GBR_INIT_ERROR_OPEN_MAPS: error_message = "Unable to open /proc/self/maps ...
static void set_gerror(GError **error, GbrInitError errcode) { gchar *error_message; if (error == NULL) return; switch (errcode) { case GBR_INIT_ERROR_NOMEM: error_message = "Cannot allocate memory."; break; case GBR_INIT_ERROR_OPEN_MAPS: error_message = "Unable to open /proc/self/maps for r...
set_gerror
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0