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
PyObject *signalCaught(PyObject *self, PyObject *o) { int IsCaught; int signo; unsigned long v5; v5 = __readfsqword(0x28u); if (!(unsigned int)_PyArg_Parse_SizeT(o, &aSipa[1], &signo)) return 0; IsCaught = rpmsqIsCaught((unsigned int)signo); return (PyObject *)PyBool_FromLong(IsCaught); }
static PyObject *signalCaught(PyObject *self, PyObject *o) { int signo; if (!PyArg_Parse(o, "i", &signo)) return NULL; return PyBool_FromLong(rpmsqIsCaught(signo)); }
signalCaught
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *specPkg_Wrap(PyTypeObject *subtype, rpmSpecPkg pkg, specObject *source) { specPkgObject *s; s = (specPkgObject *)subtype->tp_alloc(subtype, 0); if (!s) return 0; s->pkg = pkg; s->source_spec = source; Py_INCREF_15(&s->source_spec->ob_base); return &s->ob_base; }
PyObject *specPkg_Wrap(PyTypeObject *subtype, rpmSpecPkg pkg, specObject *source) { specPkgObject *s = (specPkgObject *)subtype->tp_alloc(subtype, 0); if (s == NULL) return NULL; s->pkg = pkg; s->source_spec = source; Py_INCREF(s->source_spec); return (PyObject *)s; }
specPkg_Wrap
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
void specPkg_dealloc(specPkgObject *s) { Py_DECREF_12(&s->source_spec->ob_base); }
static void specPkg_dealloc(specPkgObject *s) { Py_DECREF(s->source_spec); }
specPkg_dealloc
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *spec_Wrap(PyTypeObject *subtype, rpmSpec spec) { specObject *s; s = (specObject *)subtype->tp_alloc(subtype, 0); if (!s) return 0; s->spec = spec; return &s->ob_base; }
PyObject *spec_Wrap(PyTypeObject *subtype, rpmSpec spec) { specObject *s = (specObject *)subtype->tp_alloc(subtype, 0); if (s == NULL) return NULL; s->spec = spec; return (PyObject *)s; }
spec_Wrap
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
void spec_dealloc(specObject *s) { if (s->spec) s->spec = (rpmSpec)rpmSpecFree(s->spec); s->ob_base.ob_type->tp_free(s); }
static void spec_dealloc(specObject *s) { if (s->spec) { s->spec = rpmSpecFree(s->spec); } Py_TYPE(s)->tp_free((PyObject *)s); }
spec_dealloc
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *spec_doBuild(specObject *self, PyObject *args, PyObject *kwds) { int v4; rpmts ts; rpmBuildArguments_s ba; char *kwlist[4]; unsigned long v8; v8 = __readfsqword(0x28u); kwlist[0] = "ts"; kwlist[1] = "buildAmount"; kwlist[2] = "pkgFlags"; kwlist[3] = 0; memset(&ba, 0, sizeof(ba)); if (...
static PyObject *spec_doBuild(specObject *self, PyObject *args, PyObject *kwds) { char *kwlist[] = {"ts", "buildAmount", "pkgFlags", NULL}; struct rpmBuildArguments_s ba = {0}; rpmts ts; if (!PyArg_ParseTupleAndKeywords(args, kwds, "o&i|i:spec_doBuild", kwlist, ...
spec_doBuild
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *spec_get_build(specObject *s, void *closure) { return getSection(s->spec, 2); }
static PyObject *spec_get_build(specObject *s, void *closure) { return getSection(s->spec, RPMBUILD_BUILD); }
spec_get_build
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *spec_get_check(specObject *s, void *closure) { return getSection(s->spec, 8); }
static PyObject *spec_get_check(specObject *s, void *closure) { return getSection(s->spec, RPMBUILD_CHECK); }
spec_get_check
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *spec_get_clean(specObject *s, void *closure) { return getSection(s->spec, 16); }
static PyObject *spec_get_clean(specObject *s, void *closure) { return getSection(s->spec, RPMBUILD_CLEAN); }
spec_get_clean
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *spec_get_install(specObject *s, void *closure) { return getSection(s->spec, 4); }
static PyObject *spec_get_install(specObject *s, void *closure) { return getSection(s->spec, RPMBUILD_INSTALL); }
spec_get_install
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *spec_get_packages(specObject *s, void *closure) { PyObject *pkgList; rpmSpecPkgIter iter; Package_s *pkg; PyObject *po; pkgList = (PyObject *)PyList_New(0); if (!pkgList) return 0; iter = (rpmSpecPkgIter)rpmSpecPkgIterInit(s->spec); while (1) { pkg = (Package_s *)rpmSpecPkgIterNext(it...
static PyObject *spec_get_packages(specObject *s, void *closure) { rpmSpecPkg pkg; PyObject *pkgList; rpmSpecPkgIter iter; pkgList = PyList_New(0); if (!pkgList) { return NULL; } iter = rpmSpecPkgIterInit(s->spec); while ((pkg = rpmSpecPkgIterNext(iter)) != NULL) { PyObject *po = specPkg_Wrap...
spec_get_packages
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *spec_get_parsed(specObject *s, void *closure) { return getSection(s->spec, 0); }
static PyObject *spec_get_parsed(specObject *s, void *closure) { return getSection(s->spec, RPMBUILD_NONE); }
spec_get_parsed
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *spec_get_prep(specObject *s, void *closure) { return getSection(s->spec, 1); }
static PyObject *spec_get_prep(specObject *s, void *closure) { return getSection(s->spec, RPMBUILD_PREP); }
spec_get_prep
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *spec_get_source_header(specObject *s, void *closure) { headerToken_s *v2; v2 = (headerToken_s *)rpmSpecSourceHeader(s->spec); return makeHeader(v2); }
static PyObject *spec_get_source_header(specObject *s, void *closure) { return makeHeader(rpmSpecSourceHeader(s->spec)); }
spec_get_source_header
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *spec_get_sources(specObject *s, void *closure) { const char *v3; PyObject *v4; PyObject *sourceList; rpmSpecSrcIter iter; rpmSpecSrc source; PyObject *srcUrl; sourceList = (PyObject *)PyList_New(0); if (!sourceList) return 0; iter = (rpmSpecSrcIter)rpmSpecSrcIterInit(s->spec); while (...
static PyObject *spec_get_sources(specObject *s, void *closure) { PyObject *sourceList; rpmSpecSrc source; sourceList = PyList_New(0); if (!sourceList) { return NULL; } rpmSpecSrcIter iter = rpmSpecSrcIterInit(s->spec); while ((source = rpmSpecSrcIterNext(iter)) != NULL) { PyObject *srcUrl = ...
spec_get_sources
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *spec_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) { const char *specfile; rpmSpec spec; char *kwlist[3]; unsigned long v7; v7 = __readfsqword(0x28u); kwlist[0] = "specfile"; kwlist[1] = "flags"; kwlist[2] = 0; spec = 0; if (!(unsigned int)_PyArg_ParseTupleAndKeywords_SizeT( ...
static PyObject *spec_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) { char *kwlist[] = {"specfile", "flags", NULL}; const char *specfile; rpmSpec spec = NULL; rpmSpecFlags flags = (RPMSPEC_ANYARCH | RPMSPEC_FORCE); if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|i:spec...
spec_new
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *specpkg_get_fileFile(specPkgObject *s, void *closure) { return pkgGetSection(s->pkg, 0x10000); }
static PyObject *specpkg_get_fileFile(specPkgObject *s, void *closure) { return pkgGetSection(s->pkg, RPMBUILD_FILE_FILE); }
specpkg_get_fileFile
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *specpkg_get_fileList(specPkgObject *s, void *closure) { return pkgGetSection( s->pkg, (int)"ename', 'Requirename', 'Obsoletename',\n\t'Conflictname', " "'Triggername', 'Recommendname', " "'Suggestname',\n\t'Supplementname', 'Enhancename'"); }
static PyObject *specpkg_get_fileList(specPkgObject *s, void *closure) { return pkgGetSection(s->pkg, RPMBUILD_FILE_LIST); }
specpkg_get_fileList
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *specpkg_get_header(specPkgObject *s, void *closure) { headerToken_s *v2; v2 = (headerToken_s *)rpmSpecPkgHeader(s->pkg); return makeHeader(v2); }
static PyObject *specpkg_get_header(specPkgObject *s, void *closure) { return makeHeader(rpmSpecPkgHeader(s->pkg)); }
specpkg_get_header
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *specpkg_get_policyList(specPkgObject *s, void *closure) { return pkgGetSection(s->pkg, 0x40000); }
static PyObject *specpkg_get_policyList(specPkgObject *s, void *closure) { return pkgGetSection(s->pkg, RPMBUILD_POLICY); }
specpkg_get_policyList
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
void strpool_dealloc(rpmstrPoolObject *s) { s->pool = (rpmstrPool)rpmstrPoolFree(s->pool); s->ob_base.ob_type->tp_free(s); }
static void strpool_dealloc(rpmstrPoolObject *s) { s->pool = rpmstrPoolFree(s->pool); Py_TYPE(s)->tp_free((PyObject *)s); }
strpool_dealloc
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *strpool_freeze(rpmstrPoolObject *s, PyObject *args, PyObject *kwds) { int keephash; char *kwlist[2]; unsigned long v6; v6 = __readfsqword(0x28u); kwlist[0] = "keephash"; kwlist[1] = 0; keephash = 0; if (!(unsigned int)_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|i", ...
static PyObject *strpool_freeze(rpmstrPoolObject *s, PyObject *args, PyObject *kwds) { char *kwlist[] = {"keephash", NULL}; int keephash = 0; if (!PyArg_ParseTupleAndKeywords(args, kwds, "|i", kwlist, &keephash)) return NULL; rpmstrPoolFreeze(s->pool, keephash); Py_RETURN...
strpool_freeze
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *strpool_id2str(rpmstrPoolObject *s, PyObject *item) { rpmsid id; PyObject *ret; const char *str; unsigned long v6; v6 = __readfsqword(0x28u); ret = 0; id = 0; if ((unsigned int)_PyArg_Parse_SizeT(item, "I", &id)) { str = (const char *)rpmstrPoolStr(s->pool, id); if (str) return ...
static PyObject *strpool_id2str(rpmstrPoolObject *s, PyObject *item) { PyObject *ret = NULL; rpmsid id = 0; if (PyArg_Parse(item, "I", &id)) { const char *str = rpmstrPoolStr(s->pool, id); if (str) ret = utf8FromString(str); else PyErr_SetObject(PyExc_KeyError, item); } return ret; }
strpool_id2str
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
Py_ssize_t strpool_length(rpmstrPoolObject *s) { return (unsigned int)rpmstrPoolNumStr(s->pool); }
static Py_ssize_t strpool_length(rpmstrPoolObject *s) { return rpmstrPoolNumStr(s->pool); }
strpool_length
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *strpool_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) { return rpmstrPool_Wrap(subtype, 0); }
static PyObject *strpool_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) { return rpmstrPool_Wrap(subtype, NULL); }
strpool_new
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *strpool_str2id(rpmstrPoolObject *s, PyObject *args, PyObject *kwds) { unsigned int v4; const char *str; char *kwlist[3]; unsigned long v7; v7 = __readfsqword(0x28u); kwlist[0] = "str"; kwlist[1] = "create"; kwlist[2] = 0; str = 0; if (!(unsigned int)_PyArg_ParseTupleAndKeywords_SizeT(args...
static PyObject *strpool_str2id(rpmstrPoolObject *s, PyObject *args, PyObject *kwds) { char *kwlist[] = {"str", "create", NULL}; const char *str = NULL; int create = 1; if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|i", kwlist, &str, &create)) return NULL; return PyLong_...
strpool_str2id
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *strpool_unfreeze(rpmstrPoolObject *s) { rpmstrPoolUnfreeze(s->pool); Py_INCREF_10(&Py_NoneStruct); return &Py_NoneStruct; }
static PyObject *strpool_unfreeze(rpmstrPoolObject *s) { rpmstrPoolUnfreeze(s->pool); Py_RETURN_NONE; }
strpool_unfreeze
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
int tagNumFromPyObject(PyObject *item, rpmTagVal *tagp) { long v2; rpmTagVal tag; PyObject *str[2]; str[1] = (PyObject *)__readfsqword(0x28u); str[0] = 0; if (PyType_HasFeature(item->ob_type, 0x1000000u)) { tag = PyLong_AsLong(item); } else { if (!utf8FromPyObject(item, str)) { PyErr_SetStr...
int tagNumFromPyObject(PyObject *item, rpmTagVal *tagp) { rpmTagVal tag = RPMTAG_NOT_FOUND; PyObject *str = NULL; if (PyLong_Check(item)) { tag = PyLong_AsLong(item); } else if (utf8FromPyObject(item, &str)) { tag = rpmTagGetValue(PyBytes_AsString(str)); Py_DECREF(str); } else { PyErr_SetStr...
tagNumFromPyObject
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
int utf8FromPyObject(PyObject *item, PyObject **str) { PyObject *res; res = 0; if (PyType_HasFeature(item->ob_type, 0x8000000u)) { Py_XINCREF(item); res = item; } else if (PyType_HasFeature(item->ob_type, 0x10000000u)) { res = (PyObject *)PyUnicode_AsUTF8String(item); } if (!res) return 0; ...
int utf8FromPyObject(PyObject *item, PyObject **str) { PyObject *res = NULL; if (PyBytes_Check(item)) { Py_XINCREF(item); res = item; } else if (PyUnicode_Check(item)) { res = PyUnicode_AsUTF8String(item); } if (res == NULL) return 0; *str = res; return 1; }
utf8FromPyObject
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *utf8FromString(const char *s) { size_t v1; if (s) { v1 = strlen(s); return PyUnicode_DecodeUTF8(s, v1, "surrogateescape"); } else { Py_INCREF_0(&Py_NoneStruct); return &Py_NoneStruct; } }
PyObject *utf8FromString(const char *s) { if (s != NULL) return PyUnicode_DecodeUTF8(s, strlen(s), "surrogateescape"); Py_RETURN_NONE; }
utf8FromString
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
int validData(rpmTagVal tag, rpmTagType type, rpmTagReturnType retype, PyObject *value) { _BOOL4 valid; rpmTagClass tclass; Py_ssize_t i; Py_ssize_t len; PyObject *item; tclass = (unsigned int)rpmTagGetClass((unsigned int)tag); if (retype == 0x10000) return validItem(tclass, value); i...
static int validData(rpmTagVal tag, rpmTagType type, rpmTagReturnType retype, PyObject *value) { rpmTagClass tclass = rpmTagGetClass(tag); int valid = 1; if (retype == RPM_SCALAR_RETURN_TYPE) { valid = validItem(tclass, value); } else if (retype == RPM_ARRAY_RETURN_TYPE && PyList_Check...
validData
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
int validItem(rpmTagClass tclass, PyObject *item) { if (tclass == rpmTagClass_e_RPM_BINARY_CLASS) return PyType_HasFeature(item->ob_type, 0x8000000u); if ((unsigned int)tclass > rpmTagClass_e_RPM_BINARY_CLASS) return 0; if (tclass == rpmTagClass_e_RPM_NUMERIC_CLASS) return PyType_HasFeature(item->ob_t...
static int validItem(rpmTagClass tclass, PyObject *item) { int rc; switch (tclass) { case RPM_NUMERIC_CLASS: rc = PyLong_Check(item); break; case RPM_STRING_CLASS: rc = (PyBytes_Check(item) || PyUnicode_Check(item)); break; case RPM_BINARY_CLASS: rc = PyBytes_Check(item); break; def...
validItem
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
int verFromPyObject(PyObject *o, rpmver *ver) { long v2; long v3; rpmver *vera; const char *e; const char *v; const char *r; rpmver rv; unsigned long v10; vera = ver; v10 = __readfsqword(0x28u); rv = 0; if (PyType_HasFeature_7(o->ob_type, 0x10000000u)) { r = 0; if (utf8FromPyObject(o, (...
int verFromPyObject(PyObject *o, rpmver *ver) { rpmver rv = NULL; if (PyUnicode_Check(o)) { PyObject *str = NULL; if (utf8FromPyObject(o, &str)) rv = rpmverParse(PyBytes_AsString(str)); Py_XDECREF(str); } else if (PyTuple_Check(o)) { const char *e = NULL; const char *v = NULL; const ...
verFromPyObject
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
void ver_dealloc(rpmverObject *s) { s->ver = (rpmver)rpmverFree(s->ver); s->ob_base.ob_type->tp_free(s); }
static void ver_dealloc(rpmverObject *s) { s->ver = rpmverFree(s->ver); Py_TYPE(s)->tp_free((PyObject *)s); }
ver_dealloc
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *ver_get_e(rpmverObject *s) { const char *v1; v1 = (const char *)rpmverE(s->ver); return utf8FromString(v1); }
static PyObject *ver_get_e(rpmverObject *s) { return utf8FromString(rpmverE(s->ver)); }
ver_get_e
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *ver_get_evr(rpmverObject *s) { char *v; PyObject *vo; v = (char *)rpmverEVR(s->ver); vo = utf8FromString(v); free(v); return vo; }
static PyObject *ver_get_evr(rpmverObject *s) { char *v = rpmverEVR(s->ver); PyObject *vo = utf8FromString(v); free(v); return vo; }
ver_get_evr
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *ver_get_r(rpmverObject *s) { const char *v1; v1 = (const char *)rpmverR(s->ver); return utf8FromString(v1); }
static PyObject *ver_get_r(rpmverObject *s) { return utf8FromString(rpmverR(s->ver)); }
ver_get_r
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *ver_get_v(rpmverObject *s) { const char *v1; v1 = (const char *)rpmverV(s->ver); return utf8FromString(v1); }
static PyObject *ver_get_v(rpmverObject *s) { return utf8FromString(rpmverV(s->ver)); }
ver_get_v
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *ver_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) { char *kwlist[2]; unsigned long v5; v5 = __readfsqword(0x28u); kwlist[0] = "evr"; kwlist[1] = 0; if (!(unsigned int)_PyArg_ParseTupleAndKeywords_SizeT( args, kwds, "O&", kwlist, verFromPyObject)) return 0; if (!PyErr_...
static PyObject *ver_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) { char *kwlist[] = {"evr", NULL}; rpmver rv = NULL; if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&", kwlist, verFromPyObject, &rv)) return NULL; if (rv == NULL && !...
ver_new
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *ver_richcmp(rpmverObject *s, rpmverObject *o, int op) { _BOOL4 v; if (s->ob_base.ob_type == &rpmver_Type && o->ob_base.ob_type == &rpmver_Type) { switch (op) { case 0: v = (int)rpmverCmp(s->ver, o->ver) < 0; break; case 1: v = (int)rpmverCmp(s->ver, o->ver) <= 0; ...
static PyObject *ver_richcmp(rpmverObject *s, rpmverObject *o, int op) { int v; if (!(verObject_Check(s) && verObject_Check(o))) Py_RETURN_NOTIMPLEMENTED; switch (op) { case Py_LT: v = rpmverCmp(s->ver, o->ver) < 0; break; case Py_LE: v = rpmverCmp(s->ver, o->ver) <= 0; break; case Py_...
ver_richcmp
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
PyObject *versionCompare(PyObject *self, PyObject *args, PyObject *kwds) { unsigned int v4; hdrObject *h1; hdrObject *h2; char *kwlist[3]; unsigned long v8; v8 = __readfsqword(0x28u); kwlist[0] = "version0"; kwlist[1] = "version1"; kwlist[2] = 0; if (!(unsigned int)_PyArg_ParseTupleAndKeywords_Size...
PyObject *versionCompare(PyObject *self, PyObject *args, PyObject *kwds) { hdrObject *h1, *h2; char *kwlist[] = {"version0", "version1", NULL}; if (!PyArg_ParseTupleAndKeywords(args, kwds, "O!O!", kwlist, &hdr_Type, &h1, &hdr_Type, &h2)) return NULL; return Py_BuildValue...
versionCompare
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/_rpm.so
ida
O0
void add_subdoc(xar_t x) { int fd; unsigned int len; xar_subdoc_t s; unsigned char *buf; stat sb; unsigned long v6; v6 = __readfsqword(0x28u); if (!SubdocName) SubdocName = "subdoc"; fd = open(Subdoc, 0); if (fd >= 0) { s = (xar_subdoc_t)xar_subdoc_new(x, SubdocName); fstat(fd, &sb); ...
static void add_subdoc(xar_t x) { xar_subdoc_t s; int fd; unsigned char *buf; unsigned int len; struct stat sb; if (SubdocName == NULL) SubdocName = "subdoc"; fd = open(Subdoc, O_RDONLY); if (fd < 0) { fprintf(stderr, "ERROR: subdoc file %s doesn't exist. Ignoring.\n", Subdoc); ...
add_subdoc
xar-1.8-r2
app-arch
O0/app-arch/xar-1.8-r2/xar
ida
O0
int archive(const char *filename, int arglen, char **args) { const char *v3; int flags; int exclude_match; int nocompress_match; lnode *i; lnode *ia; lnode *ib; lnode *ic; lnode *id; lnode *ie; char *default_compression; const __xar_t *x; FTS *fts; FTSENT *ent; lnode *tmp_0; lnode *tmp; ...
static int archive(const char *filename, int arglen, char *args[]) { xar_t x; FTS *fts; FTSENT *ent; int flags; struct lnode *i; const char *default_compression; x = xar_open(filename, WRITE); if (!x) { fprintf(stderr, "Error creating archive %s\n", filename); exit(1); } if (Toccksum) ...
archive
xar-1.8-r2
app-arch
O0/app-arch/xar-1.8-r2/xar
ida
O0
int dump_header(const char *filename) { unsigned long v1; uint32_t v2; uint16_t v3; uint16_t v4; long v5; long v6; uint32_t v7; int fd; xar_header_t xh; unsigned long v11; v11 = __readfsqword(0x28u); if (filename) { fd = open(filename, 0); if (fd < 0) { perror("open"); exit(...
static int dump_header(const char *filename) { int fd; xar_header_t xh; if (filename == NULL) fd = 0; else { fd = open(filename, O_RDONLY); if (fd < 0) { perror("open"); exit(1); } } if (read(fd, &xh, sizeof(xh)) < sizeof(xh)) { fprintf(stderr, "error reading header\n"); ...
dump_header
xar-1.8-r2
app-arch
O0/app-arch/xar-1.8-r2/xar
ida
O0
int dumptoc(const char *filename, const char *tocfile) { xar_t x; x = (xar_t)xar_open(filename, 0); if (!x) { fprintf(stderr, "Error opening xar archive: %s\n", filename); exit(1); } xar_serialize(x, tocfile); xar_close(x); return Err; }
static int dumptoc(const char *filename, const char *tocfile) { xar_t x; x = xar_open(filename, READ); if (!x) { fprintf(stderr, "Error opening xar archive: %s\n", filename); exit(1); } xar_serialize(x, tocfile); xar_close(x); return Err; }
dumptoc
xar-1.8-r2
app-arch
O0/app-arch/xar-1.8-r2/xar
ida
O0
int32_t err_callback(int32_t sev, int32_t err, xar_errctx_t ctx, void *usrctx) { char *v4; int e; const __xar_t *x; const __xar_file_t *f; const char *str; char *file; x = (const __xar_t *)xar_err_get_archive(ctx); f = (const __xar_file_t *)xar_err_get_file(ctx); str = (const char *)xar_err_get_strin...
static int32_t err_callback(int32_t sev, int32_t err, xar_errctx_t ctx, void *usrctx) { xar_file_t f; xar_t x; const char *str; int e; x = xar_err_get_archive(ctx); f = xar_err_get_file(ctx); str = xar_err_get_string(ctx); e = xar_err_get_errno(ctx); switch (sev) { case...
err_callback
xar-1.8-r2
app-arch
O0/app-arch/xar-1.8-r2/xar
ida
O0
int extract(const char *filename, int arglen, char **args) { int files_extracted; int argi; int matched; int exclude_match; int deferred; int err; int erra; const char *prop; xar_file_t f; lnode *extract_files; lnode *extract_tail; lnode *lnodei; lnode *dirs; lnode *i_0; xar_t x; xar_ite...
static int extract(const char *filename, int arglen, char *args[]) { xar_t x; xar_iter_t i; xar_file_t f; int files_extracted = 0; int argi; struct lnode *extract_files = NULL; struct lnode *extract_tail = NULL; struct lnode *lnodei = NULL; struct lnode *dirs = NULL; for (argi = 0; args[argi]; argi...
extract
xar-1.8-r2
app-arch
O0/app-arch/xar-1.8-r2/xar
ida
O0
void extract_subdoc(xar_t x, const char *name) { int size; int fd; unsigned char *sdoc; xar_subdoc_t i; const char *sname; unsigned long v7; v7 = __readfsqword(0x28u); for (i = (xar_subdoc_t)xar_subdoc_first(x); i; i = (xar_subdoc_t)xar_subdoc_next(i)) { sname = (const char *)xar_subdoc_name...
static void extract_subdoc(xar_t x, const char *name) { xar_subdoc_t i; for (i = xar_subdoc_first(x); i; i = xar_subdoc_next(i)) { const char *sname = xar_subdoc_name(i); unsigned char *sdoc; int fd, size; if (name && strcmp(name, sname) != 0) continue; xar_subdoc_copyout(i, &sdoc, (unsig...
extract_subdoc
xar-1.8-r2
app-arch
O0/app-arch/xar-1.8-r2/xar
ida
O0
int list(const char *filename, int arglen, char **args) { int argi; int matched; int err; const __xar_file_t *f; lnode *list_files; lnode *list_tail; lnode *lnodei; lnode *lnodeia; const __xar_t *x; xar_iter_t i; lnode *tmp_0; char *path; lnode *tmp; char errstr[1032]; unsigned long v19; ...
static int list(const char *filename, int arglen, char *args[]) { xar_t x; xar_iter_t i; xar_file_t f; int argi = 0; struct lnode *list_files = NULL; struct lnode *list_tail = NULL; struct lnode *lnodei = NULL; for (argi = 0; args[argi]; argi++) { struct lnode *tmp; int err; tmp = malloc(si...
list
xar-1.8-r2
app-arch
O0/app-arch/xar-1.8-r2/xar
ida
O0
int list_subdocs(const char *filename) { const char *v1; xar_subdoc_t s; xar_t x; x = (xar_t)xar_open(filename, 0); if (!x) { fprintf(stderr, "Error opening xar archive: %s\n", filename); exit(1); } for (s = (xar_subdoc_t)xar_subdoc_first(x); s; s = (xar_subdoc_t)xar_subdoc_next(s)) { ...
static int list_subdocs(const char *filename) { xar_t x; xar_subdoc_t s; x = xar_open(filename, READ); if (!x) { fprintf(stderr, "Error opening xar archive: %s\n", filename); exit(1); } for (s = xar_subdoc_first(x); s; s = xar_subdoc_next(s)) { printf("%s\n", xar_subdoc_name(s)); } xar_clo...
list_subdocs
xar-1.8-r2
app-arch
O0/app-arch/xar-1.8-r2/xar
ida
O0
int main(int argc, const char **argv, const char **envp) { char *v3; char **v5; char **v6; char **v7; char command; char c; int loptind; int i; int required_dash_f; int i_0; int arglen; int ret; int err; char *filename; const char *tocfile; char **args; xar_t x; lnode *tmp; long lo...
int main(int argc, char *argv[]) { int ret; char *filename = NULL; char command = 0, c; char **args; const char *tocfile = NULL; int arglen, i, err; xar_t x; int loptind = 0; int required_dash_f = 0; struct lnode *tmp; long int longtmp; struct option o[] = {{"toc-cksum", required_argument, 0, 1}...
main
xar-1.8-r2
app-arch
O0/app-arch/xar-1.8-r2/xar
ida
O0
void print_file(xar_t x, xar_file_t f) { char *size; char *path; char *type; char *mode; char *user; char *group; char *mtime; char *path_0; if (List && Verbose) { size = (char *)xar_get_size(x, f); path = (char *)xar_get_path(f); type = (char *)xar_get_type(x, f); mode = (char *)xar_...
static void print_file(xar_t x, xar_file_t f) { if (List && Verbose) { char *size = xar_get_size(x, f); char *path = xar_get_path(f); char *type = xar_get_type(x, f); char *mode = xar_get_mode(x, f); char *user = xar_get_owner(x, f); char *group = xar_get_group(x, f); char *mtime = xar_get...
print_file
xar-1.8-r2
app-arch
O0/app-arch/xar-1.8-r2/xar
ida
O0
void print_version() { printf("xar %s\n", "1.8dev"); }
static void print_version() { printf("xar %s\n", XAR_VERSION); }
print_version
xar-1.8-r2
app-arch
O0/app-arch/xar-1.8-r2/xar
ida
O0
void usage(const char *prog) { fprintf(stderr, "Usage: %s -[ctx][v] -f <archive> ...\n", prog); fwrite("\t-c Creates an archive\n", 1u, 0x25u, stderr); fwrite("\t-x Extracts an archive\n", 1u, 0x26u, stderr); fwrite("\t-t Lists an archive\n", 1u, 0x23u, stderr); fwrit...
static void usage(const char *prog) { fprintf(stderr, "Usage: %s -[ctx][v] -f <archive> ...\n", prog); fprintf(stderr, "\t-c Creates an archive\n"); fprintf(stderr, "\t-x Extracts an archive\n"); fprintf(stderr, "\t-t Lists an archive\n"); fprintf( stderr, ...
usage
xar-1.8-r2
app-arch
O0/app-arch/xar-1.8-r2/xar
ida
O0
bool FileExists(const std_string *filename) { const char *v1; FILE *file; v1 = (const char *)std_string_c_str(filename); file = fopen(v1, "rb"); if (!file) return 0; fclose(file); return 1; }
bool FileExists(const std::string &filename) { FILE *file = fopen(filename.c_str(), "rb"); if (file) { fclose(file); return true; } return false; }
FileExists
zopfli-1.0.3
app-arch
O0/app-arch/zopfli-1.0.3/zopflipng
ida
O0
void GetFileNameParts(const std_string *filename, std_string *dir, std_string *file, std_string *ext) { size_t slashpos; size_t dotpos; std_string nodir; _BYTE v9[32]; _BYTE v10[32]; _BYTE v11[32]; _BYTE v12[40]; unsigned long v13; v13 = __readfsqword(0x28u); slashpos = std_st...
void GetFileNameParts(const std::string &filename, std::string *dir, std::string *file, std::string *ext) { size_t npos = (size_t)(-1); size_t slashpos = filename.find_last_of("/\\"); std::string nodir; if (slashpos == npos) { *dir = ""; nodir = filename; } else { *dir = file...
GetFileNameParts
zopfli-1.0.3
app-arch
O0/app-arch/zopfli-1.0.3/zopflipng
ida
O0
size_t GetFileSize(const std_string *filename) { const char *v1; FILE *file; long size; v1 = (const char *)std_string_c_str(filename); file = fopen(v1, "rb"); if (!file) return 0; fseek(file, 0, 2); size = ftell(file); fclose(file); return size; }
size_t GetFileSize(const std::string &filename) { size_t size; FILE *file = fopen(filename.c_str(), "rb"); if (!file) return 0; fseek(file, 0, SEEK_END); size = static_cast<size_t>(ftell(file)); fclose(file); return size; }
GetFileSize
zopfli-1.0.3
app-arch
O0/app-arch/zopfli-1.0.3/zopflipng
ida
O0
void PrintResultSize(const char *label, size_t oldsize, size_t newsize) { double v3; double v4; double v5; if ((newsize & 0x8000000000000000LL) != 0LL) v3 = (double)(int)(newsize & 1 | (newsize >> 1)) + (double)(int)(newsize & 1 | (newsize >> 1)); else v3 = (double)(int)newsize; v4 = 100.0...
void PrintResultSize(const char *label, size_t oldsize, size_t newsize) { printf("%s: %d (%dK). Percentage of original: %.3f%%\n", label, (int)newsize, (int)newsize / 1024, newsize * 100.0 / oldsize); }
PrintResultSize
zopfli-1.0.3
app-arch
O0/app-arch/zopfli-1.0.3/zopflipng
ida
O0
void PrintSize(const char *label, size_t size) { printf("%s: %d (%dK)\n", label, size, (int)size / 1024); }
void PrintSize(const char *label, size_t size) { printf("%s: %d (%dK)\n", label, (int)size, (int)size / 1024); }
PrintSize
zopfli-1.0.3
app-arch
O0/app-arch/zopfli-1.0.3/zopflipng
ida
O0
void ShowHelp() { puts("ZopfliPNG, a Portable Network Graphics (PNG) image optimizer.\n" "\n" "Usage: zopflipng [options]... infile.png outfile.png\n" " zopflipng [options]... --prefix=[fileprefix] [files.png]...\n" "\n" "If the output file exists, it is considered a result fr...
void ShowHelp() { printf("ZopfliPNG, a Portable Network Graphics (PNG) image optimizer.\n" "\n" "Usage: zopflipng [options]... infile.png outfile.png\n" " zopflipng [options]... --prefix=[fileprefix] [files.png]...\n" "\n" "If the output file exists, it is considered...
ShowHelp
zopfli-1.0.3
app-arch
O0/app-arch/zopfli-1.0.3/zopflipng
ida
O0
int main(int argc, const char **argv, const char **envp) { int v3; int v5; char v7; const char *v8; int v9; const char *v12; std_vector<std_string> _reference v13; size_t v14; const std_string *v16; _BOOL4 v17; std_vector<std_string> _reference v18; const char *v19; std_vector<std_string> _ref...
int main(int argc, char *argv[]) { if (argc < 2) { ShowHelp(); return 0; } ZopfliPNGOptions png_options; bool always_zopflify = false; bool yes = false; bool dryrun = false; std::string user_out_filename; bool use_prefix = false; std::string prefix = "zopfli_"; std::vector<std::string> f...
main
zopfli-1.0.3
app-arch
O0/app-arch/zopfli-1.0.3/zopflipng
ida
O0
void add_module_entry_to_view_menu(gchar *module, gchar *name, GdkPixbuf *pixbuf, GtkTreeIter *iter) { Shell *v4; gint merge_id; GtkAction *action; char *path; GtkActionEntry entry; unsigned long v10; v10 = __readfsqword(0x28u); entry.name = name; entry.stock_id = n...
static void add_module_entry_to_view_menu(gchar *module, gchar *name, GdkPixbuf *pixbuf, GtkTreeIter *iter) { GtkAction *action; GtkWidget *menuitem; gint merge_id; gchar *path; GtkActionEntry entry = { name, name, name,...
add_module_entry_to_view_menu
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void add_module_to_menu(gchar *name, GdkPixbuf *pixbuf) { Shell *v2; Shell *v3; gint merge_id; gint merge_ida; gchar *about_module; GtkAction *action; GtkAction *actiona; GtkActionEntry entries[2]; unsigned long v10; v10 = __readfsqword(0x28u); about_module = g_strdup_printf("AboutModule%s", name...
static void add_module_to_menu(gchar *name, GdkPixbuf *pixbuf) { GtkAction *action; GtkWidget *menuitem; gchar *about_module = g_strdup_printf("AboutModule%s", name); gchar *path; gint merge_id; GtkActionEntry entries[] = { { name, name, name, NULL, N...
add_module_to_menu
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void amdgpu_fill_freq(gpud *s) { int clk_min; int clk_max; int mem_clk_min; int mem_clk_max; gchar path[264]; unsigned long v6; v6 = __readfsqword(0x28u); memset(path, 0, 256); clk_min = -1; clk_max = -1; mem_clk_min = -1; mem_clk_max = -1; if (s->sysfs_drm_path) { snprintf(path, 0xFFu, "...
static void amdgpu_fill_freq(gpud *s) { gchar path[256] = ""; int clk_min = -1, clk_max = -1, mem_clk_min = -1, mem_clk_max = -1; if (s->sysfs_drm_path) { snprintf(path, 255, "%s/%s/device/pp_dpm_sclk", s->sysfs_drm_path, s->id); amdgpu_parse_dpmclk(path, &clk_min, &clk_max); if (clk_max > 0) ...
amdgpu_fill_freq
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void amdgpu_parse_dpmclk(gchar *path, int *min, int *max) { int i; int clk; int sp_0; gchar *data; gchar *p; gchar *next_nl; unsigned long v10; v10 = __readfsqword(0x28u); data = 0; *min = -1; *max = -1; g_file_get_contents(path, &data, 0, 0); if (data) { for (p = data;; p = next_nl + 1) ...
static void amdgpu_parse_dpmclk(gchar *path, int *min, int *max) { gchar *data = NULL, *p, *next_nl; int sp, i, clk; *min = -1; *max = -1; g_file_get_contents(path, &data, NULL, NULL); if (data) { p = data; while (next_nl = strchr(p, '\n')) { strend(p, '\n'); sp = sscanf(p, "%d: %dMhz...
amdgpu_parse_dpmclk
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
char *appf(char *str, const char *sep, const char *fmt, ...) { long v3; long v4; long v5; int v7; char *stra; int len; int inlen; int seplen; char *buf; va_list args; unsigned long v14; long v15; long v16; long v17; va_start(args, fmt); v3 = va_arg(args, _QWORD); v4 = va_arg(args, _QW...
char *appf(char *str, const char *sep, const char *fmt, ...) { char *buf = NULL; int inlen, seplen, len; va_list args; va_start(args, fmt); len = vasprintf(&buf, fmt, args); va_end(args); if (len < 0) return str; if (!str) return buf; inlen = strlen(str); seplen = (inlen && sep) ? strlen(sep...
appf
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
char *appfdup(const char *str, const char *sep, const char *fmt, ...) { long v3; long v4; long v5; int v7; int len; int inlen; int seplen; char *buf; char *ret; va_list args; unsigned long v14; long v15; long v16; long v17; va_start(args, fmt); v3 = va_arg(args, _QWORD); v4 = va_arg(a...
char *appfdup(const char *str, const char *sep, const char *fmt, ...) { char *buf = NULL, *ret = NULL; int inlen, seplen, len; va_list args; va_start(args, fmt); len = vasprintf(&buf, fmt, args); va_end(args); if (len < 0) return NULL; if (!str) return buf; inlen = strlen(str); seplen = (inl...
appfdup
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gpointer auto_free_ex_(gpointer p, GDestroyNotify f, const char *file, int line, const char *func) { double v6; double v7; auto_free_item *z; if (!p) return 0; if (free_final) free_final = 0; if (!auto_free_timer) { auto_free_timer = (GTimer *)g_timer_new(); g_timer_s...
gpointer auto_free_ex_(gpointer p, GDestroyNotify f, const char *file, int line, const char *func) { if (!p) return p; if (free_final) free_final = FALSE; if (!auto_free_timer) { auto_free_timer = g_timer_new(); g_timer_start(auto_free_timer); } if (!free_event_source...
auto_free_ex_
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gpointer auto_free_on_exit_ex_(gpointer p, GDestroyNotify f, const char *file, int line, const char *func) { auto_free_item *z; if (!p) return 0; z = (auto_free_item *)g_malloc0_n(1, 56); z->ptr = p; z->f_free = f; z->thread = (GThread *)g_thread_self(); z->file = file;...
gpointer auto_free_on_exit_ex_(gpointer p, GDestroyNotify f, const char *file, int line, const char *func) { if (!p) return p; auto_free_item *z = g_new0(auto_free_item, 1); z->ptr = p; z->f_free = f; z->thread = g_thread_self(); z->file = file; z->line = line; z->fun...
auto_free_on_exit_ex_
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
uint32_t bf_value(uint32_t value, uint32_t mask) { uint32_t maska; uint32_t result; maska = mask; result = mask & value; if ((mask & value) != 0) { while ((maska & 1) == 0) { result >>= 1; maska >>= 1; } } return result; }
static inline uint32_t bf_value(uint32_t value, uint32_t mask) { uint32_t result = value & mask; if (result) while (!(mask & 1)) { result >>= 1; mask >>= 1; } return result; }
bf_value
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gboolean binreloc_init(gboolean try_hardcoded) { GError *error; gchar *tmp; unsigned long v4; v4 = __readfsqword(0x28u); error = 0; if (params.path_data && params.path_lib) return 1; if (!try_hardcoded && gbr_init(&error)) { tmp = UfUy21856259474323_gbr_find_data_dir("/usr/share/hardinfo"); p...
gboolean binreloc_init(gboolean try_hardcoded) { GError *error = NULL; gchar *tmp; DEBUG("initializing binreloc (hardcoded = %d)", try_hardcoded); if (params.path_data && params.path_lib) { DEBUG("data and lib path already found."); return TRUE; } if (try_hardcoded || !gbr_init(&error)) { pa...
binreloc_init
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
int block_check(edid *e, uint32_t offset) { if (bounds_check(e, offset + 128)) return block_check_n(e->data, 128); else return 0; }
static int block_check(edid *e, uint32_t offset) { if (!bounds_check(e, offset + 128)) return 0; return _block_check_n(e->u8, 128); }
block_check
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
uint8_t bounds_check(edid *e, uint32_t offset) { return e && offset <= e->len; }
static inline uint8_t bounds_check(edid *e, uint32_t offset) { if (!e) return 0; if (offset > e->len) return 0; return 1; }
bounds_check
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
const gchar *byte_order_str() { return gettext("Little Endian"); }
const gchar *byte_order_str() { #if G_BYTE_ORDER == G_LITTLE_ENDIAN return _("Little Endian"); #else return _("Big Endian"); #endif }
byte_order_str
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void cache_icon(ReportContext *ctx, const gchar *file) { gchar *icon_css; long v3; if (ctx->icon_data) { if (!g_hash_table_lookup(ctx->icon_data, file)) { icon_css = make_icon_css(file); v3 = g_strdup(file); g_hash_table_insert(ctx->icon_data, v3, icon_css); } } }
void cache_icon(ReportContext *ctx, const gchar *file) { if (!ctx->icon_data) return; if (!g_hash_table_lookup(ctx->icon_data, file)) g_hash_table_insert(ctx->icon_data, g_strdup(file), make_icon_css(file)); }
cache_icon
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void cb_about() { long type; long v1; long v2; long v3; long v4; long v5; long v6; long v7; long v8; long v9; char *v10; long v11; long v12; GdkPixbuf *pixbuf; long v14; long v15; char *v16; long v17; long v18; long v19; long v20; long v21; long v22; long v23; long v24;...
void cb_about() { Shell *shell = shell_get_main_shell(); GtkWidget *about; gchar *copyright = NULL; const gchar *authors[] = { _("Author:"), "Leandro A. F. Pereira", "", _("Contributors:"), "Agney Lopes Roth Ferraz", "Andrey Esin", "Burt P.", "Ondrej Čerman", ...
cb_about
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void cb_about_module(GtkAction *action) { long v1; long type; long v3; long v4; long v5; long v6; long v7; const gchar *version; long v9; long v10; const gchar *license; const gchar *author; char *v13; long v14; long v15; char *v16; long v17; long v18; GdkPixbuf *icon; long v20; ...
void cb_about_module(GtkAction *action) { Shell *shell = shell_get_main_shell(); GSList *modules = shell->tree->modules; const ModuleAbout *ma; gchar *name; g_object_get(G_OBJECT(action), "tooltip", &name, NULL); for (; modules; modules = modules->next) { ShellModule *sm = (ShellModule *)modules->data...
cb_about_module
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void cb_copy_to_clipboard() { long v0; ShellModuleEntry *entry; gchar *data; GtkClipboard *clip; ReportContext *ctx; entry = shell_get_main_shell()->selected; if (entry) { data = module_entry_function(entry); v0 = gdk_atom_intern("CLIPBOARD", 0); clip = (GtkClipboard *)gtk_clipboard_get(v0); ...
void cb_copy_to_clipboard() { ShellModuleEntry *entry = shell_get_main_shell()->selected; if (entry) { gchar *data = module_entry_function(entry); GtkClipboard *clip = gtk_clipboard_get(gdk_atom_intern("CLIPBOARD", FALSE)); ReportContext *ctx = report_context_text_new(NULL); ctx->entry = entry; ...
cb_copy_to_clipboard
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void cb_generate_report() { gboolean btn_refresh; gboolean btn_copy; Shell *shell; shell = shell_get_main_shell(); btn_refresh = shell_action_get_enabled("RefreshAction"); btn_copy = shell_action_get_enabled("CopyAction"); report_dialog_show(shell->tree->model, shell->window); shell_action_set_enabled(...
void cb_generate_report() { Shell *shell = shell_get_main_shell(); gboolean btn_refresh = shell_action_get_enabled("RefreshAction"); gboolean btn_copy = shell_action_get_enabled("CopyAction"); report_dialog_show(shell->tree->model, shell->window); shell_action_set_enabled("RefreshAction", btn_refresh); sh...
cb_generate_report
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void cb_open_web_page() { uri_open("http://www.hardinfo.org"); }
void cb_open_web_page() { uri_open("http://www.hardinfo.org"); }
cb_open_web_page
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void cb_quit() { do gtk_main_quit(); while ((unsigned int)gtk_main_level() > 1); exit(0); }
void cb_quit(void) { do { gtk_main_quit(); } while (gtk_main_level() > 1); exit(0); }
cb_quit
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void cb_refresh() { shell_do_reload(); }
void cb_refresh() { shell_do_reload(); }
cb_refresh
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void cb_report_bug() { uri_open("https://github.com/lpereira/hardinfo"); }
void cb_report_bug() { uri_open("https://github.com/lpereira/hardinfo"); }
cb_report_bug
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void cb_side_pane() { gboolean visible; visible = shell_action_get_active("SidePaneAction"); shell_set_side_pane_visible(visible); }
void cb_side_pane() { gboolean visible; visible = shell_action_get_active("SidePaneAction"); shell_set_side_pane_visible(visible); }
cb_side_pane
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void cb_sync_manager() { Shell *shell; shell = shell_get_main_shell(); sync_manager_show(shell->window); }
void cb_sync_manager() { Shell *shell = shell_get_main_shell(); sync_manager_show(shell->window); }
cb_sync_manager
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void cb_toolbar() { gboolean visible; visible = shell_action_get_active("ToolbarAction"); shell_ui_manager_set_visible("/MainMenuBarAction", visible); }
void cb_toolbar() { gboolean visible; visible = shell_action_get_active("ToolbarAction"); shell_ui_manager_set_visible("/MainMenuBarAction", visible); }
cb_toolbar
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void cea_block_decode(edid_cea_block *blk) { int type; edid_svd *svds; int svd_count; signed int i; signed int ia; edid *e; uint8_t *ptr; edid_sad *sad; if (blk) { if (!blk->bounds_ok) blk->bounds_ok = bounds_check(blk->addy.e, blk->addy.offset + blk->len + 1); if (blk->bounds...
static void cea_block_decode(struct edid_cea_block *blk) { if (!blk) return; if (!blk->bounds_ok) blk->bounds_ok = bounds_check(blk->addy.e, blk->addy.offset + 1 + blk->len); if (!blk->bounds_ok) return; edid *e = blk->addy.e; static uint32_t h = 1; uint32_t a = blk->addy.offset; uint8_t *ptr...
cea_block_decode
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void check_sdcard_vendor(udiskd *d) { unsigned int v1; unsigned int v2; gchar *v3; unsigned int v4; unsigned int v5; short id; unsigned int ida; unsigned int fw; unsigned int hw; gchar *oemid; gchar *manfid; gchar *fwrev; gchar *hwrev; vendor_list_0 vl; gchar *qpath; gchar *oemid_path; ...
void check_sdcard_vendor(udiskd *d) { if (!d) return; if (!d->media) return; if (!(g_str_has_prefix(d->media, "flash_sd") || g_str_has_prefix(d->media, "flash_mmc"))) return; if (d->vendor && d->vendor[0]) return; if (!d->block_dev) return; if (!sdcard_ids_file) find_sdcard_...
check_sdcard_vendor
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void close_clicked() { g_main_loop_quit(loop); }
static void close_clicked(void) { g_main_loop_quit(loop); }
close_clicked
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void close_note(GtkWidget *widget, gpointer user_data) { gtk_widget_hide(shell->note->event_box); }
static void close_note(GtkWidget *widget, gpointer user_data) { gtk_widget_hide(shell->note->event_box); }
close_note
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
const gchar *color_lookup(int ansi_color) { int i; for (i = 0; i <= 31; ++i) { if (ansi_color == tab_0[i].ansi) return tab_0[i].html; } return 0; }
const gchar *color_lookup(int ansi_color) { static struct { int ansi; const gchar *html; } tab[] = { {30, "#010101"}, {31, "#de382b"}, {32, "#39b54a"}, {33, "#ffc706"}, {34, "#006fb8"}, {35, "#762671"}, {36, "#2cb5e9"}, {37, "#cccccc"}, {90, "#808080"}, {91, "#ff0000"}, {92, "#00ff...
color_lookup
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
gint compare_float(float a, float b) { return (__PAIR64__(a > b, LODWORD(a)) - LODWORD(b)) >> 32; }
static gint compare_float(float a, float b) { return (a > b) - (a < b); }
compare_float
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
int cpu_procs_cores_threads(int *p, int *c, int *t) { int i; gint pack_id; int m; gint core_id; char *tmp; cpubits *threads; cpubits *cores; cpubits *packs; unsigned long v13; v13 = __readfsqword(0x28u); g_file_get_contents("/sys/devices/system/cpu/present", &tmp, 0, 0); if (tmp) { threads ...
int cpu_procs_cores_threads(int *p, int *c, int *t) { cpubits *threads, *cores, *packs; char *tmp; int i, m, pack_id, core_id; g_file_get_contents("/sys/devices/system/cpu/present", &tmp, NULL, NULL); if (tmp != NULL) { threads = cpubits_from_str(tmp); cores = cpubits_from_str(""); packs = cpubits...
cpu_procs_cores_threads
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
uint32_t cpubits_count(cpubits *b) { uint32_t count; uint32_t i; count = 0; for (i = 0; i < max_1; ++i) count += ((1 << (i & 0x1F)) & b[i >> 5]) >> (i & 0x1F); return count; }
uint32_t cpubits_count(cpubits *b) { static const uint32_t max = CPUBITS_SIZE * 8; uint32_t count = 0, i = 0; while (i < max) { count += CPUBIT_GET(b, i); i++; } return count; }
cpubits_count
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
cpubits *cpubits_from_str(char *str) { char *v1; int r0; int r1; const char *v; char *nv; cpubits *newbits; char *hy; newbits = (cpubits *)malloc(0x1000u); if (newbits) { memset(newbits, 0, 0x1000u); if (str) { for (v = str; *v; v = v1) { nv = strchr(v, 44); if (!nv) ...
cpubits *cpubits_from_str(char *str) { char *v, *nv, *hy; int r0, r1; cpubits *newbits = malloc(CPUBITS_SIZE); if (newbits) { memset(newbits, 0, CPUBITS_SIZE); if (str != NULL) { v = (char *)str; while (*v != 0) { nv = strchr(v, ','); if (nv == NULL) nv = strchr(v, ...
cpubits_from_str
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
int cpubits_max(cpubits *b) { int i; for (i = 0x7FFF; i >= 0; --i) { if (((1 << (i % 32)) & b[i >> 5]) >> (i % 32)) return i; } return i; }
int cpubits_max(cpubits *b) { int i = CPUBITS_SIZE * 8 - 1; while (i >= 0) { if (CPUBIT_GET(b, i)) return i; i--; } return i; }
cpubits_max
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
int cpubits_min(cpubits *b) { int i; for (i = 0; i <= 0x7FFF; ++i) { if (((1 << (i % 32)) & b[i / 32]) >> (i % 32)) return i; } return -1; }
int cpubits_min(cpubits *b) { int i = 0; while (i < CPUBITS_SIZE * 8) { if (CPUBIT_GET(b, i)) return i; i++; } return -1; }
cpubits_min
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
int cpubits_next(cpubits *b, int start, int end) { int enda; int i; enda = end; if (start + 1 >= 0) { i = start + 1; if (end == -1) enda = 0x8000; while (i < enda) { if (((1 << (i % 32)) & b[i / 32]) >> (i % 32)) return i; ++i; } } return -1; }
int cpubits_next(cpubits *b, int start, int end) { start++; if (start >= 0) { int i = start; if (end == -1) end = CPUBITS_SIZE * 8; while (i < end) { if (CPUBIT_GET(b, i)) return i; i++; } } return -1; }
cpubits_next
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
char *cpubits_to_str(cpubits *bits, char *str, int max_len) { const char *v3; uint32_t i; uint32_t seq_start; uint32_t seq_last; uint32_t seq; uint32_t l; uint32_t la; char buffer[65536]; unsigned long v13; v13 = __readfsqword(0x28u); i = 1; seq_start = 0; seq_last = 0; seq = 0; *(_QWORD ...
char *cpubits_to_str(cpubits *bits, char *str, int max_len) { static const uint32_t max = CPUBITS_SIZE * 8; uint32_t i = 1, seq_start = 0, seq_last = 0, seq = 0, l = 0; char buffer[65536] = ""; if (CPUBIT_GET(bits, 0)) { seq = 1; strcpy(buffer, "0"); } while (i < max) { if (CPUBIT_GET(bits, i)) ...
cpubits_to_str
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0
void cpufreq_free(cpufreq_data *cpufd) { if (cpufd) { g_free(cpufd->scaling_driver); g_free(cpufd->scaling_governor); } g_free(cpufd); }
void cpufreq_free(cpufreq_data *cpufd) { if (cpufd) { g_free(cpufd->scaling_driver); g_free(cpufd->scaling_governor); } g_free(cpufd); }
cpufreq_free
hardinfo-0.6_alpha_pre20201116-r1
app-admin
O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo
ida
O0