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 find_edid_ids_file() { long user_config_dir; long v1; int n; char *file_search_order[3]; unsigned long v4; v4 = __readfsqword(0x28u); if (!edid_ids_file) { user_config_dir = g_get_user_config_dir(); file_search_order[0] = (char *)g_build_filename(user_config_dir, "hardinfo", "edid.id...
void find_edid_ids_file() { if (edid_ids_file) return; char *file_search_order[] = { g_build_filename(g_get_user_config_dir(), "hardinfo", "edid.ids", NULL), g_build_filename(params.path_data, "edid.ids", NULL), NULL}; int n; for (n = 0; file_search_order[n]; n++) { if (!edid_ids_file && !ac...
find_edid_ids_file
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
const char *find_icon(const char *lvfs_name) { unsigned int i; for (i = 0; imap_0[i].lvfs; ++i) { if (!g_strcmp0(imap_0[i].lvfs) && off_425A8[2 * i]) return off_425A8[2 * i]; } return off_425A8[2 * i]; }
const char *find_icon(const char *lvfs_name) { static const struct { char *lvfs, *hi; } imap[] = {{"applications-internet", "dns.png"}, {"audio-card", "audio.png"}, {"computer", "computer.png"}, {"drive-harddisk", "hdd.png"}, {"input-gaming", "joystick.pn...
find_icon
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
const gchar *find_icon_for_class(uint32_t a1) { unsigned int i; for (i = 0; i <= 0xC; ++i) { if (class2icon[i].class > 0xFF) { if (a1 == class2icon[i].class) return class2icon[i].icon; } else if ((a1 & 0xFF00) == class2icon[i].class << 8) { return class2icon[i].icon; } } return ...
static const gchar *find_icon_for_class(uint32_t class) { int i; for (i = 0; i < G_N_ELEMENTS(class2icon); i++) { if (class2icon[i].class <= 0xff) { if ((class & 0xff00) == class2icon[i].class << 8) return class2icon[i].icon; } else if (class == class2icon[i].class) { return class2icon[...
find_icon_for_class
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void find_ieee_oui_ids_file() { long user_config_dir; long v1; int n; char *file_search_order[3]; unsigned long v4; v4 = __readfsqword(0x28u); if (!ieee_oui_ids_file) { user_config_dir = g_get_user_config_dir(); file_search_order[0] = (char *)g_build_filename(user_config_dir, "hardinfo", ...
void find_ieee_oui_ids_file() { if (ieee_oui_ids_file) return; char *file_search_order[] = { g_build_filename(g_get_user_config_dir(), "hardinfo", "ieee_oui.ids", NULL), g_build_filename(params.path_data, "ieee_oui.ids", NULL), NULL}; int n; for (n = 0; file_search_order[n...
find_ieee_oui_ids_file
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
const char *find_translation(const char *str) { int i; if (!str) return 0; for (i = 0; translatable_1[i]; ++i) { if (!g_strcmp0(str)) return gettext(translatable_1[i]); } return str; }
const char *find_translation(const char *str) { static const char *translatable[] = {N_("DeviceId"), N_("Guid"), N_("Summary"), N_("Plugin"), N_("Flags"), ...
find_translation
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *firmware_get_info() { return fwupdmgr_get_devices_info(); }
gchar *firmware_get_info() { return fwupdmgr_get_devices_info(); }
firmware_get_info
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gboolean firmware_hinote(const char **msg) { char *v1; if (!fail_no_fwupd) return 0; v1 = gettext("Requires the <i><b>fwupd</b></i> daemon."); *msg = g_strdup(v1); return 1; }
gboolean firmware_hinote(const char **msg) { if (fail_no_fwupd) { *msg = g_strdup(_("Requires the <i><b>fwupd</b></i> daemon.")); return TRUE; } return FALSE; }
firmware_hinote
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *fwupdmgr_get_devices_info() { char *v1; long v2; long v3; long v4; long v5; long v6; long v7; long v8; long v9; long v10; long v11; long v12; const char *icon; long v14; long v15; long v16; long v17; unsigned int v18; long v19; long v20; long v21; long v22; long v23;...
gchar *fwupdmgr_get_devices_info() { struct Info *info = info_new(); struct InfoGroup *this_group = NULL; gboolean has_vendor_field = FALSE; gboolean updatable = FALSE; const Vendor *gv = NULL; int gc = 0; GDBusConnection *conn; GDBusProxy *proxy; GVariant *devices, *value; GVariantIter *deviter, *...
fwupdmgr_get_devices_info
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
const char *get_class_icon(int a1) { int i; for (i = 0; usb_class_icons[i].class != -2; ++i) { if (a1 == usb_class_icons[i].class) return usb_class_icons[i].icon; } return 0; }
static const char *get_class_icon(int class) { int i = 0; while (usb_class_icons[i].class != IARR_END) { if (usb_class_icons[i].class == class) { return usb_class_icons[i].icon; } i++; } return NULL; }
get_class_icon
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
char *get_dt_string(dtr *dt, char *path, gboolean decode) { char *ret; dtr_obj *obj; if (!decode) return (char *)dtr_get_prop_str(dt, 0, path); obj = (dtr_obj *)dtr_get_prop_obj(dt, 0, path); ret = (char *)dtr_str(obj); dtr_obj_free(obj); return ret; }
static char *get_dt_string(dtr *dt, char *path, gboolean decode) { char *ret; if (decode) { dtr_obj *obj = dtr_get_prop_obj(dt, NULL, path); ret = dtr_str(obj); dtr_obj_free(obj); } else { ret = dtr_get_prop_str(dt, NULL, path); } return ret; }
get_dt_string
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
const gchar *get_gpu_summary() { if (!gpu_summary) scan_gpu(0); return gpu_summary; }
const gchar *get_gpu_summary() { if (gpu_summary == NULL) scan_gpu(FALSE); return gpu_summary; }
get_gpu_summary
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *get_input_devices() { scan_input(0); return input_list; }
gchar *get_input_devices(void) { scan_input(FALSE); return input_list; }
get_input_devices
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *get_motherboard() { long str; long shortest_name; char *v2; int b; int p; gchar *board_vendor; gchar *product_name; gchar *product_vendor; gchar *product_version; gchar *board_part; gchar *product_part; gchar *ret; gchar *board_name; gchar *board_version; const gchar *tmp; const g...
gchar *get_motherboard(void) { gchar *board_name, *board_vendor, *board_version; gchar *product_name, *product_vendor, *product_version; gchar *board_part = NULL, *product_part = NULL; const gchar *tmp; int b = 0, p = 0; gchar *ret; #if defined(ARCH_x86) || defined(ARCH_x86_64) scan_dmi(FALSE); board...
get_motherboard
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *get_node(dtr *dt, char *np) { char *v2; char *v3; long v4; char *v5; char *v6; char *v7; const char *v8; char *v9; char *v10; char *v12; gchar *nodes; gchar *props; gchar *ret; gchar *tmp; gchar *tmpa; gchar *pstr; gchar *pstra; gchar *lstr; gchar *lstra; dtr_obj *node; ...
static gchar *get_node(dtr *dt, char *np) { gchar *nodes = NULL, *props = NULL, *ret = NULL; gchar *tmp = NULL, *pstr = NULL, *lstr = NULL; gchar *dir_path; gchar *node_path; const gchar *fn; GDir *dir; dtr_obj *node, *child; props = g_strdup_printf("[%s]\n", _("Properties")); nodes = g_strdup_printf...
get_node
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar **get_output_lines(const char *cmd_line) { gchar *out; gchar *err; gchar **ret; unsigned long v5; v5 = __readfsqword(0x28u); ret = 0; if ((unsigned int)g_spawn_command_line_sync(cmd_line, &out, &err, 0, 0)) { ret = (gchar **)g_strsplit(out, "\n", 0xFFFFFFFFLL); g_free(out); g_free(err);...
gchar **get_output_lines(const char *cmd_line) { gboolean spawned; gchar *out, *err; gchar **ret = NULL; spawned = g_spawn_command_line_sync(cmd_line, &out, &err, NULL, NULL); if (spawned) { ret = g_strsplit(out, "\n", -1); g_free(out); g_free(err); } return ret; }
get_output_lines
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *get_printers() { scan_printers(0); return printer_list; }
gchar *get_printers(void) { scan_printers(FALSE); return printer_list; }
get_printers
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *get_processor_count() { int v0; scan_processors(0); v0 = g_slist_length(processors); return (gchar *)g_strdup_printf("%d", v0); }
gchar *get_processor_count(void) { scan_processors(FALSE); return g_strdup_printf("%d", g_slist_length(processors)); }
get_processor_count
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *get_processor_desc() { scan_processors(0); return processor_describe(processors); }
gchar *get_processor_desc(void) { scan_processors(FALSE); return processor_describe(processors); }
get_processor_desc
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *get_processor_frequency_desc() { scan_processors(0); return processor_frequency_desc(processors); }
gchar *get_processor_frequency_desc(void) { scan_processors(FALSE); return processor_frequency_desc(processors); }
get_processor_frequency_desc
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *get_processor_max_frequency() { char *v1; float max_freq; GSList *l; max_freq = 0.0; scan_processors(0); for (l = processors; l; l = l->next) { if (*((float *)l->data + 15) > max_freq) max_freq = *((float *)l->data + 15); } if (max_freq == 0.0) return g_strdup("Unknown"); v1 = ge...
gchar *get_processor_max_frequency(void) { GSList *l; Processor *p; float max_freq = 0; scan_processors(FALSE); for (l = processors; l; l = l->next) { p = (Processor *)l->data; if (p->cpu_mhz > max_freq) max_freq = p->cpu_mhz; } if (max_freq == 0.0f) { return g_strdup(N_("Unknown")); ...
get_processor_max_frequency
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *get_processor_name() { scan_processors(0); return processor_name(processors); }
gchar *get_processor_name(void) { scan_processors(FALSE); return processor_name(processors); }
get_processor_name
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *get_processor_name_and_desc() { const char *name; const char *desc; gchar *nd; scan_processors(0); name = processor_name(processors); desc = processor_describe(processors); nd = (gchar *)g_strdup_printf("%s\n%s", name, desc); g_free(name); g_free(desc); return nd; }
gchar *get_processor_name_and_desc(void) { scan_processors(FALSE); gchar *name = processor_name(processors); gchar *desc = processor_describe(processors); gchar *nd = g_strdup_printf("%s\n%s", name, desc); g_free(name); g_free(desc); return nd; }
get_processor_name_and_desc
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void get_processor_strfamily(Processor *processor) { gchar *v1; gchar *v2; gchar *v3; gchar *v4; gchar *v5; gchar *v6; gchar *v7; gchar *v8; gchar *v9; gchar *v10; int family; int model; family = processor->family; model = processor->model; if ((unsigned int)g_str_equal(processor->vendor_...
void get_processor_strfamily(Processor *processor) { gint family = processor->family; gint model = processor->model; if (g_str_equal(processor->vendor_id, "GenuineIntel")) { if (family == 4) { processor->strmodel = g_strdup("i486 series"); } else if (family == 5) { if (model < 4) { pr...
get_processor_strfamily
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *get_sensor_label_from_conf(gchar *key) { gchar *ret; ret = (gchar *)g_hash_table_lookup(sensor_labels, key); if (ret) return g_strdup(ret); else return 0; }
static gchar *get_sensor_label_from_conf(gchar *key) { gchar *ret; ret = g_hash_table_lookup(sensor_labels, key); if (ret) return g_strdup(ret); return NULL; }
get_sensor_label_from_conf
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
char *get_sensor_path(int number, const char *prefix) { return (char *)g_strdup_printf("/sys/class/hwmon/hwmon%d/%s", number, prefix); }
static char *get_sensor_path(int number, const char *prefix) { return g_strdup_printf("/sys/class/hwmon/hwmon%d/%s", number, prefix); }
get_sensor_path
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *get_storage_devices() { scan_storage(0); return storage_list; }
gchar *get_storage_devices(void) { scan_storage(FALSE); return storage_list; }
get_storage_devices
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *get_storage_devices_simple() { unsigned int i; int fi; gchar *storage_devs; Info *info; GRegex *regex; InfoGroup *group; InfoField *field; gchar *tmp; scan_storage(0); info = (Info *)info_unflatten(storage_list); if (!info) return (gchar *)&unk_31194; storage_devs = 0; regex = (GRe...
gchar *get_storage_devices_simple(void) { scan_storage(FALSE); struct Info *info = info_unflatten(storage_list); if (!info) { return ""; } int i, fi; struct InfoGroup *group; struct InfoField *field; gchar *storage_devs = NULL, *tmp; const gchar *dev_label, *model_wo_tags; GRegex *regex; re...
get_storage_devices_simple
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *get_summary(dtr *dt) { char *v1; char *v2; char *v3; char *v4; char *v5; char *model; char *compat; char *ret; char *serial_number; model = get_dt_string(dt, "/model", 0); compat = get_dt_string(dt, "/compatible", 1); if (!model) { v1 = gettext("(Unknown)"); model = g_strdup(v1);...
static gchar *get_summary(dtr *dt) { char *model = NULL, *compat = NULL; char *ret = NULL; model = get_dt_string(dt, "/model", 0); compat = get_dt_string(dt, "/compatible", 1); UNKIFNULL(model); EMPIFNULL(compat); #if defined(__arm__) if (strstr(model, "Raspberry Pi") || strstr(compat, "raspberrypi")) ...
get_summary
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
const char *get_usbdev_icon(const usbd *u) { const char *icon; usbi *curr_if; icon = 0; for (curr_if = u->if_list; !icon && curr_if; curr_if = curr_if->next) icon = get_usbif_icon(curr_if); if (!icon) return get_class_icon(u->dev_class); return icon; }
static const char *get_usbdev_icon(const usbd *u) { const char *icon = NULL; usbi *curr_if; curr_if = u->if_list; while (icon == NULL && curr_if != NULL) { icon = get_usbif_icon(curr_if); curr_if = curr_if->next; } if (icon == NULL) { icon = get_class_icon(u->dev_class); } return icon; }
get_usbdev_icon
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
const char *get_usbif_icon(const usbi *usbif) { int i; for (i = 0; usb_type_icons[i].class != -2; ++i) { if (usb_type_icons[i].class == usbif->if_class && usb_type_icons[i].subclass == usbif->if_subclass && (usb_type_icons[i].protocol == -1 || usb_type_icons[i].protocol == usbif->if_pr...
static const char *get_usbif_icon(const usbi *usbif) { int i = 0; while (usb_type_icons[i].class != IARR_END) { if (usb_type_icons[i].class == usbif->if_class && usb_type_icons[i].subclass == usbif->if_subclass && (usb_type_icons[i].protocol == IARR_ANY || usb_type_icons[i].protocol == ...
get_usbif_icon
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void gpu_summary_add(const char *gpu_name) { if (*gpu_summary) gpu_summary = (gchar *)h_strdup_cprintf(" + %s", gpu_summary); else gpu_summary = (gchar *)h_strdup_cprintf("%s", gpu_summary); }
void gpu_summary_add(const char *gpu_name) { if (strlen(gpu_summary) == 0) { gpu_summary = h_strdup_cprintf("%s", gpu_summary, gpu_name); } else { gpu_summary = h_strdup_cprintf(" + %s", gpu_summary, gpu_name); } }
gpu_summary_add
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
const ShellModuleMethod *hi_exported_methods() { return m_17; }
const ShellModuleMethod *hi_exported_methods(void) { static const ShellModuleMethod m[] = { {"getProcessorCount", get_processor_count}, {"getProcessorName", get_processor_name}, {"getProcessorDesc", get_processor_desc}, {"getProcessorNameAndDesc", get_processor_name_and_desc}, {"getProce...
hi_exported_methods
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *hi_get_field(gchar *field) { gchar *info; info = (gchar *)moreinfo_lookup_with_prefix(&unk_312B8, field); if (info) return g_strdup(info); else return g_strdup(field); }
gchar *hi_get_field(gchar *field) { gchar *info = moreinfo_lookup_with_prefix("DEV", field); if (info) return g_strdup(info); return g_strdup(field); }
hi_get_field
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void hi_module_deinit() { moreinfo_del_with_prefix(&unk_312B8); sensors_shutdown(); udisks2_shutdown(); g_module_close(cups); }
void hi_module_deinit(void) { moreinfo_del_with_prefix("DEV"); sensors_shutdown(); udisks2_shutdown(); g_module_close(cups); }
hi_module_deinit
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
const ModuleAbout *hi_module_get_about() { return &ma_1; }
const ModuleAbout *hi_module_get_about(void) { const static ModuleAbout ma = { .author = "Leandro A. F. Pereira", .description = N_("Gathers information about hardware devices"), .version = VERSION, .license = "GNU GPL version 2", }; return &ma; }
hi_module_get_about
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar **hi_module_get_dependencies() { return deps_0; }
gchar **hi_module_get_dependencies(void) { static gchar *deps[] = {"computer.so", NULL}; return deps; }
hi_module_get_dependencies
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *hi_module_get_name() { char *v0; v0 = gettext("Devices"); return g_strdup(v0); }
gchar *hi_module_get_name(void) { return g_strdup(_("Devices")); }
hi_module_get_name
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
guchar hi_module_get_weight() { return 85; }
guchar hi_module_get_weight(void) { return 85; }
hi_module_get_weight
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void hi_module_init() { unsigned int i; for (i = 0; i <= 4; ++i) sync_manager_add_entry(&entries_2[i]); init_cups(); sensors_init(); udisks2_init(); }
void hi_module_init(void) { static SyncEntry entries[] = { { .name = N_("Update PCI ID listing"), .file_name = "pci.ids", }, { .name = N_("Update USB ID listing"), .file_name = "usb.ids", }, { .name = N_("Update EDID vendor codes"), ...
hi_module_init
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *hi_more_info(gchar *entry) { gchar *info; info = (gchar *)moreinfo_lookup_with_prefix(&unk_312B8, entry); if (info) return g_strdup(info); else return g_strdup(&unk_312BC); }
gchar *hi_more_info(gchar *entry) { gchar *info = moreinfo_lookup_with_prefix("DEV", entry); if (info) return g_strdup(info); return g_strdup("?"); }
hi_more_info
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
const gchar *hi_note_func(gint entry) { char *v1; char *v3; char *v4; char *v5; const char *msg; const gchar *ids; unsigned long v8; v8 = __readfsqword(0x28u); if (entry == 6 || entry == 3) { ids = (const gchar *)find_pci_ids_file(); if (!ids) { v1 = gettext( "A copy of <i><b>...
const gchar *hi_note_func(gint entry) { if (entry == ENTRY_PCI || entry == ENTRY_GPU) { const gchar *ids = find_pci_ids_file(); if (!ids) { return g_strdup( _("A copy of <i><b>pci.ids</b></i> is not available on the system.")); } if (ids && strstr(ids, ".min")) { return g_strdup(...
hi_note_func
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void init_cups() { int i; const char *libcups[5]; unsigned long v2; v2 = __readfsqword(0x28u); libcups[0] = "libcups"; libcups[1] = "libcups.so"; libcups[2] = "libcups.so.1"; libcups[3] = "libcups.so.2"; libcups[4] = 0; if (!cups_dests_get || !cups_dests_free) { for (i = 0; libcups[i]; ++i) { ...
void init_cups(void) { const char *libcups[] = {"libcups", "libcups.so", "libcups.so.1", "libcups.so.2", NULL}; if (!(cups_dests_get && cups_dests_free)) { int i; for (i = 0; libcups[i] != NULL; i++) { cups = g_module_open(libcups[i], G_MODULE_BIND_LAZY); if (cups) ...
init_cups
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *make_edid_section(monitor *m) { unsigned int year; unsigned int week; char *v3; char *v4; const char *v5; char *v6; int interface; const char *v8; char *v9; const char *v10; char *v11; const char *v12; char *v13; char *v14; char *v15; char *v16; const char *v17; const char *v1...
static gchar *make_edid_section(monitor *m) { int i; edid *e = m->e; if (e->len) { gchar *vstr = monitor_vendor_str(m, TRUE, FALSE); gchar *dom = NULL; if (!e->dom.is_model_year && e->dom.week && e->dom.year) dom = g_strdup_printf(_("Week %d of %d"), e->dom.week, e->dom.year); else if (e->d...
make_edid_section
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *make_spd_section(spd_data *spd) { char *v1; char *v2; const char *form_factor; const char *v4; const char *v5; char *v6; char *v7; char *v9; int spd_rev_major; int spd_rev_minor; char *v12; char *v13; char *v14; int vendor_bank; int vendor_index; char *v17; int dram_vendor_bank;...
gchar *make_spd_section(spd_data *spd) { gchar *ret = NULL; if (spd) { gchar *full_spd = NULL; switch (spd->type) { case SDR_SDRAM: full_spd = decode_sdr_sdram_extra(spd->bytes); break; case DDR_SDRAM: full_spd = decode_ddr_sdram_extra(spd->bytes); break; case DDR2_SDRAM:...
make_spd_section
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *memory_devices_get_info() { char *v0; char *v1; char *v2; char *v3; char *v4; char *v5; char *v6; char *ecc; char *use; char *v9; char *v10; char *v11; char *v12; char *v13; gchar *spd_section; char *bank_locator; char *v16; char *v17; dmi_handle v18; char *v19; char *v2...
gchar *memory_devices_get_info() { gchar *icons = g_strdup(""); gchar *ret = g_strdup_printf("[%s]\n", _("Memory Device List")); GSList *l = NULL; sketchy_info = FALSE; gchar tag_prefix[] = "DEV"; dmi_mem *mem = dmi_mem_new(); for (l = mem->arrays; l; l = l->next) { dmi_mem_array *a = (dmi_mem_array...
memory_devices_get_info
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
uint64_t memory_devices_get_system_memory_MiB() { int ret; dmi_mem *mem; mem = dmi_mem_new(); ret = mem->system_memory_MiB; dmi_mem_free(mem); return ret; }
uint64_t memory_devices_get_system_memory_MiB() { dmi_mem *mem = dmi_mem_new(); int ret = (int)mem->system_memory_MiB; dmi_mem_free(mem); return ret; }
memory_devices_get_system_memory_MiB
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *memory_devices_get_system_memory_str() { char *v0; char *v1; gchar *ret; uint64_t m; ret = 0; m = memory_devices_get_system_memory_MiB(); if (m) { if (m <= 0x400 || (m & 0x3FF) != 0) { v1 = gettext("MiB"); return (gchar *)g_strdup_printf("%ld %s", m, v1); } else { v0 = ge...
gchar *memory_devices_get_system_memory_str() { gchar *ret = NULL; dmi_mem_size m = memory_devices_get_system_memory_MiB(); if (m) { if (m > 1024 && (m % 1024 == 0)) ret = g_strdup_printf("%" PRId64 " %s", m / 1024, _("GiB")); else ret = g_strdup_printf("%" PRId64 " %s", m, _("MiB")); } re...
memory_devices_get_system_memory_str
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *memory_devices_get_system_memory_types_str() { char *v0; int i; int rtypes; gchar *ret; gchar *types_str; dmi_mem *lmem; types_str = 0; lmem = dmi_mem_new(); rtypes = lmem->system_memory_ram_types; dmi_mem_free(lmem); for (i = 1; i <= 12; ++i) { if (((1 << (i - 1)) & rtypes) != 0) ...
gchar *memory_devices_get_system_memory_types_str() { gchar *ret = NULL, *types_str = NULL; int i, rtypes; dmi_mem *lmem = dmi_mem_new(); rtypes = lmem->system_memory_ram_types; dmi_mem_free(lmem); for (i = 1; i < N_RAM_TYPES; i++) { int bit = 1 << (i - 1); if (rtypes & bit) types_str = appf...
memory_devices_get_system_memory_types_str
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gboolean memory_devices_hinote(const char **msg) { char *v1; size_t v2; size_t v3; size_t v4; size_t v5; size_t v6; size_t v7; size_t v8; size_t v9; size_t v10; size_t v11; long v12; _BOOL4 v13; char *v15; gboolean best_state; unsigned int has_root; unsigned int has_dmi; unsigned int...
gboolean memory_devices_hinote(const char **msg) { gchar *want_dmi = _(" <b><i>dmidecode</i></b> utility available"); gchar *want_root = _(" ... <i>and</i> HardInfo running with superuser privileges"); gchar *want_eeprom = _(" <b><i>eeprom</i></b> module loaded (for SDR, DDR, DDR2, DDR3)"); gchar *w...
memory_devices_hinote
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void mi_add(const char *key, const char *value, int report_details) { const char *v3; gchar *v4; gchar *ckey; gchar *rkey; ckey = (gchar *)hardinfo_clean_label(key, 0); rkey = (gchar *)g_strdup_printf("%s:%s", "DTREE", ckey); if (report_details) v3 = "!"; else v3 = (const char *)&unk_3B63F; d...
static void mi_add(const char *key, const char *value, int report_details) { gchar *ckey, *rkey; ckey = hardinfo_clean_label(key, 0); rkey = g_strdup_printf("%s:%s", "DTREE", ckey); dtree_info = h_strdup_cprintf("$%s%s$%s=\n", dtree_info, (report_details) ? "!" : "", rkey, ckey...
mi_add
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void monitor_free(monitor *m) { if (m) { g_free(m->_vstr); g_free(m->drm_connection); edid_free(m->e); g_free(m); } }
void monitor_free(monitor *m) { if (m) { g_free(m->_vstr); g_free(m->drm_connection); edid_free(m->e); g_free(m); } }
monitor_free
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *monitor_name(monitor *m, gboolean include_vendor) { char *v3; const char *v4; const char *v5; gchar *desc; edid *e; gchar *vstr; gchar *vtag; if (!m) return 0; desc = 0; e = m->e; if (e) { if (include_vendor) { if (e->ven.type) { vstr = monitor_vendor_str(m, 0, 0); ...
gchar *monitor_name(monitor *m, gboolean include_vendor) { if (!m) return NULL; gchar *desc = NULL; edid *e = m->e; if (!e) return g_strdup(_("(Unknown)")); if (include_vendor) { if (e->ven.type != VEN_TYPE_INVALID) { gchar *vstr = monitor_vendor_str(m, FALSE, FALSE); gchar *vtag = ve...
monitor_name
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
monitor *monitor_new_from_sysfs(const gchar *sysfs_edid_file) { long v2; long v3; edid *v4; gchar *edid_bin; gsize edid_len; monitor *m; gchar *drm_enabled_file; gchar *drm_status_file; unsigned long v10; v10 = __readfsqword(0x28u); edid_bin = 0; edid_len = 0; if (!sysfs_edid_file || !*sysfs_...
monitor *monitor_new_from_sysfs(const gchar *sysfs_edid_file) { gchar *edid_bin = NULL; gsize edid_len = 0; if (!sysfs_edid_file || !*sysfs_edid_file) return NULL; monitor *m = monitor_new(); m->drm_path = g_path_get_dirname(sysfs_edid_file); m->drm_connection = g_path_get_basename(m->drm_path); gchar...
monitor_new_from_sysfs
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *monitor_vendor_str(monitor *m, gboolean include_value, gboolean link_name) { edid *e; long v5; char *v6; gchar *ret; gchar *reta; gchar *lv; edid_ven ven; ids_query_result result; gchar t[4]; char v[24]; unsigned long v15; v15 = __readfsqword(0x28u); if (!m ||...
gchar *monitor_vendor_str(monitor *m, gboolean include_value, gboolean link_name) { if (!m || !m->e) return NULL; edid_ven ven = m->e->ven; gchar v[20] = "", t[4] = ""; ids_query_result result = {}; if (ven.type == VEN_TYPE_PNP) { strcpy(v, ven.pnp); strcpy(t, "PNP"); ...
monitor_vendor_str
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *monitors_get_info() { char *v0; const char *v1; const char *drm_enabled; char *v3; const char *drm_connection; char *v5; char *v6; char *v7; char *v8; char *v9; char *v10; char *v11; const char *drm_status; int i; int found; gchar *icons; gchar *ret; gchar *edid_section; gch...
gchar *monitors_get_info() { gchar *icons = g_strdup(""); gchar *ret = g_strdup_printf("[%s]\n", _("Monitors")); gchar tag_prefix[] = "DEV"; gchar **edid_files = get_output_lines("find /sys/devices -name edid"); int i, found = 0; for (i = 0; edid_files[i]; i++) { monitor *m = monitor_new_from_sysfs(ed...
monitors_get_info
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gboolean monitors_hinote(const char **msg) { return 0; }
gboolean monitors_hinote(const char **msg) { PARAM_NOT_UNUSED(msg); return FALSE; }
monitors_hinote
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
char *msg_section(dtr *dt, int dump) { char *v2; int i; char *ret; gchar *aslbl; gchar *messages; gchar **lines; messages = (gchar *)dtr_messages(dt); v2 = gettext("Messages"); ret = (char *)g_strdup_printf("[%s]", v2); lines = (gchar **)g_strsplit(messages, "\n", 0); for (i = 0; lines[i]; ++i) {...
static char *msg_section(dtr *dt, int dump) { gchar *aslbl = NULL; gchar *messages = dtr_messages(dt); gchar *ret = g_strdup_printf("[%s]", _("Messages")); gchar **lines = g_strsplit(messages, "\n", 0); int i = 0; while (lines[i] != NULL) { aslbl = hardinfo_clean_label(lines[i], 0); ret = appfnl(ret...
msg_section
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gboolean null_if_empty(gchar **str) { gchar *p; if (str && *str) { for (p = *str; p && *p; ++p) { if (((*__ctype_b_loc())[*p] & 8) != 0) return 0; } *str = 0; } return 1; }
gboolean null_if_empty(gchar **str) { if (str && *str) { gchar *p = *str; while (p && *p) { if (isalnum(*p)) return FALSE; p++; } *str = NULL; } return TRUE; }
null_if_empty
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *nvme_pci_sections(pcid *p) { char *vendor_id_str; char *sub_vendor_id_str; char *device_id_str; char *sub_device_id_str; uint32_t device_id; char *v7; uint32_t vendor_id; char *v9; char *v10; char *v11; uint32_t sub_vendor_id; char *v13; uint32_t v14; uint32_t v15; char *v16; char...
gchar *nvme_pci_sections(pcid *p) { const gchar *vendor, *svendor, *product, *sproduct; if (!p) return NULL; vendor = UNKIFNULL_AC(p->vendor_id_str); svendor = UNKIFNULL_AC(p->sub_vendor_id_str); product = UNKIFNULL_AC(p->device_id_str); sproduct = UNKIFNULL_AC(p->sub_device_id_str); gchar *vendor_...
nvme_pci_sections
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gint proc_cmp_max_freq(Processor *a, Processor *b) { if (a->cpu_mhz == b->cpu_mhz) return 0; if (a->cpu_mhz <= b->cpu_mhz) return 1; return -1; }
static gint proc_cmp_max_freq(Processor *a, Processor *b) { if (a->cpu_mhz == b->cpu_mhz) return 0; if (a->cpu_mhz > b->cpu_mhz) return -1; return 1; }
proc_cmp_max_freq
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gint proc_cmp_model_name(Processor *a, Processor *b) { return g_strcmp0(a->model_name); }
static gint proc_cmp_model_name(Processor *a, Processor *b) { return g_strcmp0(a->model_name, b->model_name); }
proc_cmp_model_name
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *processor_describe(GSList *processors) { return processor_describe_default(processors); }
gchar *processor_describe(GSList *processors) { return processor_describe_default(processors); }
processor_describe
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *processor_describe_by_counting_names(GSList *processors) { long v1; const char *v2; const char *v3; unsigned int cur_count; gchar *ret; gchar *reta; GSList *l; gchar *cur_str; GSList *tmp; Processor *p; ret = g_strdup(&unk_31194); cur_str = 0; cur_count = 0; v1 = g_slist_copy(process...
gchar *processor_describe_by_counting_names(GSList *processors) { gchar *ret = g_strdup(""); GSList *tmp, *l; Processor *p; gchar *cur_str = NULL; gint cur_count = 0; tmp = g_slist_copy(processors); tmp = g_slist_sort(tmp, (GCompareFunc)proc_cmp_model_name); for (l = tmp; l; l = l->next) { p = (Pr...
processor_describe_by_counting_names
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *processor_describe_default(GSList *processors) { char *v1; int packs; int cores; int threads; const gchar *packs_fmt; const gchar *cores_fmt; const gchar *threads_fmt; gchar *full_fmt; gchar *ret; unsigned long v11; v11 = __readfsqword(0x28u); cpu_procs_cores_threads(&packs, &cores, &thr...
gchar *processor_describe_default(GSList *processors) { int packs, cores, threads; const gchar *packs_fmt, *cores_fmt, *threads_fmt; gchar *ret, *full_fmt; cpu_procs_cores_threads(&packs, &cores, &threads); if (cores > 0) { packs_fmt = ngettext("%d physical processor", "%d physical processors", ...
processor_describe_default
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *processor_frequency_desc(GSList *processors) { long v1; const char *v2; const char *v3; float cur_val; unsigned int cur_count; gchar *ret; gchar *reta; GSList *l; GSList *tmp; Processor *p; ret = g_strdup(&unk_31194); cur_val = -1.0; cur_count = 0; v1 = g_slist_copy(processors); tm...
gchar *processor_frequency_desc(GSList *processors) { gchar *ret = g_strdup(""); GSList *tmp, *l; Processor *p; float cur_val = -1; gint cur_count = 0; tmp = g_slist_copy(processors); tmp = g_slist_sort(tmp, (GCompareFunc)proc_cmp_max_freq); for (l = tmp; l; l = l->next) { p = (Processor *)l->data...
processor_frequency_desc
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *processor_get_capabilities_from_flags(gchar *strflags, gchar *lookup_prefix) { const gchar *v2; char *v3; gint i; gint j; gchar *tmp; gchar **flags; gchar **old; char tmp_flag[72]; unsigned long v12; v12 = __readfsqword(0x28u); memset(tmp_flag, ...
gchar *processor_get_capabilities_from_flags(gchar *strflags, gchar *lookup_prefix) { gchar **flags, **old; gchar tmp_flag[64] = ""; const gchar *meaning; gchar *tmp = NULL; gint j = 0, i = 0; flags = g_strsplit(strflags, " ", 0); old = flags; while (flags[...
processor_get_capabilities_from_flags
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *processor_get_detailed_info(Processor *processor) { char *v1; char *v2; char *v3; gchar *model_name; char *v5; char *v6; gint family; gint model; gchar *strmodel; char *v11; gchar *vendor_id; char *v13; gchar *microcode; char *v15; char *v16; gint stepping; gint cache_size; ch...
gchar *processor_get_detailed_info(Processor *processor) { gchar *tmp_flags, *tmp_bugs, *tmp_pm, *tmp_cpufreq, *tmp_topology, *ret, *cache_info; tmp_flags = processor_get_capabilities_from_flags(processor->flags, ""); tmp_bugs = processor_get_capabilities_from_flags(processor->bugs, "bug:"); tmp_pm = pro...
processor_get_detailed_info
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *processor_get_info(GSList *processors) { char *name_short; gint core_id; gint socket_id; gchar *v4; char *v5; gchar *detailed_info; char *v7; char *v8; char *v9; char *v10; gchar *model_name; gchar *tmp; GSList *l; gchar *icons; gchar *meta; gchar *ret; Info *i; Processor *pro...
gchar *processor_get_info(GSList *processors) { Processor *processor; gchar *ret, *tmp, *hashkey; gchar *meta; GSList *l; gchar *icons = g_strdup(""); tmp = g_strdup_printf("$!CPU_META$%s=|Summary\n", "all"); meta = processor_meta(processors); moreinfo_add_with_prefix("DEV", "CPU_META", meta); for ...
processor_get_info
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *processor_meta(GSList *processors) { char *v1; char *v2; char *v3; char *v4; char *v5; const char *meta_cpu_desc; const char *meta_cpu_name; const char *meta_freq_desc; const char *meta_clocks; const char *meta_caches; const char *meta_dmi; gchar *ret; meta_cpu_name = processor_name(pr...
gchar *processor_meta(GSList *processors) { gchar *meta_cpu_name = processor_name(processors); gchar *meta_cpu_desc = processor_describe(processors); gchar *meta_freq_desc = processor_frequency_desc(processors); gchar *meta_clocks = clocks_summary(processors); gchar *meta_caches = caches_summary(processors); ...
processor_meta
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *processor_name(GSList *processors) { return processor_name_default(processors); }
gchar *processor_name(GSList *processors) { return processor_name_default(processors); }
processor_name
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *processor_name_default(GSList *processors) { long v1; const char *v2; const char *v3; gint cur_count; gchar *ret; gchar *reta; GSList *l; gchar *cur_str; GSList *tmp; Processor *p; ret = g_strdup(&unk_31194); cur_str = 0; cur_count = 0; v1 = g_slist_copy(processors); tmp = (GSList ...
gchar *processor_name_default(GSList *processors) { gchar *ret = g_strdup(""); GSList *tmp, *l; Processor *p; gchar *cur_str = NULL; gint cur_count = 0; tmp = g_slist_copy(processors); tmp = g_slist_sort(tmp, (GCompareFunc)proc_cmp_model_name); for (l = tmp; l; l = l->next) { p = (Processor *)l->d...
processor_name_default
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
GSList *processor_scan() { long v1; long v2; gfloat v3; gfloat v4; char *v5; const char *v6; const char *v7; const char *v8; const char *v9; const char *v10; const char *v11; const char *v12; const char *v13; const char *v14; const gchar *v15; const char *v16; GSList *procs; GSList *...
GSList *processor_scan(void) { GSList *procs = NULL, *l = NULL; Processor *processor = NULL; FILE *cpuinfo; gchar *buffer; buffer = g_malloc(PROC_SCAN_READ_BUFFER_SIZE); cpuinfo = fopen(PROC_CPUINFO, "r"); if (!cpuinfo) return NULL; while (fgets(buffer, PROC_SCAN_READ_BUFFER_SIZE, cpuinfo)) { ...
processor_scan
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gchar *read_contents(const gchar *base, const gchar *key) { gchar *value; gchar *path; unsigned long v5; v5 = __readfsqword(0x28u); path = (gchar *)g_strdup_printf("%s/%s", base, key); if (!path) return 0; if ((unsigned int)g_file_get_contents(path, &value, 0, 0)) { g_free(path); return (gcha...
static gchar *read_contents(const gchar *base, const gchar *key) { gchar *value; gchar *path; path = g_strdup_printf("%s/%s", base, key); if (!path) return NULL; if (!g_file_get_contents(path, &value, NULL, NULL)) { g_free(path); return NULL; } g_free(path); return g_strchomp(value); }
read_contents
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gboolean read_raw_hwmon_value(gchar *path_hwmon, const gchar *item_path_format, int item_id, gchar **result) { gboolean file_result; gchar *full_path; if (!item_path_format) return 0; full_path = (gchar *)g_strdup_printf(item_path_format, path_hwmon, ...
static gboolean read_raw_hwmon_value(gchar *path_hwmon, const gchar *item_path_format, int item_id, gchar **result) { gchar *full_path; gboolean file_result; if (item_path_format == NULL) return FALSE; full_path = g_strdup_printf(it...
read_raw_hwmon_value
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void read_sensor_labels(gchar *devname) { char *v1; long v2; long v3; long v4; char *v5; long v6; gboolean lock; gint i; gint ia; gint ib; FILE *conf; gchar *p; gchar *key; gchar *value; gchar *key_0; gchar *formula; gchar **names; gchar **formulas; gchar **chips; gchar buf[264];...
static void read_sensor_labels(gchar *devname) { FILE *conf; gchar buf[256], *line, *p; gboolean lock = FALSE; gint i; conf = fopen("/etc/sensors3.conf", "r"); if (!conf) conf = fopen("/etc/sensors.conf", "r"); if (!conf) { return; } while (fgets(buf, 256, conf)) { line = buf; re...
read_sensor_labels
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void read_sensors_acpi() { int temperature; gchar *contents; const gchar *path_tz; GDir *tz; const gchar *entry; gchar *path; unsigned long v6; v6 = __readfsqword(0x28u); path_tz = "/proc/acpi/thermal_zone"; if ((unsigned int)g_file_test("/proc/acpi/thermal_zone", 16)) { tz = (GDir *)g_dir_open...
static void read_sensors_acpi(void) { const gchar *path_tz = "/proc/acpi/thermal_zone"; if (g_file_test(path_tz, G_FILE_TEST_EXISTS)) { GDir *tz; if ((tz = g_dir_open(path_tz, 0, NULL))) { const gchar *entry; while ((entry = g_dir_read_name(tz))) { gchar *path = g_strdup_printf("%s/%s...
read_sensors_acpi
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void read_sensors_hddtemp() { const char *v0; int v1; gint len; int i; Socket *s; gchar **disks; const char **fields; const char *unit; gchar buffer[1032]; unsigned long v9; v9 = __readfsqword(0x28u); len = 0; s = (Socket *)sock_connect("127.0.0.1", 7634); if (s) { while (!len) le...
static void read_sensors_hddtemp(void) { Socket *s; gchar buffer[1024]; gint len = 0; if (!(s = sock_connect("127.0.0.1", 7634))) return; while (!len) len = sock_read(s, buffer, sizeof(buffer)); sock_close(s); if (len > 2 && buffer[0] == '|' && buffer[1] == '/') { gchar **disks; int i; ...
read_sensors_hddtemp
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void read_sensors_hwmon() { double v0; __m128i v1; __m128i v2; int hwmon; int count; int counta; int min; int max; gchar *tmp; gchar *name; GMatchInfo *match_info; GError *err; gchar *path_hwmon; const char **prefix; const HwmonSensor *sensor; gchar *devname; GDir *dir; GRegex *regex...
static void read_sensors_hwmon(void) { int hwmon, count, min, max; gchar *path_hwmon, *tmp, *devname, *name, *mon, *key; const char **prefix, *entry; GDir *dir; GRegex *regex; GMatchInfo *match_info; GError *err = NULL; for (prefix = hwmon_prefix; *prefix; prefix++) { hwmon = 0; path_hwmon = ge...
read_sensors_hwmon
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void read_sensors_omnibook() { int temperature; gchar *contents; const gchar *path_ob; unsigned long v3; v3 = __readfsqword(0x28u); path_ob = "/proc/omnibook/temperature"; if ((unsigned int)g_file_get_contents("/proc/omnibook/temperature", &contents, 0, 0)) { _...
static void read_sensors_omnibook(void) { const gchar *path_ob = "/proc/omnibook/temperature"; gchar *contents; if (g_file_get_contents(path_ob, &contents, NULL, NULL)) { int temperature; sscanf(contents, "CPU temperature: %d C", &temperature); add_sensor("Temperature", "CPU", "omnibook", temperatu...
read_sensors_omnibook
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void read_sensors_sys_thermal() { int temperature; gchar *contents; const gchar *path_tz; GDir *tz; gchar *temp; const gchar *entry; gchar *path; unsigned long v7; v7 = __readfsqword(0x28u); path_tz = "/sys/class/thermal"; if ((unsigned int)g_file_test("/sys/class/thermal", 16)) { tz = (GDir ...
static void read_sensors_sys_thermal(void) { const gchar *path_tz = "/sys/class/thermal"; if (g_file_test(path_tz, G_FILE_TEST_EXISTS)) { GDir *tz; if ((tz = g_dir_open(path_tz, 0, NULL))) { const gchar *entry; gchar *temp = g_strdup(""); while ((entry = g_dir_read_name(tz))) { ...
read_sensors_sys_thermal
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void read_sensors_udisks2() { GSList *node; GSList *temps; udiskt *disk; temps = (GSList *)get_udisks2_temps(); if (temps) { for (node = temps; node; node = node->next) { disk = (udiskt *)node->data; add_sensor("Drive Temperature", *(const char **)node->data, "udisks2", (doub...
void read_sensors_udisks2(void) { GSList *node; GSList *temps; udiskt *disk; temps = get_udisks2_temps(); if (temps == NULL) return; for (node = temps; node != NULL; node = node->next) { disk = (udiskt *)node->data; add_sensor("Drive Temperature", disk->drive, "udisks2", disk->temperature, ...
read_sensors_udisks2
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
gboolean root_required_for_resources() { return require_root; }
gboolean root_required_for_resources(void) { return _require_root; }
root_required_for_resources
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_battery(gboolean reload) { if (reload) scanned_10 = 0; if (!scanned_10) { scan_battery_do(); scanned_10 = 1; } }
void scan_battery(gboolean reload) { SCAN_START(); scan_battery_do(); SCAN_END(); }
scan_battery
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_battery_do() { char *v0; g_free(battery_list); battery_list = g_strdup(&unk_35591); _scan_battery_sysfs(); _scan_battery_acpi(); _scan_battery_apm(); _scan_battery_apcupsd(); if (!*battery_list) { g_free(battery_list); v0 = gettext("[No batteries]\nNo batteries found on this system=\n...
void scan_battery_do(void) { g_free(battery_list); battery_list = g_strdup(""); __scan_battery_sysfs(); __scan_battery_acpi(); __scan_battery_apm(); __scan_battery_apcupsd(); if (*battery_list == '\0') { g_free(battery_list); battery_list = g_strdup(_("[No batteries]\n" ...
scan_battery_do
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_device_resources(gboolean reload) { unsigned int i; gint zero_to_zero_addr; FILE *io; const char **temp; gchar *name; $B8B738F43F7E87233254E45CB7E9A665 resources[3]; char buffer[264]; unsigned long v8; v8 = __readfsqword(0x28u); if (reload) scanned_0 = 0; if (!scanned_0) { zero_...
void scan_device_resources(gboolean reload) { SCAN_START(); FILE *io; gchar buffer[256]; gint i; gint zero_to_zero_addr = 0; struct { gchar *file; gchar *description; } resources[] = {{"/proc/ioports", "[I/O Ports]\n"}, {"/proc/iomem", "[Memory]\n"}, {"/proc/...
scan_device_resources
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_dmi(gboolean reload) { if (reload) scanned_16 = 0; if (!scanned_16) { __scan_dmi(); scanned_16 = 1; } }
void scan_dmi(gboolean reload) { SCAN_START(); __scan_dmi(); SCAN_END(); }
scan_dmi
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_dmi_mem(gboolean reload) { if (reload) scanned_15 = 0; if (!scanned_15) { if (memory_devices_info) g_free(memory_devices_info); memory_devices_info = memory_devices_get_info(); scanned_15 = 1; } }
void scan_dmi_mem(gboolean reload) { SCAN_START(); if (memory_devices_info) g_free(memory_devices_info); memory_devices_info = memory_devices_get_info(); SCAN_END(); }
scan_dmi_mem
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_dtree(gboolean reload) { if (reload) scanned_12 = 0; if (!scanned_12) { __scan_dtree(); scanned_12 = 1; } }
void scan_dtree(gboolean reload) { SCAN_START(); __scan_dtree(); SCAN_END(); }
scan_dtree
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_firmware(gboolean reload) { if (reload) scanned_13 = 0; if (!scanned_13) { if (firmware_info) g_free(firmware_info); firmware_info = firmware_get_info(); scanned_13 = 1; } }
void scan_firmware(gboolean reload) { SCAN_START(); if (firmware_info) g_free(firmware_info); firmware_info = firmware_get_info(); SCAN_END(); }
scan_firmware
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_gpu(gboolean reload) { if (reload) scanned_9 = 0; if (!scanned_9) { scan_gpu_do(); scanned_9 = 1; } }
void scan_gpu(gboolean reload) { SCAN_START(); scan_gpu_do(); SCAN_END(); }
scan_gpu
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_gpu_do() { char *v0; char *v1; int c; gpud *curr; gpud *gpus; if (gpu_summary) g_free(gpu_summary); if (gpu_list) { moreinfo_del_with_prefix("DEV:GPU"); g_free(gpu_list); } gpu_summary = strdup(&s); v0 = gettext("GPUs"); gpu_list = (gchar *)g_strdup_printf("[%s]\n", v0); g...
void scan_gpu_do(void) { if (gpu_summary) g_free(gpu_summary); if (gpu_list) { moreinfo_del_with_prefix("DEV:GPU"); g_free(gpu_list); } gpu_summary = strdup(""); gpu_list = g_strdup_printf("[%s]\n", _("GPUs")); gpud *gpus = gpu_get_device_list(); gpud *curr = gpus; int c = gpud_list_count(...
scan_gpu_do
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_input(gboolean reload) { if (reload) scanned_4 = 0; if (!scanned_4) { __scan_input_devices(); scanned_4 = 1; } }
void scan_input(gboolean reload) { SCAN_START(); __scan_input_devices(); SCAN_END(); }
scan_input
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_monitors(gboolean reload) { if (reload) scanned_14 = 0; if (!scanned_14) { if (monitors_info) g_free(monitors_info); monitors_info = monitors_get_info(); scanned_14 = 1; } }
void scan_monitors(gboolean reload) { SCAN_START(); if (monitors_info) g_free(monitors_info); monitors_info = monitors_get_info(); SCAN_END(); }
scan_monitors
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_pci(gboolean reload) { if (reload) scanned_8 = 0; if (!scanned_8) { scan_pci_do(); scanned_8 = 1; } }
void scan_pci(gboolean reload) { SCAN_START(); scan_pci_do(); SCAN_END(); }
scan_pci
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_pci_do() { char *v0; long device_list; char *v2; int c; gchar *pci_icons; GSList *l; pcid_list list; if (pci_list) { moreinfo_del_with_prefix("DEV:PCI"); g_free(pci_list); } v0 = gettext("PCI Devices"); pci_list = (gchar *)g_strdup_printf("[%s]\n", v0); pci_icons = g_strdup(&b...
void scan_pci_do(void) { if (pci_list) { moreinfo_del_with_prefix("DEV:PCI"); g_free(pci_list); } pci_list = g_strdup_printf("[%s]\n", _("PCI Devices")); gchar *pci_icons = g_strdup(""); pcid_list list = pci_get_device_list(0, 0); list = g_slist_sort(list, pcid_cmp_by_addy); GSList *l = list; ...
scan_pci_do
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_printers(gboolean reload) { if (reload) scanned_6 = 0; if (!scanned_6) { scan_printers_do(); scanned_6 = 1; } }
void scan_printers(gboolean reload) { SCAN_START(); scan_printers_do(); SCAN_END(); }
scan_printers
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_printers_do() { char *v0; char *v1; gchar *v2; gchar *v3; char *v4; const char *v5; char *v6; int i; int j; unsigned int ja; int num_dests; CUPSDest *dests; gchar *prn_moreinfo; gchar *temp; GHashTable *options; gchar *prn_id; unsigned long v16; v16 = __readfsqword(0x28u);...
void scan_printers_do(void) { int num_dests, i, j; CUPSDest *dests; gchar *prn_id, *prn_moreinfo; g_free(printer_list); g_free(printer_icons); if (!cups_init) { init_cups(); printer_icons = g_strdup(""); printer_list = g_strdup(_("[Printers]\n" "No suitable CUPS ...
scan_printers_do
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_processors(gboolean reload) { if (reload) scanned_11 = 0; if (!scanned_11) { if (!processors) processors = processor_scan(); scanned_11 = 1; } }
void scan_processors(gboolean reload) { SCAN_START(); if (!processors) processors = processor_scan(); SCAN_END(); }
scan_processors
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_sensors(gboolean reload) { if (reload) scanned_7 = 0; if (!scanned_7) { scan_sensors_do(); scanned_7 = 1; } }
void scan_sensors(gboolean reload) { SCAN_START(); scan_sensors_do(); SCAN_END(); }
scan_sensors
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0
void scan_sensors_do() { g_free(sensors); g_free(sensor_icons); g_free(last_group); last_group = 0; sensors = g_strdup(&unk_3C3F5); sensor_icons = g_strdup(&unk_3C3F5); g_free(lginterval); lginterval = g_strdup(&unk_3C3F5); read_sensors_hwmon(); read_sensors_acpi(); read_sensors_sys_thermal(); r...
void scan_sensors_do(void) { g_free(sensors); g_free(sensor_icons); g_free(last_group); last_group = NULL; sensors = g_strdup(""); sensor_icons = g_strdup(""); g_free(lginterval); lginterval = g_strdup(""); read_sensors_hwmon(); read_sensors_acpi(); read_sensors_sys_thermal(); read_sensors_omn...
scan_sensors_do
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/devices.so
ida
O0