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 |
|---|---|---|---|---|---|---|---|
const char *lastNameFromPath(const char *path) {
char *name;
name = (char *)path;
if (strrchr(path, 47))
name = strrchr(path, 47) + 1;
if (strrchr(name, 92))
return strrchr(name, 92) + 1;
return name;
} | static const char *lastNameFromPath(const char *path) {
const char *name = path;
if (strrchr(name, '/'))
name = strrchr(name, '/') + 1;
if (strrchr(name, '\\'))
name = strrchr(name, '\\') + 1;
return name;
} | lastNameFromPath | lz4-1.9.3-r1 | app-arch | O0/app-arch/lz4-1.9.3-r1/lz4 | ida | O0 |
int longCommandWArg(const char **stringPtr, const char *longCommand) {
int v2;
size_t comSize;
comSize = strlen(longCommand);
v2 = strncmp(*stringPtr, longCommand, comSize);
if (!v2)
*stringPtr += comSize;
return v2 == 0;
} | static int longCommandWArg(const char **stringPtr, const char *longCommand) {
size_t const comSize = strlen(longCommand);
int const result = !strncmp(*stringPtr, longCommand, comSize);
if (result)
*stringPtr += comSize;
return result;
} | longCommandWArg | lz4-1.9.3-r1 | app-arch | O0/app-arch/lz4-1.9.3-r1/lz4 | ida | O0 |
unsigned int readU32FromChar(const char **stringPtr) {
int result;
result = 0;
while (**stringPtr > 47 && **stringPtr <= 57)
result = *(*stringPtr)++ + 10 * result - 48;
if (**stringPtr == 75 || **stringPtr == 77) {
result <<= 10;
if (**stringPtr == 77)
result <<= 10;
if (*++*stringPtr ==... | static unsigned readU32FromChar(const char **stringPtr) {
unsigned result = 0;
while ((**stringPtr >= '0') && (**stringPtr <= '9')) {
result *= 10;
result += (unsigned)(**stringPtr - '0');
(*stringPtr)++;
}
if ((**stringPtr == 'K') || (**stringPtr == 'M')) {
result <<= 10;
if (**stringPtr ==... | readU32FromChar | lz4-1.9.3-r1 | app-arch | O0/app-arch/lz4-1.9.3-r1/lz4 | ida | O0 |
unsigned long selectDecoder(dRess_t ress, FILE *finput, FILE *foutput,
const LZ4IO_prefs_t *const prefs) {
int isSkippableMagicNumber;
unsigned int magicNumber;
unsigned int size;
size_t nbReadBytes;
long position;
unsigned char MNstore[4];
unsigned long v12;
v12 = __readfsq... | static unsigned long long selectDecoder(dRess_t ress, FILE *finput,
FILE *foutput,
const LZ4IO_prefs_t *const prefs) {
unsigned char MNstore[MAGICNUMBER_SIZE];
unsigned magicNumber;
static unsigned nbFrames = 0;
nbFrames++;
if (... | selectDecoder | lz4-1.9.3-r1 | app-arch | O0/app-arch/lz4-1.9.3-r1/lz4 | ida | O0 |
int usage(const char *exeName) {
fwrite("Usage : \n", 1u, 9u, stderr);
fprintf(stderr, " %s [arg] [input] [output] \n", exeName);
fputc(10, stderr);
fwrite("input : a filename \n", 1u, 0x16u, stderr);
fprintf(
stderr,
" with no FILE, or when FILE is - or %s, read standard input\n",... | static int usage(const char *exeName) {
DISPLAY("Usage : \n");
DISPLAY(" %s [arg] [input] [output] \n", exeName);
DISPLAY("\n");
DISPLAY("input : a filename \n");
DISPLAY(
" with no FILE, or when FILE is - or %s, read standard input\n",
stdinmark);
DISPLAY("Arguments : \n");
DI... | usage | lz4-1.9.3-r1 | app-arch | O0/app-arch/lz4-1.9.3-r1/lz4 | ida | O0 |
int usage_advanced(const char *exeName) {
const char *v1;
v1 = (const char *)LZ4_versionString();
fprintf(stderr, "*** %s %i-bits v%s, by %s ***\n",
"LZ4 command line interface", 64, v1, "Yann Collet");
usage(exeName);
fputc(10, stderr);
fwrite("Advanced arguments :\n", 1u, 0x15u, stderr);
fwri... | static int usage_advanced(const char *exeName) {
DISPLAY(WELCOME_MESSAGE);
usage(exeName);
DISPLAY("\n");
DISPLAY("Advanced arguments :\n");
DISPLAY(" -V : display Version number and exit \n");
DISPLAY(" -v : verbose mode \n");
DISPLAY(
" -q : suppress warnings; specify twice to suppress... | usage_advanced | lz4-1.9.3-r1 | app-arch | O0/app-arch/lz4-1.9.3-r1/lz4 | ida | O0 |
int usage_longhelp(const char *exeName) {
usage_advanced(exeName);
fputc(10, stderr);
fwrite("****************************\n", 1u, 0x1Du, stderr);
fwrite("***** Advanced comment *****\n", 1u, 0x1Du, stderr);
fwrite("****************************\n", 1u, 0x1Du, stderr);
fputc(10, stderr);
fwrite("Which valu... | static int usage_longhelp(const char *exeName) {
usage_advanced(exeName);
DISPLAY("\n");
DISPLAY("****************************\n");
DISPLAY("***** Advanced comment *****\n");
DISPLAY("****************************\n");
DISPLAY("\n");
DISPLAY("Which values can [output] have ? \n");
DISPLAY("--------------... | usage_longhelp | lz4-1.9.3-r1 | app-arch | O0/app-arch/lz4-1.9.3-r1/lz4 | ida | O0 |
void waitEnter() {
fwrite("Press enter to continue...\n", 1u, 0x1Bu, stderr);
getchar();
} | static void waitEnter(void) {
DISPLAY("Press enter to continue...\n");
(void)getchar();
} | waitEnter | lz4-1.9.3-r1 | app-arch | O0/app-arch/lz4-1.9.3-r1/lz4 | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
const char *v3;
const char *v4;
char *v5;
char *v6;
char *v7;
const char *v8;
long v9;
char *v10;
long v11;
int rc;
_BOOL4 rca;
Header h;
FD_t fdi;
char *rpmio_flags;
FD_t fdo;
rpmts ts;
const char *compr;
off_t payload_size;... | int main(int argc, char *argv[]) {
FD_t fdi, fdo;
Header h;
char *rpmio_flags = NULL;
int rc;
off_t payload_size;
FD_t gzdi;
xsetprogname(argv[0]);
rpmReadConfigFiles(NULL, NULL);
if (argc == 1)
fdi = fdDup(STDIN_FILENO);
else {
if (rstreq(argv[1], "-h") || rstreq(argv[1], "--help")) {
... | main | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/rpm2cpio | ida | O0 |
void argerror(const char *desc) {
char *v1;
char *v2;
v1 = _progname;
v2 = dgettext("rpm", "%s: %s\n");
fprintf(stderr, v2, v1, desc);
exit(1);
} | RPM_GNUC_NORETURN
void argerror(const char *desc) {
fprintf(stderr, _("%s: %s\n"), xgetprogname(), desc);
exit(EXIT_FAILURE);
} | argerror | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/rpm | ida | O0 |
int finishPipe() {
int status;
int rc;
pid_t reaped;
unsigned long v4;
v4 = __readfsqword(0x28u);
rc = 0;
if (pipeChild) {
fclose(stdout);
do
reaped = waitpid(pipeChild, &status, 0);
while (reaped == -1 && *__errno_location() == 4);
if (reaped == -1 || (status & 0x7F) != 0 || BYTE1(... | int finishPipe(void) {
int rc = 0;
if (pipeChild) {
int status;
pid_t reaped;
(void)fclose(stdout);
do {
reaped = waitpid(pipeChild, &status, 0);
} while (reaped == -1 && errno == EINTR);
if (reaped == -1 || !WIFEXITED(status) || WEXITSTATUS(status))
rc = 1;
}
return rc;
} | finishPipe | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/rpm | ida | O0 |
int initPipe() {
char *v0;
char *v2;
int p[2];
unsigned long v4;
v4 = __readfsqword(0x28u);
if (pipe(p) >= 0) {
pipeChild = fork();
if (!pipeChild) {
close(p[1]);
dup2(p[0], 0);
close(p[0]);
execl("/bin/sh", "/bin/sh", "-c", rpmcliPipeOutput, 0);
v2 = dgettext("rpm", "... | int initPipe(void) {
int p[2];
if (pipe(p) < 0) {
fprintf(stderr, _("creating a pipe for --pipe failed: %m\n"));
return -1;
}
if (!(pipeChild = fork())) {
(void)close(p[1]);
(void)dup2(p[0], STDIN_FILENO);
(void)close(p[0]);
(void)execl("/bin/sh", "/bin/sh", "-c", rpmcliPipeOutput, NUL... | initPipe | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/rpm | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
char *v3;
char *v4;
char *v5;
char *v6;
char *v7;
char *v8;
char *v9;
char *v10;
char *v11;
char *v12;
char *v13;
char *v14;
char *v15;
char *v16;
char *v17;
char *v18;
char *v19;
char *v20;
char *v21;
char *v22;
char *... | int main(int argc, char *argv[]) {
rpmts ts = NULL;
enum modes bigMode = MODE_UNKNOWN;
QVA_t qva = &rpmQVKArgs;
struct rpmInstallArguments_s *ia = &rpmIArgs;
poptContext optCon;
int ec = 0;
int i;
xsetprogname(argv[0]);
optCon = rpmcliInit(argc, argv, optionsTable);
if (rstreq(xgetprogname(), "rp... | main | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/rpm | ida | O0 |
void printBanner(FILE *fp) {
char *v1;
char *v2;
v1 = dgettext("rpm", "Copyright (C) 1998-2002 - Red Hat, Inc.\n");
fprintf(fp, v1);
v2 = dgettext("rpm", "This program may be freely redistributed under the "
"terms of the GNU GPL\n");
fprintf(fp, v2);
} | static void printBanner(FILE *fp) {
fprintf(fp, _("Copyright (C) 1998-2002 - Red Hat, Inc.\n"));
fprintf(fp, _("This program may be freely redistributed under the terms of "
"the GNU GPL\n"));
} | printBanner | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/rpm | ida | O0 |
void printUsage(poptContext con, FILE *fp, int flags) {
printVersion(fp);
printBanner(fp);
fputc(10, fp);
if ((int)rpmlogSetMask(0) <= 63)
poptPrintUsage(con, fp, (unsigned int)flags);
else
poptPrintHelp(con, fp, (unsigned int)flags);
} | void printUsage(poptContext con, FILE *fp, int flags) {
printVersion(fp);
printBanner(fp);
fprintf(fp, "\n");
if (rpmIsVerbose())
poptPrintHelp(con, fp, flags);
else
poptPrintUsage(con, fp, flags);
} | printUsage | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/rpm | ida | O0 |
void printVersion(FILE *fp) {
long v1;
char *v2;
v1 = rpmEVR;
v2 = dgettext("rpm", "RPM version %s\n");
fprintf(fp, v2, v1);
} | static void printVersion(FILE *fp) {
fprintf(fp, _("RPM version %s\n"), rpmEVR);
} | printVersion | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/rpm | ida | O0 |
void fill_archive_entry(archive_entry *entry, rpmfi fi) {
long v2;
long v3;
long v4;
long v5;
long v6;
long v7;
long v8;
rpm_mode_t mode;
const char *dn;
char *filename;
archive_entry_clear(entry);
dn = (const char *)rpmfiDN(fi);
if (!*dn)
dn = "/";
v2 = rpmfiBN(fi);
filename = (char ... | static void fill_archive_entry(struct archive_entry *entry, rpmfi fi) {
archive_entry_clear(entry);
const char *dn = rpmfiDN(fi);
if (!strcmp(dn, ""))
dn = "/";
char *filename = rstrscat(NULL, ".", dn, rpmfiBN(fi), NULL);
archive_entry_copy_pathname(entry, filename);
_free(filename);
archive_entry_s... | fill_archive_entry | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/rpm2archive | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int rc;
poptContext optCon;
rpmts_s *ts;
const char *fn;
rc = 0;
rpmReadConfigFiles(0, 0, envp);
optCon =
(poptContext)poptGetContext(0, (unsigned int)argc, argv, optionsTable, 0);
poptSetOtherOptionHelp(optCon, "[OPTIONS]* <FILES>");
i... | int main(int argc, const char *argv[]) {
int rc = 0;
poptContext optCon;
const char *fn;
xsetprogname(argv[0]);
rpmReadConfigFiles(NULL, NULL);
optCon = poptGetContext(NULL, argc, argv, optionsTable, 0);
poptSetOtherOptionHelp(optCon, "[OPTIONS]* <FILES>");
if (argc < 2 || poptGetNextOpt(optCon) == 0)... | main | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/rpm2archive | ida | O0 |
int process_package(rpmts ts, const char *filename) {
const char *v2;
char *v3;
char *v4;
long v5;
const char *v6;
long v7;
char *v8;
const char *v9;
long v10;
long v11;
long v12;
long v13;
long v14;
long v15;
long v16;
rpm_mode_t mode;
int rc;
int rca;
int nlink;
Header h;
cha... | static int process_package(rpmts ts, const char *filename) {
FD_t fdi;
FD_t gzdi;
Header h;
int rc = 0;
char *rpmio_flags = NULL;
struct archive *a;
struct archive_entry *entry;
if (!strcmp(filename, "-")) {
fdi = fdDup(STDIN_FILENO);
} else {
fdi = Fopen(filename, "r.ufdio");
}
if (Ferr... | process_package | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/rpm2archive | ida | O0 |
void write_file_content(archive *a, char *buf, rpmfi fi) {
long v3;
rpm_loff_t left;
size_t len;
for (left = rpmfiFSize(fi); left; left -= len) {
v3 = 0x20000;
if (left <= 0x20000)
v3 = left;
len = v3;
if (rpmfiArchiveRead(fi, buf, v3) != v3) {
fwrite("Error reading file from rpm pa... | static void write_file_content(struct archive *a, char *buf, rpmfi fi) {
rpm_loff_t left = rpmfiFSize(fi);
size_t len, read;
while (left) {
len = (left > BUFSIZE ? BUFSIZE : left);
read = rpmfiArchiveRead(fi, buf, len);
if (read == len) {
archive_write_data(a, buf, len);
} else {
fpri... | write_file_content | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/rpm2archive | ida | O0 |
void FXFontManager_ ~FXFontManager(FXFontManager *const this) {
quadbuf_ ~quadbuf(&this->font_vbo);
std_map<std_string,
std_map *<int, FXGlyphSet *, std_less<int>,
std_allocator<std_pair<int const, FXGlyphSet>>>,
FXGlyphSet *<std_string>,
std_allocator<std_less<int>... | FXFontManager::FXFontManager() { library = 0; } | FXFontManager | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void LogEntry_ ~LogEntry(LogEntry *const this) {
std_string_ ~string(&this->user_agent);
std_string_ ~string(&this->referrer);
std_string_ ~string(&this->response_code);
std_string_ ~string(&this->protocol);
std_string_ ~string(&this->method);
std_string_ ~string(&this->pid);
std_string_ ~string(&this->pa... | LogEntry::LogEntry() {
timestamp = 0;
response_size = 0;
successful = false;
response_colour = vec3(1.0, 0.0, 0.0);
} | LogEntry | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void LogstalgiaSettings_ ~LogstalgiaSettings(LogstalgiaSettings *const this) {
this->_vptr_SDLAppSettings = (int (**)(...))&off_DD3E8;
std_string_ ~string(&this->title);
std_string_ ~string(&this->path_separators);
std_string_ ~string(&this->address_separators);
std_vector<std_string> _ ~vector(&this->display... | LogstalgiaSettings::LogstalgiaSettings() {
log_level = LOG_LEVEL_OFF;
splash = -1.0f;
run_tests = false;
setLogstalgiaDefaults();
default_section_name = "logstalgia";
arg_aliases["g"] = "group";
arg_aliases["p"] = "start-position";
arg_aliases["b"] = "background";
arg_aliases["x"] = "full-hostnames... | LogstalgiaSettings | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void PositionSlider_ ~PositionSlider(PositionSlider *const this) {
std_string_ ~string(&this->caption);
FXFont_ ~FXFont(&this->font);
} | PositionSlider::PositionSlider(float percent) {
this->percent = percent;
font = fontmanager.grab("FreeMonoBold.ttf", 16, 72, FT_LOAD_NO_HINTING);
font.dropShadow(true);
slidercol = vec3(1.0, 1.0, 1.0);
mouseover = -1.0;
mouseover_elapsed = 1.0;
fade_time = 1.0;
alpha = 0.0;
resize();
} | PositionSlider | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void RequestBall_ ~RequestBall(RequestBall *const this) {
LogEntry *le;
le = this->le;
if (le) {
LogEntry_ ~LogEntry(this->le);
operator delete(le);
}
std_vector<float> _ ~vector(&this->line_lengths);
std_vector<glm_vec<2, float, (glm_qualifier)0>> _ ~vector(&this->points);
} | RequestBall::~RequestBall() { delete le; } | RequestBall | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
std_string *SDLAppAddSlash(std_string *__return_ptr retstr,
std_string *p_path) {
long v2;
char v3;
if (std_string_size(p_path)) {
v2 = std_string_size(p_path) - 1;
v3 = *(_BYTE *)std_string_operator[](p_path, v2);
if (v3 !=
*(_BYTE *)std_string_operator[](&gSDLAppP... | std::string SDLAppAddSlash(std::string path) {
if (path.size() && path[path.size() - 1] != gSDLAppPathSeparator[0]) {
path += gSDLAppPathSeparator;
}
return path;
} | SDLAppAddSlash | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
bool SDLAppDirExists(std_string *p_dir) {
const char *v1;
stat st;
unsigned long v4;
v4 = __readfsqword(0x28u);
v1 = (const char *)std_string_c_str(p_dir);
return !stat(v1, &st) && (st.st_mode & 0xF000) == 0x4000;
} | bool SDLAppDirExists(std::string dir) {
struct stat st;
return !stat(dir.c_str(), &st) && S_ISDIR(st.st_mode);
} | SDLAppDirExists | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void SDLAppInfo(std_string *p_msg) {
const char *v1;
v1 = (const char *)std_string_c_str(p_msg);
puts(v1);
exit(0);
} | void SDLAppInfo(std::string msg) {
#ifdef _WIN32
SDLApp::showConsole(true);
#endif
printf("%s\n", msg.c_str());
#ifdef _WIN32
if (!SDLApp::existing_console) {
printf("\nPress Enter\n");
getchar();
}
#endif
exit(0);
} | SDLAppInfo | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void SDLAppInit(std_string *p_apptitle, std_string *p_execname) {
bool v2;
char v3;
char v4;
std_string conf_dir;
std_string resource_dir;
std_string fonts_dir;
std_string shaders_dir;
std_string v9;
std_string v10;
std_string v11;
std_string v12;
std_string p_dir;
std_string v14;
std_string... | void SDLAppInit(std::string apptitle, std::string execname) {
gSDLAppTitle = apptitle;
gSDLAppExec = execname;
std::string conf_dir = "";
std::string resource_dir = "data/";
std::string fonts_dir = "data/fonts/";
std::string shaders_dir = "data/shaders/";
#ifdef _WIN32
char szAppPath[MAX_PATH];
GetMod... | SDLAppInit | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void SDLAppParseArgs(int argc, char **argv, int *xres, int *yres,
bool *fullscreen, std_vector<std_string> *otherargs) {
long v8;
const char *v9;
const char *v10;
int v11;
int v12;
char v17;
int i;
int width;
int height;
size_t x;
std_string args;
std_string displayarg;
st... | void SDLAppParseArgs(int argc, char *argv[], int *xres, int *yres,
bool *fullscreen, std::vector<std::string> *otherargs) {
for (int i = 1; i < argc; i++) {
debugLog("argv[%d] = %s", i, argv[i]);
std::string args(argv[i]);
if (args == "-f") {
*fullscreen = true;
continu... | SDLAppParseArgs | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void SDLAppQuit(std_string *p_error) {
const char *v1;
const char *v2;
const char *v3;
SDL_Quit();
v1 = (const char *)std_string_c_str(p_error);
v2 = (const char *)std_string_c_str(&gSDLAppExec [abi:cxx11]);
fprintf(stderr, "%s: %s\n", v2, v1);
v3 = (const char *)std_string_c_str(&gSDLAppExec [abi:cxx1... | void SDLAppQuit(std::string error) {
SDL_Quit();
#ifdef _WIN32
SDLApp::showConsole(true);
#endif
fprintf(stderr, "%s: %s\n", gSDLAppExec.c_str(), error.c_str());
fprintf(stderr, "Try '%s --help' for more information.\n\n",
gSDLAppExec.c_str());
#ifdef _WIN32
if (!SDLApp::existing_console) {
f... | SDLAppQuit | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void SDLAppSettings_ ~SDLAppSettings(SDLAppSettings *const this) {
this->_vptr_SDLAppSettings = (int (**)(...))&off_DCB80;
std_string_ ~string(&this->output_ppm_filename);
std_map<std_string, std_string> _ ~map(&this->conf_sections);
std_map<std_string, std_string> _ ~map(&this->arg_aliases);
std_map<std_stri... | SDLAppSettings::SDLAppSettings() {
setDisplayDefaults();
default_section_name = "settings";
conf_sections["viewport"] = "display";
conf_sections["windowed"] = "display";
conf_sections["fullscreen"] = "display";
conf_sections["frameless"] = "display";
conf_sections["screen"] = "display";
conf_sections[... | SDLAppSettings | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void SummNode_ ~SummNode(SummNode *const this) {
SummNode *v1;
SummNode *v2;
std_vector<SummNode *> _iterator_0 __for_begin;
std_vector<SummNode *> _iterator_0 __for_end;
std_vector<SummNode *> *__for_range;
SummNode *child;
unsigned long v7;
v7 = __readfsqword(0x28u);
__for_range = &this->children;
... | SummNode::~SummNode() {
for (SummNode *child : children) {
delete child;
}
} | SummNode | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void SummarizerGroup_ ~SummarizerGroup(SummarizerGroup *const this) {
std_string_ ~string(&this->definition);
std_string_ ~string(&this->separators);
std_string_ ~string(&this->regex);
std_string_ ~string(&this->type);
std_string_ ~string(this);
} | SummarizerGroup::SummarizerGroup() {
max_depth = 0;
abbrev_depth = 0;
percent = 0;
colour = vec3(0.0f);
} | SummarizerGroup | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
glm_vec3 colourHash(const std_string *str) {
const std_string *v1;
int hash;
int r;
int g;
glm_vec<3, float, (glm_qualifier)0> v7;
unsigned long v8;
glm_vec3 v9;
glm_vec3 result;
v8 = __readfsqword(0x28u);
hash = stringHash(v1);
if (!hash)
hash = 1;
r = hash / 7 % 255;
if (r < 0)
r = ... | vec3 colourHash(const std::string &str) {
int hash = stringHash(str);
if (hash == 0)
hash++;
int r = (hash / 7) % 255;
if (r < 0)
r = 0;
int g = (hash / 3) % 255;
if (g < 0)
g = 0;
int b = hash % 255;
vec3 colour = normalise(vec3(r, g, b));
return colour;
} | colourHash | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void consoleLog(const char *str, ...) {
long v1;
long v2;
long v3;
long v4;
long v5;
char v7;
int string_size;
char *buffer;
Logger_0 *logger;
va_list vl;
std_string message;
char msgbuff[65544];
unsigned long v14;
long v15;
long v16;
long v17;
long v18;
long v19;
va_start(vl, str... | void consoleLog(const char *str, ...) { PARSE_AND_LOG(LOG_LEVEL_CONSOLE); } | consoleLog | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void debugLog(const char *str, ...) {
long v1;
long v2;
long v3;
long v4;
long v5;
char v7;
int string_size;
char *buffer;
Logger_0 *logger;
va_list vl;
std_string message;
char msgbuff[65544];
unsigned long v14;
long v15;
long v16;
long v17;
long v18;
long v19;
va_start(vl, str);... | void debugLog(const char *str, ...) { PARSE_AND_LOG(LOG_LEVEL_DEBUG); } | debugLog | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void errorLog(const char *str, ...) {
long v1;
long v2;
long v3;
long v4;
long v5;
char v7;
int string_size;
char *buffer;
Logger_0 *logger;
va_list vl;
std_string message;
char msgbuff[65544];
unsigned long v14;
long v15;
long v16;
long v17;
long v18;
long v19;
va_start(vl, str);... | void errorLog(const char *str, ...){PARSE_AND_LOG(LOG_LEVEL_ERROR)} | errorLog | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
ConfFile *__cdecl ConfSection::getConfFile(ConfSection *const this) {
return this->conf;
} | ConfFile *ConfSection::getConfFile() {
return conf;
} | getConfFile | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
glm::vec2 __cdecl ConfEntry::getVec2(ConfEntry *const this) {
const std::string *v1;
std::vector<std::string>::reference v2;
const char *v3;
double v4;
std::vector<std::string>::reference v5;
const char *v6;
std::vector<std::string> matches;
unsigned __int64 v9;
glm::vec2 result;
v9 = __readfsqword... | vec2 ConfEntry::getVec2() {
std::vector<std::string> matches;
if (ConfFile_vec2_value.match(value, &matches)) {
return vec2(atof(matches[0].c_str()), atof(matches[1].c_str()));
}
return vec2(0.0, 0.0);
} | getVec2 | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void infoLog(const char *str, ...) {
long v1;
long v2;
long v3;
long v4;
long v5;
char v7;
int string_size;
char *buffer;
Logger_0 *logger;
va_list vl;
std_string message;
char msgbuff[65544];
unsigned long v14;
long v15;
long v16;
long v17;
long v18;
long v19;
va_start(vl, str);
... | void infoLog(const char *str, ...) { PARSE_AND_LOG(LOG_LEVEL_INFO); } | infoLog | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void init_tz() {
char v0;
char *current_tz_env;
_BYTE v2[40];
unsigned long v3;
v3 = __readfsqword(0x28u);
if (!tz_initialized) {
current_tz_env = getenv("TZ");
if (current_tz_env) {
std_allocator<char> _allocator(&v0);
std_string_basic_string(v2, "TZ=", &v0);
std_string_operator ... | void init_tz() {
if (tz_initialized)
return;
char *current_tz_env = getenv("TZ");
if (current_tz_env != 0) {
local_tz = std::string("TZ=");
local_tz += std::string(current_tz_env);
}
tz_initialized = true;
} | init_tz | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
bool __cdecl ConfEntry::isBool(ConfEntry *const this) {
return std::operator == <char>(&this->value, "1") ||
std::operator == <char>(&this->value, "true") ||
std::operator == <char>(&this->value, "True") ||
std::operator == <char>(&this->value, "TRUE") ||
std::operator == <char>(&t... | bool ConfEntry::isBool() {
if (value == "1" || value == "true" || value == "True" || value == "TRUE" ||
value == "yes" || value == "Yes" || value == "YES" || value == "0" ||
value == "false" || value == "False" || value == "FALSE" ||
value == "no" || value == "No" || value == "NO")
return true;... | isBool | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
bool __cdecl ConfEntry::isFloat(ConfEntry *const this) {
return Regex::match(&ConfFile_float_value, &this->value, 0);
} | bool ConfEntry::isFloat() {
if (ConfFile_float_value.match(value))
return true;
return false;
} | isFloat | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
bool __cdecl ConfEntry::isInt(ConfEntry *const this) {
return Regex::match(&ConfFile_float_value, &this->value, 0);
} | bool ConfEntry::isInt() {
if (ConfFile_float_value.match(value))
return true;
return false;
} | isInt | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
bool __cdecl ConfEntry::isVec2(ConfEntry *const this) {
return Regex::match(&ConfFile_vec2_value, &this->value, 0);
} | bool ConfEntry::isVec2() {
if (ConfFile_vec2_value.match(value))
return true;
return false;
} | isVec2 | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
bool __cdecl ConfEntry::isVec3(ConfEntry *const this) {
return Regex::match(&ConfFile_vec3_value, &this->value, 0);
} | bool ConfEntry::isVec3() {
if (ConfFile_vec3_value.match(value))
return true;
return false;
} | isVec3 | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
bool __cdecl ConfEntry::isVec4(ConfEntry *const this) {
return Regex::match(&ConfFile_vec4_value, &this->value, 0);
} | bool ConfEntry::isVec4() {
if (ConfFile_vec4_value.match(value))
return true;
return false;
} | isVec4 | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void logstalgia_info(std_string *p_msg) {
std_string v1;
unsigned long v2;
v2 = __readfsqword(0x28u);
std_string_basic_string(&v1, p_msg);
SDLAppInfo(&v1);
} | void logstalgia_info(std::string msg) { SDLAppInfo(msg); } | logstalgia_info | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void logstalgia_quit(std_string *p_error) {
std_string v1;
unsigned long v2;
v2 = __readfsqword(0x28u);
std_string_basic_string(&v1, p_error);
SDLAppQuit(&v1);
} | void logstalgia_quit(std::string error) { SDLAppQuit(error); } | logstalgia_quit | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
Logger *Default;
std_vector<std_string> _size_type v4;
std_vector<std_string> _reference v5;
ConfSection *v6;
int screen;
bool fullscreen;
int display_height;
int display_width;
PPMExporter *v13;
Logstalgia *v14;
std__List_iterator<ConfSec... | int main(int argc, char *argv[]) {
ConfFile conf;
std::vector<std::string> files;
SDLAppInit("Logstalgia", "logstalgia");
#ifdef _WIN32
SDLApp::initConsole();
#endif
try {
settings.parseArgs(argc, argv, conf, &files);
Logger::getDefault()->setLevel(settings.log_level);
#ifdef _WIN32
if (set... | main | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
time_t mktime_utc(tm *timeinfo) {
time_t time_utc;
init_tz();
set_utc_tz();
time_utc = mktime(timeinfo);
unset_utc_tz();
return time_utc;
} | time_t mktime_utc(struct tm *timeinfo) {
init_tz();
set_utc_tz();
time_t time_utc = mktime(timeinfo);
unset_utc_tz();
return time_utc;
} | mktime_utc | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void pedanticLog(const char *str, ...) {
long v1;
long v2;
long v3;
long v4;
long v5;
char v7;
int string_size;
char *buffer;
Logger_0 *logger;
va_list vl;
std_string message;
char msgbuff[65544];
unsigned long v14;
long v15;
long v16;
long v17;
long v18;
long v19;
va_start(vl, st... | void pedanticLog(const char *str, ...) { PARSE_AND_LOG(LOG_LEVEL_PEDANTIC); } | pedanticLog | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void png_writer_flush_data(png_structp png_ptr) {
_QWORD *v1;
std_ostream *out;
out = (std_ostream *)png_get_io_ptr(png_ptr);
v1 = (_QWORD *)std_ostream_flush(out);
if ((unsigned char)std_ios_operator !((char *)v1 + *(_QWORD *)(*v1 - 24LL)))
png_error(png_ptr, "png_writer_flush_data error");
} | void png_writer_flush_data(png_structp png_ptr) {
std::ostream *out = (std::ostream *)png_get_io_ptr(png_ptr);
if (!out->flush())
png_error(png_ptr, "png_writer_flush_data error");
} | png_writer_flush_data | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void png_writer_write_data(png_structp png_ptr, png_bytep data,
png_size_t length) {
_QWORD *v3;
std_ostream *out;
out = (std_ostream *)png_get_io_ptr(png_ptr);
v3 = (_QWORD *)std_ostream_write(out, (const char *)data, length);
if ((unsigned char)std_ios_operator !((char *)v3 + *(_... | void png_writer_write_data(png_structp png_ptr, png_bytep data,
png_size_t length) {
std::ostream *out = (std::ostream *)png_get_io_ptr(png_ptr);
if (!out->write((char *)data, length))
png_error(png_ptr, "png_writer_write_data error");
} | png_writer_write_data | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void __cdecl ConfSection::print(ConfSection *const this, std::ostream *out) {
__int64 v2;
__int64 v3;
__int64 v4;
__int64 v5;
__int64 v6;
__int64 v7;
std::map<std::string, std::list<ConfEntry *> *, std::less<std::string>,
std::allocator<std::pair<const std::string,
... | void ConfSection::print(std::ostream &out) {
out << "[" << getName() << "]" << std::endl;
for (std::map<std::string, ConfEntryList *>::iterator it = entrymap.begin();
it != entrymap.end(); it++) {
ConfEntryList *entrylist = it->second;
for (std::list<ConfEntry *>::iterator eit = entrylist->begin(... | print | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void profile_start(std_string *p_profile) { ; } | void profile_start(std::string profile) {
#ifdef LS_PERFORMANCE_PROFILE
profile_start_msec = SDL_GetTicks();
profile_name = profile;
#endif
} | profile_start | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void profile_stop() { ; } | void profile_stop() {
#ifdef LS_PERFORMANCE_PROFILE
debugLog("%s took %d ms\n", profile_name.c_str(),
SDL_GetTicks() - profile_start_msec);
#endif
} | profile_stop | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void quadbuf_ ~quadbuf(quadbuf *const this) {
if (this->data)
operator delete[](this->data);
VBO_ ~VBO(&this->buf);
std_vector<quadbuf_tex> _ ~vector(&this->textures);
} | quadbuf::~quadbuf() {
if (data != 0)
delete[] data;
} | quadbuf | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
glm_vec2 rotate_vec2(const glm_vec2 *v, float s, float c) {
float *v3;
float v4;
__m128i v5;
glm_vec2 result;
v4 = *v3 * s;
v5 = (__m128i) * (unsigned int *)v3;
*(float *)v5.m128i_i32 =
(float)(*(float *)v5.m128i_i32 * c) - (float)(v3[1] * s);
*(glm_vec2 *)&result.x =
(glm_vec2)_mm_cvtsi32_... | vec2 rotate_vec2(const vec2 &v, float s, float c) {
return vec2(v.x * c - v.y * s, v.x * s + v.y * c);
} | rotate_vec2 | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void scriptLog(const char *str, ...) {
long v1;
long v2;
long v3;
long v4;
long v5;
char v7;
int string_size;
char *buffer;
Logger_0 *logger;
va_list vl;
std_string message;
char msgbuff[65544];
unsigned long v14;
long v15;
long v16;
long v17;
long v18;
long v19;
va_start(vl, str)... | void scriptLog(const char *str, ...) { PARSE_AND_LOG(LOG_LEVEL_SCRIPT); } | scriptLog | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void __cdecl ConfSection::setConfFile(ConfSection *const this, ConfFile *conf) {
this->conf = conf;
} | void ConfSection::setConfFile(ConfFile *conf) { this->conf = conf; } | setConfFile | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void __cdecl ConfFile::setFilename(ConfFile *const this,
const std::string *filename) {
std::string::operator = (this, filename);
} | void ConfFile::setFilename(const std::string &filename) {
this->conffile = filename;
} | setFilename | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void __cdecl ConfEntry::setInt(ConfEntry *const this, int value) {
char v2;
_BYTE v3[32];
char inttostr[264];
unsigned __int64 v5;
v5 = __readfsqword(0x28u);
snprintf(inttostr, 0x100u, "%d", value);
std::allocator<char>::allocator(&v2);
std::string::basic_string(v3, inttostr, &v2);
std::string::opera... | void ConfEntry::setInt(int value) {
char inttostr[256];
snprintf(inttostr, 256, "%d", value);
this->value = std::string(inttostr);
} | setInt | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void __cdecl ConfEntry::setName(ConfEntry *const this,
const std::string *name) {
std::string::operator = (this, name);
} | void ConfEntry::setName(const std::string &name) { this->name = name; } | setName | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void __cdecl ConfEntry::setString(ConfEntry *const this,
const std::string *value) {
std::string::operator = (&this->value, value);
} | void ConfEntry::setString(const std::string &value) { this->value = value; } | setString | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void set_utc_tz() {
putenv("TZ=UTC");
tzset();
} | void set_utc_tz() {
putenv((char *)"TZ=UTC");
tzset();
} | set_utc_tz | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
int stringHash(const std_string *str) {
int val;
int i;
int n;
val = 0;
n = std_string_size(str);
for (i = 0; i < n; ++i)
val += *(char *)std_string_operator[](str, i) * ((n - i) ^ gStringHashSeed);
if (val < 0)
return -val;
return val;
} | int stringHash(const std::string &str) {
int val = 0;
int n = str.size();
for (int i = 0; i < n; i++) {
val = val + str[i] * (gStringHashSeed ^ (n - i));
}
if (val < 0) {
val = -val;
}
return val;
} | stringHash | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void unset_utc_tz() {
char *v0;
if (!std_string_empty(&local_tz [abi:cxx11])) {
v0 = (char *)std_string_c_str(&local_tz [abi:cxx11]);
putenv(v0);
} else {
unsetenv("TZ");
}
tzset();
} | void unset_utc_tz() {
if (!local_tz.empty()) {
putenv((char *)local_tz.c_str());
} else {
#ifndef _WIN32
unsetenv("TZ");
#else
putenv((char *)"TZ=");
#endif
}
tzset();
} | unset_utc_tz | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
glm_vec2 vec2Hash(const std_string *str) {
const std_string *v1;
int hash;
glm_vec<2, float, (glm_qualifier)0> v4;
unsigned long v5;
v5 = __readfsqword(0x28u);
hash = stringHash(v1);
glm_vec<2, float, (glm_qualifier)0> _vec<int, int>(&v4, hash / 7 % 255 - 127,
... | vec2 vec2Hash(const std::string &str) {
int hash = stringHash(str);
int x = ((hash / 7) % 255) - 127;
int y = ((hash / 3) % 255) - 127;
vec2 v = normalise(vec2(x, y));
return v;
} | vec2Hash | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
glm_vec3 vec3Hash(const std_string *str) {
const std_string *v1;
int hash;
glm_vec<3, float, (glm_qualifier)0> v5;
unsigned long v6;
glm_vec3 v7;
glm_vec3 result;
v6 = __readfsqword(0x28u);
hash = stringHash(v1);
glm_vec<3, float, (glm_qualifier)0> _vec<int, int, int>(
&v5, hash / 7 % 255 - 127... | vec3 vec3Hash(const std::string &str) {
int hash = stringHash(str);
int x = ((hash / 7) % 255) - 127;
int y = ((hash / 3) % 255) - 127;
int z = hash % 255;
vec3 v = normalise(vec3(x, y, z));
return v;
} | vec3Hash | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void warnLog(const char *str, ...) {
long v1;
long v2;
long v3;
long v4;
long v5;
char v7;
int string_size;
char *buffer;
Logger_0 *logger;
va_list vl;
std_string message;
char msgbuff[65544];
unsigned long v14;
long v15;
long v16;
long v17;
long v18;
long v19;
va_start(vl, str);
... | void warnLog(const char *str, ...) { PARSE_AND_LOG(LOG_LEVEL_WARN); } | warnLog | logstalgia-1.1.2 | app-admin | O0/app-admin/logstalgia-1.1.2/logstalgia | ida | O0 |
void add_substitution(bsdtar *bsdtar, const char *rule_text) {
int *v2;
int *v3;
int *v4;
int r;
substitution *subst;
char *end_pattern;
char *end_patterna;
subst_rule *rule;
char *pattern;
const char *start_subst;
char buf[88];
unsigned long v13;
v13 = __readfsqword(0x28u);
subst = bsdtar-... | void add_substitution(struct bsdtar *bsdtar, const char *rule_text) {
struct subst_rule *rule;
struct substitution *subst;
const char *end_pattern, *start_subst;
char *pattern;
int r;
if ((subst = bsdtar->substitution) == NULL) {
init_substitution(bsdtar);
subst = bsdtar->substitution;
}
rule ... | add_substitution | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
int append_archive(bsdtar *bsdtar, archive *a, archive *ina) {
const char *v3;
const char *v4;
const char *v5;
const char *v6;
const char *v7;
int e;
int ea;
archive_entry *in_entry[3];
in_entry[1] = (archive_entry *)__readfsqword(0x28u);
while (1) {
ea = archive_read_next_header(ina, in_entry)... | static int append_archive(struct bsdtar *bsdtar, struct archive *a,
struct archive *ina) {
struct archive_entry *in_entry;
int e;
while (ARCHIVE_OK == (e = archive_read_next_header(ina, &in_entry))) {
if (archive_match_excluded(bsdtar->matching, in_entry))
continue;
if ((b... | append_archive | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
int append_archive_filename(bsdtar *bsdtar, archive *a,
const char *raw_filename) {
const char *v3;
const char *v4;
const char *v6;
int rc;
int rca;
const char *filename;
archive *ina;
filename = raw_filename;
if (!strcmp(raw_filename, "-"))
filename = 0;
ina = (arch... | static int append_archive_filename(struct bsdtar *bsdtar, struct archive *a,
const char *raw_filename) {
struct archive *ina;
const char *filename = raw_filename;
int rc;
if (strcmp(filename, "-") == 0)
filename = NULL;
ina = archive_read_new();
archive_read_support_... | append_archive_filename | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
int apply_substitution(bsdtar *bsdtar, const char *name, char **result,
int symlink_target, int hardlink_target) {
const char *namea;
int got_match;
int print_match;
int c;
size_t i;
size_t j;
subst_rule *rule;
substitution *subst;
regmatch_t matches[10];
unsigned long v18;
... | int apply_substitution(struct bsdtar *bsdtar, const char *name, char **result,
int symlink_target, int hardlink_target) {
const char *path = name;
regmatch_t matches[10];
size_t i, j;
struct subst_rule *rule;
struct substitution *subst;
int c, got_match, print_match;
*result = NULL... | apply_substitution | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
void archive_names_from_file(bsdtar *bsdtar, archive *a) {
int *v2;
lafe_line_reader *lr;
const char *line;
bsdtar->next_line_is_dir = 0;
lr = lafe_line_reader_0(bsdtar->names_from_file, bsdtar->flags & 0x100);
while (1) {
line = lafe_line_reader_next(lr);
if (!line)
break;
if (bsdtar->ne... | static void archive_names_from_file(struct bsdtar *bsdtar, struct archive *a) {
struct lafe_line_reader *lr;
const char *line;
bsdtar->next_line_is_dir = 0;
lr =
lafe_line_reader(bsdtar->names_from_file, (bsdtar->flags & OPTFLAG_NULL));
while ((line = lafe_line_reader_next(lr)) != NULL) {
if (bsdt... | archive_names_from_file | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
size_t bsdtar_expand_char(char *buff, size_t offset, char c) {
size_t i;
if (((*__ctype_b_loc())[(unsigned char)c] & 0x4000) != 0 && c != 92) {
i = offset + 1;
buff[offset] = c;
return i - offset;
}
buff[offset] = 92;
if (c > 13) {
if (c == 92) {
i = offset + 2;
buff[offset + 1] =... | static size_t bsdtar_expand_char(char *buff, size_t offset, char c) {
size_t i = offset;
if (isprint((unsigned char)c) && c != '\\')
buff[i++] = c;
else {
buff[i++] = '\\';
switch (c) {
case '\a':
buff[i++] = 'a';
break;
case '\b':
buff[i++] = 'b';
break;
case '\f'... | bsdtar_expand_char | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
int bsdtar_getopt(bsdtar *bsdtar) {
char **argv;
char *getopt_word;
char **v4;
char *v5;
char *v6;
unsigned int opt;
int required;
const bsdtar_option *popt;
const bsdtar_option *match;
const bsdtar_option *match2;
const char *long_prefix;
size_t optlength;
char *p;
char *pa;
char *pb;
... | int bsdtar_getopt(struct bsdtar *bsdtar) {
enum {
state_start = 0,
state_old_tar,
state_next_word,
state_short,
state_long
};
const struct bsdtar_option *popt, *match = NULL, *match2 = NULL;
const char *p, *long_prefix = "--";
size_t optlength;
int opt = '?';
int required = 0;
bsdt... | bsdtar_getopt | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
void cleanup_substitution(bsdtar *bsdtar) {
substitution *subst;
subst_rule *rule;
subst = bsdtar->substitution;
if (subst) {
while (1) {
rule = subst->first_rule;
if (!subst->first_rule)
break;
subst->first_rule = rule->next;
free(rule->result);
free(rule);
}
... | void cleanup_substitution(struct bsdtar *bsdtar) {
struct subst_rule *rule;
struct substitution *subst;
if ((subst = bsdtar->substitution) == NULL)
return;
while ((rule = subst->first_rule) != NULL) {
subst->first_rule = rule->next;
free(rule->result);
free(rule);
}
free(subst);
} | cleanup_substitution | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
int copy_file_data_block(bsdtar *bsdtar, archive *a, archive *in_a,
archive_entry *entry) {
const char *v4;
const char *v6;
const char *v7;
int v8;
int r;
size_t bytes_read;
int64_t offset;
const void *buff;
int64_t progress;
char *null_buff;
int64_t sparse;
size_t ns;
... | static int copy_file_data_block(struct bsdtar *bsdtar, struct archive *a,
struct archive *in_a,
struct archive_entry *entry) {
size_t bytes_read;
ssize_t bytes_written;
int64_t offset, progress = 0;
char *null_buff = NULL;
const void *buff;
int... | copy_file_data_block | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
void cset_add_filter_program(creation_set *cset, const char *filter) {
cset_add_filter(cset, 1, filter);
} | void cset_add_filter_program(struct creation_set *cset, const char *filter) {
_cset_add_filter(cset, 1, filter);
} | cset_add_filter_program | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
int cset_auto_compress(creation_set *cset, const char *filename) {
size_t v2;
size_t v3;
filter_set *v4;
int v5;
filter_set *v6;
char *filter_name;
int i;
int r;
int old_filter_count;
char *name;
filter_set *old_filters;
const char *p;
const char *code;
const char *codea;
const char *codeb... | int cset_auto_compress(struct creation_set *cset, const char *filename) {
struct filter_set *old_filters;
char *name, *p;
const char *code;
int old_filter_count;
name = strdup(filename);
if (name == NULL)
lafe_errc(1, 0, "No memory");
old_filters = cset->filters;
old_filter_count = cset->filter_co... | cset_auto_compress | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
void cset_free(creation_set *cset) {
cleanup_filters(cset->filters, cset->filter_count);
free(cset->create_format);
free(cset);
} | void cset_free(struct creation_set *cset) {
_cleanup_filters(cset->filters, cset->filter_count);
free(cset->create_format);
free(cset);
} | cset_free | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
const char *cset_get_format(creation_set *cset) { return cset->create_format; } | const char *cset_get_format(struct creation_set *cset) {
return (cset->create_format);
} | cset_get_format | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
creation_set *cset_new() { return (creation_set *)calloc(1u, 0x18u); } | struct creation_set *cset_new(void) {
return calloc(1, sizeof(struct creation_set));
} | cset_new | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
int cset_read_support_filter_program(creation_set *cset, archive *a) {
int cnt;
int i;
cnt = 0;
for (i = 0; i < cset->filter_count; ++i) {
if (cset->filters[i].program) {
archive_read_support_filter_program(a, cset->filters[i].filter_name);
++cnt;
}
}
return cnt;
} | int cset_read_support_filter_program(struct creation_set *cset,
struct archive *a) {
int cnt = 0, i;
for (i = 0; i < cset->filter_count; i++) {
if (cset->filters[i].program) {
archive_read_support_filter_program(a, cset->filters[i].filter_name);
++cnt;
}
}... | cset_read_support_filter_program | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
void cset_set_format(creation_set *cset, const char *format) {
char *f;
f = strdup(format);
if (!f)
lafe_errc(1, 0, "No memory");
free(cset->create_format);
cset->create_format = f;
} | void cset_set_format(struct creation_set *cset, const char *format) {
char *f;
f = strdup(format);
if (f == NULL)
lafe_errc(1, 0, "No memory");
free(cset->create_format);
cset->create_format = f;
} | cset_set_format | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
int cset_write_add_filters(creation_set *cset, archive *a,
const void **filter_name) {
int cnt;
int i;
int r;
cnt = 0;
for (i = 0; i < cset->filter_count; ++i) {
if (cset->filters[i].program)
r = archive_write_add_filter_program(a, cset->filters[i].filter_name);
else
... | int cset_write_add_filters(struct creation_set *cset, struct archive *a,
const void **filter_name) {
int cnt = 0, i, r;
for (i = 0; i < cset->filter_count; i++) {
if (cset->filters[i].program)
r = archive_write_add_filter_program(a, cset->filters[i].filter_name);
else
... | cset_write_add_filters | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
const char *decompose_alias(const char *suffix) {
return get_suffix_code(alias_0, suffix);
} | static const char *decompose_alias(const char *suffix) {
static const struct suffix_code_t alias[] = {
{".taz", ".tar.gz"}, {".tgz", ".tar.gz"}, {".tbz", ".tar.bz2"},
{".tbz2", ".tar.bz2"}, {".tz2", ".tar.bz2"}, {".tlz", ".tar.lzma"},
{".txz", ".tar.xz"}, {".tzo", ".tar.lzo"}, {".taZ", ".tar... | decompose_alias | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
void excluded_callback(archive *a, void *_data, archive_entry *entry) {
const char *v3;
if ((*((_DWORD *)_data + 9) & 0x80) == 0) {
if ((unsigned int)archive_read_disk_can_descend(a)) {
if ((*((_DWORD *)_data + 9) & 0x20) == 0 ||
(v3 = (const char *)archive_entry_pathname(entry),
yes... | static void excluded_callback(struct archive *a, void *_data,
struct archive_entry *entry) {
struct bsdtar *bsdtar = (struct bsdtar *)_data;
if (bsdtar->flags & OPTFLAG_NO_SUBDIRS)
return;
if (!archive_read_disk_can_descend(a))
return;
if ((bsdtar->flags & OPTFLAG_INTERACT... | excluded_callback | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
const char *get_filter_code(const char *suffix) {
return get_suffix_code(filters_2, suffix);
} | static const char *get_filter_code(const char *suffix) {
static const struct suffix_code_t filters[] = {
{".Z", "compress"}, {".bz2", "bzip2"}, {".gz", "gzip"},
{".grz", "grzip"}, {".lrz", "lrzip"}, {".lz", "lzip"},
{".lz4", "lz4"}, {".lzo", "lzop"}, {".lzma", "lzma"},
{".uu", "uuenco... | get_filter_code | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
const char *get_format_code(const char *suffix) {
return get_suffix_code(formats_1, suffix);
} | static const char *get_format_code(const char *suffix) {
static const struct suffix_code_t formats[] = {
{".7z", "7zip"}, {".ar", "arbsd"}, {".cpio", "cpio"},
{".iso", "iso9660"}, {".mtree", "mtree"}, {".shar", "shar"},
{".tar", "paxr"}, {".warc", "warc"}, {".xar", "xar"},
{".zip"... | get_format_code | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
const char *get_suffix_code(const suffix_code_t *tbl, const char *suffix) {
int i;
if (!suffix)
return 0;
for (i = 0; tbl[i].suffix; ++i) {
if (!strcmp(tbl[i].suffix, suffix))
return tbl[i].form;
}
return 0;
} | static const char *get_suffix_code(const struct suffix_code_t *tbl,
const char *suffix) {
int i;
if (suffix == NULL)
return (NULL);
for (i = 0; tbl[i].suffix != NULL; i++) {
if (strcmp(tbl[i].suffix, suffix) == 0)
return (tbl[i].form);
}
return (NULL);
} | get_suffix_code | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
void init_substitution(bsdtar *bsdtar) {
int *v1;
substitution *subst;
subst = (substitution *)malloc(0x10u);
bsdtar->substitution = subst;
if (!subst) {
v1 = __errno_location();
lafe_errc(1, *v1, "Out of memory");
}
subst->last_rule = 0;
subst->first_rule = subst->last_rule;
} | static void init_substitution(struct bsdtar *bsdtar) {
struct substitution *subst;
bsdtar->substitution = subst = malloc(sizeof(*subst));
if (subst == NULL)
lafe_errc(1, errno, "Out of memory");
subst->first_rule = subst->last_rule = NULL;
} | init_substitution | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
void long_help() {
const char *v0;
const char *p;
const char *prog;
prog = lafe_getprogname();
fflush(stderr);
if (!strcmp(prog, "bsdtar"))
v0 = &locale;
else
v0 = "(bsdtar)";
printf("%s%s: manipulate archive files\n", prog, v0);
for (p = long_help_msg; *p; ++p) {
if (*p == 37) {
if... | static void long_help(void) {
const char *prog;
const char *p;
prog = lafe_getprogname();
fflush(stderr);
p = (strcmp(prog, "bsdtar") != 0) ? "(bsdtar)" : "";
printf("%s%s: manipulate archive files\n", prog, p);
for (p = long_help_msg; *p != '\0'; p++) {
if (*p == '%') {
if (p[1] == 'p') {
... | long_help | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int *v3;
int extract_flags;
int v5;
int v6;
int *v7;
int *v8;
unsigned int flags;
int v10;
int v11;
unsigned int v12;
int v13;
unsigned int v14;
const char *v15;
const char *v16;
const char *v17;
const char *v18;
int v19;
int... | int main(int argc, char **argv) {
struct bsdtar *bsdtar, bsdtar_storage;
int opt, t;
char compression, compression2;
const char *compression_name, *compression2_name;
const char *compress_program;
char *tptr;
char possible_help_request;
char buff[16];
bsdtar = &bsdtar_storage;
memset(bsdtar, 0, siz... | main | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
int metadata_filter(archive *a, void *_data, archive_entry *entry) {
const char *v3;
if ((*((_DWORD *)_data + 9) & 0x20) != 0) {
v3 = (const char *)archive_entry_pathname(entry);
if (!yes("add '%s'", v3))
return 0;
}
if ((*((_DWORD *)_data + 9) & 0x80) == 0) {
if ((unsigned int)archive_read_d... | static int metadata_filter(struct archive *a, void *_data,
struct archive_entry *entry) {
struct bsdtar *bsdtar = (struct bsdtar *)_data;
if ((bsdtar->flags & OPTFLAG_INTERACTIVE) &&
!yes("add '%s'", archive_entry_pathname(entry)))
return (0);
if (((bsdtar->flags & OPTFLAG_N... | metadata_filter | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
void only_mode(bsdtar *bsdtar, const char *opt, const char *valid_modes) {
if (!strchr(valid_modes, bsdtar->mode))
lafe_errc(1, 0, "Option %s is not permitted in mode -%c", opt,
(unsigned int)bsdtar->mode);
} | static void only_mode(struct bsdtar *bsdtar, const char *opt,
const char *valid_modes) {
if (strchr(valid_modes, bsdtar->mode) == NULL)
lafe_errc(1, 0, "Option %s is not permitted in mode -%c", opt,
bsdtar->mode);
} | only_mode | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
void progress_func(void *cookie) {
const char *v1;
const char *v2;
int v3;
const char *v4;
int64_t v5;
const char *v6;
int compression;
bsdtar *bsdtar;
archive *a;
archive_entry *entry;
uint64_t comp;
uint64_t uncomp;
bsdtar = *(bsdtar **)cookie;
a = (archive *)*((_QWORD *)cookie + 1);
en... | static void progress_func(void *cookie) {
struct progress_data *progress_data = (struct progress_data *)cookie;
struct bsdtar *bsdtar = progress_data->bsdtar;
struct archive *a = progress_data->archive;
struct archive_entry *entry = progress_data->entry;
uint64_t comp, uncomp;
int compression;
if (!need_... | progress_func | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdtar | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.