input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
void writeBitsReversed(LodePNGBitWriter *writer, unsigned int value,
size_t nbits) {
size_t i;
for (i = 0; i != nbits; ++i) {
if ((writer->bp & 7) == 0)
ucvector_push_back(writer->data, 0);
writer->data->data[writer->data->size - 1] |=
((value >> (nbits - i - 1)) & 1) <... | static void writeBitsReversed(LodePNGBitWriter *writer, unsigned value,
size_t nbits) {
size_t i;
for (i = 0; i != nbits; ++i) {
WRITEBIT(writer, (unsigned char)((value >> (nbits - 1u - i)) & 1u));
}
} | writeBitsReversed | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopflipng.so.1.0.3 | ida | O0 |
void writeLZ77data(LodePNGBitWriter *writer, const uivector *lz77_encoded,
const HuffmanTree *tree_ll, const HuffmanTree *tree_d) {
size_t Length;
unsigned int Code;
size_t v6;
unsigned int v7;
unsigned int val;
unsigned int length_extra_bits;
unsigned int distance_index;
unsigned int... | static void writeLZ77data(LodePNGBitWriter *writer,
const uivector *lz77_encoded,
const HuffmanTree *tree_ll,
const HuffmanTree *tree_d) {
size_t i = 0;
for (i = 0; i != lz77_encoded->size; ++i) {
unsigned val = lz77_encoded->data[i];... | writeLZ77data | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopflipng.so.1.0.3 | ida | O0 |
void writeSignature(ucvector *out) {
ucvector_push_back(out, 0x89u);
ucvector_push_back(out, 0x50u);
ucvector_push_back(out, 0x4Eu);
ucvector_push_back(out, 0x47u);
ucvector_push_back(out, 0xDu);
ucvector_push_back(out, 0xAu);
ucvector_push_back(out, 0x1Au);
ucvector_push_back(out, 0xAu);
} | static void writeSignature(ucvector *out) {
ucvector_push_back(out, 137);
ucvector_push_back(out, 80);
ucvector_push_back(out, 78);
ucvector_push_back(out, 71);
ucvector_push_back(out, 13);
ucvector_push_back(out, 10);
ucvector_push_back(out, 26);
ucvector_push_back(out, 10);
} | writeSignature | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopflipng.so.1.0.3 | ida | O0 |
int do_scan(char *infile) {
const char *v1;
unsigned int e;
unsigned int cyl;
dsk_phead_t head;
dsk_phead_t maxhead;
dsk_pcyl_t maxcyl;
DSK_PDRIVER indr;
char *cmt;
DSK_GEOMETRY dg;
unsigned long v11;
v11 = __readfsqword(0x28u);
indr = 0;
cmt = 0;
maxhead = 2;
dsk_reportfunc_set(report, r... | int do_scan(char *infile) {
DSK_PDRIVER indr = NULL;
dsk_err_t e;
dsk_pcyl_t cyl;
dsk_phead_t head;
char *cmt = NULL;
DSK_GEOMETRY dg;
dsk_pcyl_t maxcyl;
dsk_phead_t maxhead = 2;
dsk_reportfunc_set(report, report_end);
e = dsk_open(&indr, infile, intyp, incomp);
if (!e)
e = dsk_set_retry(ind... | do_scan | libdsk-1.5.18 | app-emulation | O0/app-emulation/libdsk-1.5.18/dskscan | ida | O0 |
int help(int argc, char **argv) {
char *v2;
char *v3;
char *v4;
char *v5;
char *v6;
v2 = __xpg_basename(*argv);
fprintf(stderr, "Syntax: \n %s {options} image\n", v2);
v3 = __xpg_basename(*argv);
v4 = __xpg_basename(*argv);
fprintf(stderr,
"\n"
"Options are:\n"
"-... | int help(int argc, char **argv) {
fprintf(stderr,
"Syntax: \n"
" %s {options} image\n",
AV0);
fprintf(stderr,
"\nOptions are:\n"
"-type <type> type of input disc image\n"
" '%s -types' lists valid types.\n"
"-side <side> Fo... | help | libdsk-1.5.18 | app-emulation | O0/app-emulation/libdsk-1.5.18/dskscan | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int argca[4];
argca[0] = argc;
if (!standard_args(argc, (char **)argv))
return 0;
if (argca[0] <= 1 || find_arg("--help", argca[0], (char **)argv) > 0)
return help(argca[0], (char **)argv);
ignore_arg("-itype", 2, argca, (char **)argv);
ign... | int main(int argc, char **argv) {
int stdret = standard_args(argc, argv);
if (!stdret)
return 0;
if (argc < 2)
return help(argc, argv);
if (find_arg("--help", argc, argv) > 0)
return help(argc, argv);
ignore_arg("-itype", 2, &argc, argv);
ignore_arg("-iside", 2, &argc, argv);
ignore_arg("-id... | main | libdsk-1.5.18 | app-emulation | O0/app-emulation/libdsk-1.5.18/dskscan | ida | O0 |
int scan_cyl(DSK_PDRIVER indr, DSK_GEOMETRY *dg, dsk_pcyl_t cyl,
dsk_phead_t head) {
dsk_rate_t dg_datarate;
DSK_FORMAT *v6;
long v7;
const char *v8;
const char *v9;
dsk_psect_t sector_count;
dsk_err_t err;
dsk_psect_t secnum;
DSK_FORMAT *fmt_track;
DSK_FORMAT sector_id;
unsigned long... | int scan_cyl(DSK_PDRIVER indr, DSK_GEOMETRY *dg, dsk_pcyl_t cyl,
dsk_phead_t head) {
dsk_err_t err = DSK_ERR_OK;
DSK_FORMAT sector_id;
DSK_FORMAT *fmt_track;
dsk_psect_t sector_count;
dsk_psect_t secnum;
dg->dg_noskip = 1;
for (dg->dg_datarate = RATE_HD; dg->dg_datarate <= RATE_ED;
+... | scan_cyl | libdsk-1.5.18 | app-emulation | O0/app-emulation/libdsk-1.5.18/dskscan | ida | O0 |
char *check_labelarg(int *argc, char **argv, char *arg) {
size_t v4;
int n;
char *result;
n = find_arg(arg, *argc, argv);
if (n < 0)
return 0;
excise_arg(n, argc, argv);
if (n >= *argc) {
fprintf(stderr, "Syntax error: '%s' must be followed by a name.\n", arg);
exit(1);
}
v4 = strlen(argv... | static char *check_labelarg(int *argc, char **argv, char *arg) {
int n = find_arg(arg, *argc, argv);
char *result;
if (n < 0)
return NULL;
excise_arg(n, argc, argv);
if (n >= *argc) {
fprintf(stderr, "Syntax error: '%s' must be followed by a name.\n", arg);
exit(1);
}
result = malloc(1 + str... | check_labelarg | libdsk-1.5.18 | app-emulation | O0/app-emulation/libdsk-1.5.18/dsklabel | ida | O0 |
void check_labelargs(int *argc, char **argv, char **oemid, char **fsid,
char **bootlabel, char **dirlabel) {
char *arg;
char *arga;
char *argb;
char *argd;
char *arge;
arg = check_labelarg(argc, argv, "-oemid");
if (arg)
*oemid = arg;
arga = check_labelarg(argc, argv, "-fsid");... | void check_labelargs(int *argc, char **argv, char **oemid, char **fsid,
char **bootlabel, char **dirlabel) {
char *arg;
arg = check_labelarg(argc, argv, "-oemid");
if (arg)
*oemid = arg;
arg = check_labelarg(argc, argv, "-fsid");
if (arg)
*fsid = arg;
arg = check_labelarg(argc,... | check_labelargs | libdsk-1.5.18 | app-emulation | O0/app-emulation/libdsk-1.5.18/dsklabel | ida | O0 |
dsk_err_t cpm_walk_dir(DSK_PDRIVER dsk, DSK_GEOMETRY *geom, char *dirlabel,
int operation) {
int dsm;
int drm;
int off;
int al0;
int entry;
int match;
dsk_err_t err;
int dirs_per_sec;
time_t t;
char *p;
unsigned char *secbuf;
dsk_lsect_t dirsec;
unsigned char *dirent;
... | static dsk_err_t cpm_walk_dir(DSK_PDRIVER dsk, DSK_GEOMETRY *geom,
char *dirlabel, int operation) {
int dsm, drm, off, al0;
dsk_err_t err;
int entry;
dsk_lsect_t dirsec;
unsigned char *dirent;
int match = 0;
time_t t;
unsigned char *secbuf;
int dirs_per_sec;
char fcb[12... | cpm_walk_dir | libdsk-1.5.18 | app-emulation | O0/app-emulation/libdsk-1.5.18/dsklabel | ida | O0 |
int do_label(char *outfile, char *outtyp, char *outcomp, int forcehead) {
const char *v4;
int e;
DSK_PDRIVER outdr;
DSK_GEOMETRY dg;
char oemid[9];
char fsid[9];
char bootlabel[32];
char dirlabel[40];
unsigned long v14;
v14 = __readfsqword(0x28u);
outdr = 0;
e = dsk_open(&outdr, outfile, outtyp... | int do_label(char *outfile, char *outtyp, char *outcomp, int forcehead) {
DSK_PDRIVER outdr = NULL;
dsk_err_t e;
DSK_GEOMETRY dg;
char oemid[9];
char fsid[9];
char bootlabel[30];
char dirlabel[30];
e = dsk_open(&outdr, outfile, outtyp, outcomp);
if (!e && forcehead >= 0)
e = dsk_set_forcehead(out... | do_label | libdsk-1.5.18 | app-emulation | O0/app-emulation/libdsk-1.5.18/dsklabel | ida | O0 |
dsk_err_t dos_walk_dir(DSK_PDRIVER dsk, DSK_GEOMETRY *geom, char *dirlabel,
int operation) {
_BOOL4 v5;
_BOOL4 v6;
int direntries;
int reserved;
int fatcopies;
int secfat;
int entry;
int match;
dsk_err_t err;
time_t t;
dsk_lsect_t dirsec;
unsigned char *dirent;
tm *ptm;
... | static dsk_err_t dos_walk_dir(DSK_PDRIVER dsk, DSK_GEOMETRY *geom,
char *dirlabel, int operation) {
int direntries, reserved;
int fatcopies, secfat;
dsk_err_t err;
int entry;
dsk_lsect_t dirsec;
unsigned char secbuf[512];
unsigned char *dirent;
int match = 0;
time_t t;
... | dos_walk_dir | libdsk-1.5.18 | app-emulation | O0/app-emulation/libdsk-1.5.18/dsklabel | ida | O0 |
dsk_err_t get_labels(DSK_PDRIVER dsk, DSK_GEOMETRY *geom, char *oemid,
char *fsid, char *bootlabel, char *dirlabel) {
int fatcopies;
int direntries;
int secfat;
int al0;
int dsm;
int reserved;
dsk_err_t err;
int found;
DSK_GEOMETRY bootgeom;
char diskname[13];
unsigned char md... | dsk_err_t get_labels(DSK_PDRIVER dsk, DSK_GEOMETRY *geom, char *oemid,
char *fsid, char *bootlabel, char *dirlabel) {
dsk_err_t err;
int fatcopies;
int direntries;
int secfat;
int al0;
int dsm;
int reserved;
DSK_GEOMETRY bootgeom;
int found = 0;
if (oemid)
oemid[0] = 0;
i... | get_labels | libdsk-1.5.18 | app-emulation | O0/app-emulation/libdsk-1.5.18/dsklabel | ida | O0 |
int help(int argc, char **argv) {
char *v2;
char *v3;
char *v4;
v2 = __xpg_basename(*argv);
fprintf(stderr,
"Syntax: \n"
" %s { options } dskimage\n"
"\n"
"Options are:\n"
" -oemid <text> : Set OEM identifier\n"
" -fsid <text> : ... | int help(int argc, char **argv) {
fprintf(stderr,
"Syntax: \n"
" %s { options } dskimage\n\n"
"Options are:\n"
" -oemid <text> : Set OEM identifier\n"
" -fsid <text> : Set filesystem ID\n"
" -label <text> : Set disk label in boot s... | help | libdsk-1.5.18 | app-emulation | O0/app-emulation/libdsk-1.5.18/dsklabel | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int argca[3];
int forcehead;
char *outtyp;
char *outcomp;
argca[0] = argc;
if (!standard_args(argc, (char **)argv))
return 0;
if (argca[0] <= 1)
return help(argca[0], (char **)argv);
ignore_arg("-itype", 2, argca, (char **)argv);
igno... | int main(int argc, char **argv) {
char *outtyp;
char *outcomp;
int forcehead;
int stdret;
stdret = standard_args(argc, argv);
if (!stdret)
return 0;
if (argc < 2)
return help(argc, argv);
ignore_arg("-itype", 2, &argc, argv);
ignore_arg("-iside", 2, &argc, argv);
ignore_arg("-icomp", 2, &a... | main | libdsk-1.5.18 | app-emulation | O0/app-emulation/libdsk-1.5.18/dsklabel | ida | O0 |
dsk_err_t set_labels(DSK_PDRIVER dsk, DSK_GEOMETRY *geom, const char *oemid,
const char *fsid, const char *bootlabel,
const char *dirlabel) {
int fatcopies;
int direntries;
int secfat;
int al0;
int dsm;
int reserved;
dsk_err_t err;
DSK_GEOMETRY bootgeom;
char ... | dsk_err_t set_labels(DSK_PDRIVER dsk, DSK_GEOMETRY *geom, const char *oemid,
const char *fsid, const char *bootlabel,
const char *dirlabel) {
dsk_err_t err;
int fatcopies;
int direntries;
int secfat;
int al0;
int dsm;
int reserved;
DSK_GEOMETRY bootgeom;
char ... | set_labels | libdsk-1.5.18 | app-emulation | O0/app-emulation/libdsk-1.5.18/dsklabel | ida | O0 |
void time2cpm(time_t unixtime, unsigned char *cpmtime) {
*(_WORD *)cpmtime = unixtime / 86400 - 2921;
cpmtime[2] = (unixtime % 86400 / 3600 % 10) & 0xF |
(16 * (unixtime % 86400 / 3600 / 10));
cpmtime[3] =
(unixtime % 3600 / 60 % 10) & 0xF | (16 * (unixtime % 3600 / 60 / 10));
} | static void time2cpm(time_t unixtime, unsigned char *cpmtime) {
long d = (unixtime / 86400) - 2921;
long h = (unixtime % 86400) / 3600;
long m = (unixtime % 3600) / 60;
cpmtime[0] = (unsigned char)(d & 0xFF);
cpmtime[1] = (unsigned char)((d >> 8) & 0xFF);
cpmtime[2] = (unsigned char)(BCD(h));
cpmtime[3] ... | time2cpm | libdsk-1.5.18 | app-emulation | O0/app-emulation/libdsk-1.5.18/dsklabel | ida | O0 |
int Fclose(FD_t fd) {
long (*v2)(FDSTACK_t);
int v3;
int v4;
const char *v5;
FD_t fda;
int rc;
int ec;
FDSTACK_t fps;
rc = 0;
ec = 0;
if (!fd)
return -1;
fda = fdLink(fd);
fdstat_enter(fda, fdOpX_e_FDSTAT_CLOSE);
for (fps = (FDSTACK_t) * ((_QWORD *)fda + 2); fps; fps = fdPop(fda)) {
... | int Fclose(FD_t fd) {
int rc = 0, ec = 0;
if (fd == NULL)
return -1;
fd = fdLink(fd);
fdstat_enter(fd, FDSTAT_CLOSE);
for (FDSTACK_t fps = fd->fps; fps != NULL; fps = fdPop(fd)) {
if (fps->fdno >= 0) {
fdio_close_function_t _close = FDIOVEC(fps, close);
rc = _close ? _close(fps) : -2;
... | Fclose | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Fcntl(FD_t fd, int op, void *lip) {
int v3;
v3 = Fileno(fd);
return fcntl(v3, op, lip);
} | int Fcntl(FD_t fd, int op, void *lip) { return fcntl(Fileno(fd), op, lip); } | Fcntl | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
const char *Fdescr(FD_t fd) {
char *v2;
int fdno;
char *procpath;
ssize_t llen;
char buf[4104];
unsigned long v7;
v7 = __readfsqword(0x28u);
if (!fd)
return dgettext("rpm", "[none]");
if (!*((_QWORD *)fd + 4)) {
fdno = *(_DWORD *)(*((_QWORD *)fd + 2) + 16LL);
procpath = 0;
rasprintf(&... | const char *Fdescr(FD_t fd) {
if (fd == NULL)
return _("[none]");
if (fd->descr == NULL) {
int fdno = fd->fps->fdno;
#if defined(__linux__)
char *procpath = NULL;
char buf[PATH_MAX];
ssize_t llen;
rasprintf(&procpath, "/proc/self/fd/%d", fdno);
llen = readlink(procpath, buf, sizeof(bu... | Fdescr | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
FD_t Fdopen(FD_t ofd, const char *fmode) {
const char *v2;
size_t v4;
size_t v5;
int v6;
const char *v7;
int fdno;
const char *end;
FDIO_t iot;
FD_t fd;
char stdio[32];
char other[32];
char stdioz[40];
unsigned long v15;
v15 = __readfsqword(0x28u);
end = 0;
iot = 0;
fd = ofd;
fdno =... | FD_t Fdopen(FD_t ofd, const char *fmode) {
char stdio[20], other[20], stdioz[40];
const char *end = NULL;
FDIO_t iot = NULL;
FD_t fd = ofd;
int fdno = Fileno(ofd);
if (_rpmio_debug)
fprintf(stderr, "*** Fdopen(%p,%s) %s\n", fd, fmode, fdbg(fd));
if (fd == NULL || fmode == NULL || fdno < 0)
retur... | Fdopen | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Ferror(FD_t fd) {
long (*v2)(FDSTACK_t);
const char *v3;
int rc;
FDSTACK_t fps;
rc = 0;
if (!fd)
return -1;
for (fps = (FDSTACK_t) * ((_QWORD *)fd + 2); fps; fps = fps->prev) {
v2 = fps->io ? (long (*)(FDSTACK_t))fps->io->_ferror : 0LL;
rc = v2(fps);
if (rc)
break;
}
if (((*... | int Ferror(FD_t fd) {
int rc = 0;
if (fd == NULL)
return -1;
for (FDSTACK_t fps = fd->fps; fps != NULL; fps = fps->prev) {
fdio_ferror_function_t _ferror = FDIOVEC(fps, _ferror);
rc = _ferror(fps);
if (rc)
break;
}
DBGIO(fd, (stderr, "==> Ferror(%p) rc %d %s\n", fd, rc, fdbg(fd)));
r... | Ferror | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Fflush(FD_t fd) {
long (*fflush)(FDSTACK_t);
int rc;
FDSTACK_t fps;
rc = -1;
if (fd) {
fps = fdGetFps(fd);
if (fps && fps->io)
fflush = (long (*)(FDSTACK_t))fps->io->_fflush;
else
fflush = 0;
if (fflush)
return fflush(fps);
else
return -2;
}
return rc;
} | int Fflush(FD_t fd) {
int rc = -1;
if (fd != NULL) {
FDSTACK_t fps = fdGetFps(fd);
fdio_fflush_function_t _fflush = FDIOVEC(fps, _fflush);
rc = (_fflush ? _fflush(fps) : -2);
}
return rc;
} | Fflush | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int FgetID(lua_State *L, int i, const void *data) {
double v3;
double v4;
double v5;
double v6;
double v7;
double v8;
double v9;
switch (i) {
case 0:
v3 = (double)(int)getegid();
lua_pushnumber(L, v3);
break;
case 1:
v4 = (double)(int)geteuid();
lua_pushnumber(L, v4);
break;... | static int FgetID(lua_State *L, int i, const void *data) {
switch (i) {
case 0:
lua_pushnumber(L, getegid());
break;
case 1:
lua_pushnumber(L, geteuid());
break;
case 2:
lua_pushnumber(L, getgid());
break;
case 3:
lua_pushnumber(L, getuid());
break;
case 4:
lua_pushnumber... | FgetID | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Fgetpasswd(lua_State *L, int i, const void *data) {
switch (i) {
case 0:
lua_pushstring(L, *(_QWORD *)data);
break;
case 1:
lua_pushnumber(L, (double)*((int *)data + 4));
break;
case 2:
lua_pushnumber(L, (double)*((int *)data + 5));
break;
case 3:
lua_pushstring(L, *((_QWORD *)... | static int Fgetpasswd(lua_State *L, int i, const void *data) {
const struct passwd *p = data;
switch (i) {
case 0:
lua_pushstring(L, p->pw_name);
break;
case 1:
lua_pushnumber(L, p->pw_uid);
break;
case 2:
lua_pushnumber(L, p->pw_gid);
break;
case 3:
lua_pushstring(L, p->pw_dir);... | Fgetpasswd | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Fileno(FD_t fd) {
const char *v2;
int rc;
FDSTACK_t fps;
rc = -1;
if (!fd)
return -1;
for (fps = (FDSTACK_t) * ((_QWORD *)fd + 2); fps; fps = fps->prev) {
rc = fps->fdno;
if (rc != -1)
break;
}
if (((*((_DWORD *)fd + 1) | rpmio_debug) & 0x40000000) != 0) {
v2 = fdbg(fd);
f... | int Fileno(FD_t fd) {
int rc = -1;
if (fd == NULL)
return -1;
for (FDSTACK_t fps = fd->fps; fps != NULL; fps = fps->prev) {
rc = fps->fdno;
if (rc != -1)
break;
}
DBGIO(fd,
(stderr, "==> Fileno(%p) rc %d %s\n", (fd ? fd : NULL), rc, fdbg(fd)));
return rc;
} | Fileno | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
FD_t Fopen(const char *path, const char *fmode) {
int v3;
const char *v4;
int flags;
mode_t perms;
const char *end;
FD_t fd;
char stdio[32];
char other[24];
unsigned long v11;
v11 = __readfsqword(0x28u);
end = 0;
perms = 438;
flags = 0;
fd = 0;
if (!path || !fmode)
return 0;
stdio[0... | FD_t Fopen(const char *path, const char *fmode) {
char stdio[20], other[20];
const char *end = NULL;
mode_t perms = 0666;
int flags = 0;
FD_t fd = NULL;
if (path == NULL || fmode == NULL)
return NULL;
stdio[0] = '\0';
cvtfmode(fmode, stdio, sizeof(stdio), other, sizeof(other), &end, &flags);
if ... | Fopen | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Fpathconf(lua_State *L, int i, const void *data) {
double v3;
v3 = (double)(int)pathconf((const char *)data, Kpathconf[i]);
lua_pushnumber(L, v3);
return 1;
} | static int Fpathconf(lua_State *L, int i, const void *data) {
const char *path = data;
lua_pushnumber(L, pathconf(path, Kpathconf[i]));
return 1;
} | Fpathconf | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
ssize_t Fread(void *buf, size_t size, size_t nmemb, FD_t fd) {
ssize_t (*read)(FDSTACK_t, void *, size_t);
long v5;
int v6;
const char *v7;
ssize_t rc;
FDSTACK_t fps;
fdio_read_function_t _read;
rc = -1;
if (fd) {
fps = fdGetFps(fd);
if (fps && fps->io)
read = fps->io->read;
else
... | ssize_t Fread(void *buf, size_t size, size_t nmemb, FD_t fd) {
ssize_t rc = -1;
if (fd != NULL) {
FDSTACK_t fps = fdGetFps(fd);
fdio_read_function_t _read = FDIOVEC(fps, read);
fdstat_enter(fd, FDSTAT_READ);
do {
rc = (_read ? (*_read)(fps, buf, size * nmemb) : -2);
} while (rc == -1 && ... | Fread | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Fseek(FD_t fd, off_t offset, int whence) {
int (*seek)(FDSTACK_t, off_t, int);
int v4;
int v5;
const char *v6;
int rc;
FDSTACK_t fps;
fdio_seek_function_t _seek;
rc = -1;
if (fd) {
fps = fdGetFps(fd);
if (fps && fps->io)
seek = fps->io->seek;
else
seek = 0;
_seek = see... | int Fseek(FD_t fd, off_t offset, int whence) {
int rc = -1;
if (fd != NULL) {
FDSTACK_t fps = fdGetFps(fd);
fdio_seek_function_t _seek = FDIOVEC(fps, seek);
fdstat_enter(fd, FDSTAT_SEEK);
rc = (_seek ? _seek(fps, offset, whence) : -2);
fdstat_exit(fd, FDSTAT_SEEK, rc);
}
DBGIO(fd, (stderr... | Fseek | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Fstat(lua_State *L, int i, const void *data) {
long v3;
double v4;
long v5;
long v6;
long v7;
long v8;
switch (i) {
case 0:
lua_pushstring(L, (char *)data + 144);
return 1;
case 1:
v3 = *((_QWORD *)data + 1);
if (v3 < 0) {
v5 = *((_QWORD *)data + 1) & 1LL | (*((_QWORD *)data... | static int Fstat(lua_State *L, int i, const void *data) {
const struct mystat *s = data;
switch (i) {
case 0:
lua_pushstring(L, s->mode);
break;
case 1:
lua_pushnumber(L, s->s.st_ino);
break;
case 2:
lua_pushnumber(L, s->s.st_dev);
break;
case 3:
lua_pushnumber(L, s->s.st_nlink);... | Fstat | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
const char *Fstrerror(FD_t fd) {
long (*fstrerr)(FDSTACK_t);
int *v2;
const char *err;
FDSTACK_t fps;
err = (const char *)&unk_31DE6;
if (fd) {
fps = fdGetFps(fd);
if (fps && fps->io)
fstrerr = (long (*)(FDSTACK_t))fps->io->_fstrerr;
else
fstrerr = 0;
if (fstrerr)
return (... | const char *Fstrerror(FD_t fd) {
const char *err = "";
if (fd != NULL) {
FDSTACK_t fps = fdGetFps(fd);
fdio_fstrerr_function_t _fstrerr = FDIOVEC(fps, _fstrerr);
if (_fstrerr)
err = _fstrerr(fps);
} else if (errno) {
err = strerror(errno);
}
return err;
} | Fstrerror | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Fsysconf(lua_State *L, int i, const void *data) {
double v3;
v3 = (double)(int)sysconf(Ksysconf[i]);
lua_pushnumber(L, v3);
return 1;
} | static int Fsysconf(lua_State *L, int i, const void *data) {
lua_pushnumber(L, sysconf(Ksysconf[i]));
return 1;
} | Fsysconf | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
off_t Ftell(FD_t fd) {
long (*ftell)(FDSTACK_t);
off_t pos;
FDSTACK_t fps;
pos = -1;
if (fd) {
fps = fdGetFps(fd);
if (fps && fps->io)
ftell = fps->io->_ftell;
else
ftell = 0;
if (ftell)
return ftell(fps);
else
return -2;
}
return pos;
} | off_t Ftell(FD_t fd) {
off_t pos = -1;
if (fd != NULL) {
FDSTACK_t fps = fdGetFps(fd);
fdio_ftell_function_t _ftell = FDIOVEC(fps, _ftell);
pos = (_ftell ? _ftell(fps) : -2);
}
return pos;
} | Ftell | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Ftimes(lua_State *L, int i, const void *data) {
switch (i) {
case 0:
lua_pushnumber(L, (double)(int)*(_QWORD *)data / 1000000.0);
break;
case 1:
lua_pushnumber(L, (double)(int)*((_QWORD *)data + 1) / 1000000.0);
break;
case 2:
lua_pushnumber(L, (double)(int)*((_QWORD *)data + 2) / 100000... | static int Ftimes(lua_State *L, int i, const void *data) {
const struct mytimes *t = data;
switch (i) {
case 0:
pushtime(L, t->t.tms_utime);
break;
case 1:
pushtime(L, t->t.tms_stime);
break;
case 2:
pushtime(L, t->t.tms_cutime);
break;
case 3:
pushtime(L, t->t.tms_cstime);
b... | Ftimes | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
FTS *Fts_open(char *const *argv, int options,
int (*compar)(const FTSENT **, const FTSENT **)) {
int v3;
FTS *v5;
FTS *v6;
size_t v7;
FTSENT *v8;
int v9;
FTSENT *v10;
FTSENT *v11;
char *const *argva;
int len;
FTSENT *tmp;
FTSENT *parent;
argva = argv;
tmp = 0;
v3 = options;
... | )
#endif
#define ISDOT(a) (a[0] == '.' && (!a[1] || (a[1] == '.' && !a[2])))
#define CLR(opt) (sp->fts_options &= ~(opt))
#define ISSET(opt) (sp->fts_options & (opt))
#define SET(opt) (sp->fts_options |= (opt))
#define FCHDIR(sp, fd) (!ISSET(FTS_NOCHDIR) && __fchdir(fd))
#define BCHILD 1
#define BNAMES 2
#define BR... | Fts_open | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
ssize_t Fwrite(const void *buf, size_t size, size_t nmemb, FD_t fd) {
ssize_t (*write)(FDSTACK_t, const void *, size_t);
long v5;
int v6;
const char *v7;
ssize_t rc;
FDSTACK_t fps;
fdio_write_function_t _write;
rc = -1;
if (fd) {
fps = fdGetFps(fd);
if (fps && fps->io)
write = fps->io->... | ssize_t Fwrite(const void *buf, size_t size, size_t nmemb, FD_t fd) {
ssize_t rc = -1;
if (fd != NULL) {
FDSTACK_t fps = fdGetFps(fd);
fdio_write_function_t _write = FDIOVEC(fps, write);
fdstat_enter(fd, FDSTAT_WRITE);
do {
rc = (_write ? _write(fps, buf, size * nmemb) : -2);
} while (rc... | Fwrite | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Paccess(lua_State *L) {
int v1;
int v2;
int mode;
const char *s;
const char *path;
mode = 0;
path = (const char *)luaL_checklstring(L, 1, 0);
for (s = (const char *)luaL_optlstring(L, 2, "f", 0); *s; ++s) {
v1 = *s;
if (v1 == 120) {
mode |= 1u;
} else {
if (v1 > 120)
... | static int Paccess(lua_State *L) {
int mode = F_OK;
const char *path = luaL_checkstring(L, 1);
const char *s;
for (s = luaL_optstring(L, 2, "f"); *s != 0; s++)
switch (*s) {
case ' ':
break;
case 'r':
mode |= R_OK;
break;
case 'w':
mode |= W_OK;
break;
case 'x':... | Paccess | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pchdir(lua_State *L) {
int v1;
const char *path;
path = (const char *)luaL_checklstring(L, 1, 0);
v1 = chdir(path);
return pushresult_0(L, v1, path);
} | static int Pchdir(lua_State *L) {
const char *path = luaL_checkstring(L, 1);
return pushresult(L, chdir(path), path);
} | Pchdir | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pchmod(lua_State *L) {
int v2;
mode_t mode;
const char *path;
const char *modestr;
stat s;
unsigned long v7;
v7 = __readfsqword(0x28u);
path = (const char *)luaL_checklstring(L, 1, 0);
modestr = (const char *)luaL_checklstring(L, 2, 0);
if (stat_0(path, &s))
return pusherror_0(L, path);
m... | static int Pchmod(lua_State *L) {
mode_t mode;
struct stat s;
const char *path = luaL_checkstring(L, 1);
const char *modestr = luaL_checkstring(L, 2);
if (stat(path, &s))
return pusherror(L, path);
mode = s.st_mode;
if (mode_munch(&mode, modestr))
luaL_argerror(L, 2, "bad mode");
return pushresu... | Pchmod | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pchown(lua_State *L) {
gid_t v1;
int v2;
__uid_t uid;
const char *path;
path = (const char *)luaL_checklstring(L, 1, 0);
uid = mygetuid(L, 2);
v1 = mygetgid(L, 3);
v2 = chown(path, uid, v1);
return pushresult_0(L, v2, path);
} | static int Pchown(lua_State *L) {
const char *path = luaL_checkstring(L, 1);
uid_t uid = mygetuid(L, 2);
gid_t gid = mygetgid(L, 3);
return pushresult(L, chown(path, uid, gid), path);
} | Pchown | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pctermid(lua_State *L) {
char *v1;
char b[9];
unsigned long v4;
v4 = __readfsqword(0x28u);
v1 = ctermid(b);
lua_pushstring(L, v1);
return 1;
} | static int Pctermid(lua_State *L) {
char b[L_ctermid];
lua_pushstring(L, ctermid(b));
return 1;
} | Pctermid | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pdir(lua_State *L) {
int i;
const char *path;
DIR *d;
struct dirent *entry;
path = (const char *)luaL_optlstring(L, 1, ".", 0);
d = opendir(path);
if (!d)
return pusherror_0(L, path);
lua_createtable(L, 0, 0);
for (i = 1;; ++i) {
entry = readdir(d);
if (!entry)
break;
storei... | static int Pdir(lua_State *L) {
const char *path = luaL_optstring(L, 1, ".");
DIR *d = opendir(path);
if (d == NULL)
return pusherror(L, path);
else {
int i;
struct dirent *entry;
lua_newtable(L);
for (i = 1; (entry = readdir(d)) != NULL; i++)
storeindex(L, i, entry->d_name);
close... | Pdir | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Perrno(lua_State *L) {
int *v1;
char *v2;
double v3;
v1 = __errno_location();
v2 = strerror(*v1);
lua_pushstring(L, v2);
v3 = (double)*__errno_location();
lua_pushnumber(L, v3);
return 2;
} | static int Perrno(lua_State *L) {
lua_pushstring(L, strerror(errno));
lua_pushnumber(L, errno);
return 2;
} | Perrno | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pexec(lua_State *L) {
int i;
int n;
const char *path;
char **argv;
path = (const char *)luaL_checklstring(L, 1, 0);
n = lua_gettop(L);
if (!rpmlua_have_forked)
return luaL_error(L, "exec not permitted in this context");
rpmSetCloseOnExec();
argv = (char **)malloc(8LL * (n + 1));
if (!argv)
... | static int Pexec(lua_State *L) {
const char *path = luaL_checkstring(L, 1);
int i, n = lua_gettop(L);
char **argv;
if (!_rpmlua_have_forked)
return luaL_error(L, "exec not permitted in this context");
rpmSetCloseOnExec();
argv = malloc((n + 1) * sizeof(char *));
if (argv == NULL)
return luaL_er... | Pexec | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pfiles(lua_State *L) {
const char *path;
DIR *d;
path = (const char *)luaL_optlstring(L, 1, ".", 0);
d = opendir(path);
if (!d)
return pusherror_0(L, path);
lua_pushlightuserdata(L, d);
lua_pushcclosure(L, aux_files, 1);
return 1;
} | static int Pfiles(lua_State *L) {
const char *path = luaL_optstring(L, 1, ".");
DIR *d = opendir(path);
if (d == NULL)
return pusherror(L, path);
else {
lua_pushlightuserdata(L, d);
lua_pushcclosure(L, aux_files, 1);
return 1;
}
} | Pfiles | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pfork(lua_State *L) {
pid_t pid;
pid = fork();
if (!pid)
rpmlua_have_forked = 1;
return pushresult_0(L, pid, 0);
} | static int Pfork(lua_State *L) {
pid_t pid = fork();
if (pid == 0) {
_rpmlua_have_forked = 1;
}
return pushresult(L, pid, NULL);
} | Pfork | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pgetcwd(lua_State *L) {
char buf[520];
unsigned long v3;
v3 = __readfsqword(0x28u);
if (!getcwd(buf, 0x200u))
return pusherror_0(L, ".");
lua_pushstring(L, buf);
return 1;
} | static int Pgetcwd(lua_State *L) {
char buf[MYBUFSIZ];
if (getcwd(buf, sizeof(buf)) == NULL)
return pusherror(L, ".");
else {
lua_pushstring(L, buf);
return 1;
}
} | Pgetcwd | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pgetenv(lua_State *L) {
const char *v1;
char *v2;
char **e;
char *s;
char *eq;
if ((unsigned int)lua_type(L, 1) == -1) {
if (*environ)
lua_createtable(L, 0, 0);
else
lua_pushnil(L);
for (e = environ; *e; ++e) {
s = *e;
eq = strchr(*e, 61);
if (eq) {
lua... | static int Pgetenv(lua_State *L) {
if (lua_isnone(L, 1)) {
#ifdef __APPLE__
#include <crt_externs.h>
#define environ (*_NSGetEnviron())
#else
extern char **environ;
#endif
char **e;
if (*environ == NULL)
lua_pushnil(L);
else
lua_newtable(L);
for (e = environ; *e != NULL; e++) {
c... | Pgetenv | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pgetgroup(lua_State *L) {
double v1;
const char *v2;
int i;
struct group *g;
g = 0;
if ((unsigned int)lua_isnumber(L, 1)) {
v1 = lua_tonumberx(L, 1, 0);
g = getgrgid((int)v1);
} else if ((unsigned int)lua_isstring(L, 1)) {
v2 = (const char *)lua_tolstring(L, 1, 0);
g = getgrnam(v2);
... | static int Pgetgroup(lua_State *L) {
struct group *g = NULL;
if (lua_isnumber(L, 1))
g = getgrgid((gid_t)lua_tonumber(L, 1));
else if (lua_isstring(L, 1))
g = getgrnam(lua_tostring(L, 1));
else
typerror(L, 1, "string or number");
if (g == NULL)
lua_pushnil(L);
else {
int i;
lua_newta... | Pgetgroup | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pgetlogin(lua_State *L) {
char *v1;
v1 = getlogin();
lua_pushstring(L, v1);
return 1;
} | static int Pgetlogin(lua_State *L) {
lua_pushstring(L, getlogin());
return 1;
} | Pgetlogin | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pgetpasswd(lua_State *L) {
__uid_t v1;
double v2;
const char *v3;
struct passwd *p;
p = 0;
if ((int)lua_type(L, 1) > 0) {
if ((unsigned int)lua_isnumber(L, 1)) {
v2 = lua_tonumberx(L, 1, 0);
p = getpwuid((int)v2);
} else if ((unsigned int)lua_isstring(L, 1)) {
v3 = (const char... | static int Pgetpasswd(lua_State *L) {
struct passwd *p = NULL;
if (lua_isnoneornil(L, 1))
p = getpwuid(geteuid());
else if (lua_isnumber(L, 1))
p = getpwuid((uid_t)lua_tonumber(L, 1));
else if (lua_isstring(L, 1))
p = getpwnam(lua_tostring(L, 1));
else
typerror(L, 1, "string or number");
if ... | Pgetpasswd | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pgetprocessid(lua_State *L) {
return doselection(L, 1, SgetID, (Selector)FgetID, 0);
} | static int Pgetprocessid(lua_State *L) {
return doselection(L, 1, SgetID, FgetID, NULL);
} | Pgetprocessid | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pkill(lua_State *L) {
int v1;
pid_t pid;
int sig;
pid = luaL_checkinteger(L, 1);
sig = luaL_optinteger(L, 2, 15);
v1 = kill(pid, sig);
return pushresult_0(L, v1, 0);
} | static int Pkill(lua_State *L) {
pid_t pid = luaL_checkinteger(L, 1);
int sig = luaL_optinteger(L, 2, SIGTERM);
return pushresult(L, kill(pid, sig), NULL);
} | Pkill | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Plink(lua_State *L) {
const char *v1;
int v2;
const char *oldpath;
oldpath = (const char *)luaL_checklstring(L, 1, 0);
v1 = (const char *)luaL_checklstring(L, 2, 0);
v2 = link(oldpath, v1);
return pushresult_0(L, v2, 0);
} | static int Plink(lua_State *L) {
const char *oldpath = luaL_checkstring(L, 1);
const char *newpath = luaL_checkstring(L, 2);
return pushresult(L, link(oldpath, newpath), NULL);
} | Plink | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pmkdir(lua_State *L) {
int v1;
const char *path;
path = (const char *)luaL_checklstring(L, 1, 0);
v1 = mkdir(path, 0x1FFu);
return pushresult_0(L, v1, path);
} | static int Pmkdir(lua_State *L) {
const char *path = luaL_checkstring(L, 1);
return pushresult(L, mkdir(path, 0777), path);
} | Pmkdir | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pmkfifo(lua_State *L) {
int v1;
const char *path;
path = (const char *)luaL_checklstring(L, 1, 0);
v1 = mkfifo(path, 0x1FFu);
return pushresult_0(L, v1, path);
} | static int Pmkfifo(lua_State *L) {
const char *path = luaL_checkstring(L, 1);
return pushresult(L, mkfifo(path, 0777), path);
} | Pmkfifo | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pmkstemp(lua_State *L) {
int fd;
const char *path;
char *dynpath;
FILE **f;
path = (const char *)luaL_checklstring(L, 1, 0);
if (!path)
return 0;
dynpath = rstrdup(path);
fd = mkstemp(dynpath);
f = (FILE **)lua_newuserdatauv(L, 8, 1);
if (f) {
*f = fdopen(fd, "a+");
lua_pushstring(L... | static int Pmkstemp(lua_State *L) {
const char *path;
char *dynpath;
int fd;
FILE **f;
path = luaL_checkstring(L, 1);
if (path == NULL)
return 0;
dynpath = rstrdup(path);
fd = mkstemp(dynpath);
f = (FILE **)lua_newuserdata(L, sizeof(FILE *));
if (f == NULL) {
close(fd);
free(dynpath);
... | Pmkstemp | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Ppathconf(lua_State *L) {
const void *v1;
v1 = (const void *)luaL_checklstring(L, 1, 0);
return doselection(L, 2, Spathconf, (Selector)Fpathconf, v1);
} | static int Ppathconf(lua_State *L) {
const char *path = luaL_checkstring(L, 1);
return doselection(L, 2, Spathconf, Fpathconf, path);
} | Ppathconf | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pputenv(lua_State *L) {
char *v1;
int v2;
size_t l;
const char *s;
char *e;
unsigned long v7;
v7 = __readfsqword(0x28u);
s = (const char *)luaL_checklstring(L, 1, &l);
e = (char *)malloc(++l);
if (e) {
v1 = (char *)memcpy(e, s, l);
v2 = putenv(v1);
} else {
v2 = -1;
}
return p... | static int Pputenv(lua_State *L) {
#if HAVE_PUTENV
size_t l;
const char *s = luaL_checklstring(L, 1, &l);
char *e = malloc(++l);
return pushresult(L, (e == NULL) ? -1 : putenv(memcpy(e, s, l)), s);
#else
return -1;
#endif
} | Pputenv | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Preadlink(lua_State *L) {
int n;
const char *path;
char buf[520];
unsigned long v5;
v5 = __readfsqword(0x28u);
path = (const char *)luaL_checklstring(L, 1, 0);
n = readlink(path, buf, 0x200u);
if (n == -1)
return pusherror_0(L, path);
lua_pushlstring(L, buf, n);
return 1;
} | static int Preadlink(lua_State *L) {
char buf[MYBUFSIZ];
const char *path = luaL_checkstring(L, 1);
int n = readlink(path, buf, sizeof(buf));
if (n == -1)
return pusherror(L, path);
lua_pushlstring(L, buf, n);
return 1;
} | Preadlink | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Prmdir(lua_State *L) {
int v1;
const char *path;
path = (const char *)luaL_checklstring(L, 1, 0);
v1 = rmdir(path);
return pushresult_0(L, v1, path);
} | static int Prmdir(lua_State *L) {
const char *path = luaL_checkstring(L, 1);
return pushresult(L, rmdir(path), path);
} | Prmdir | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Psetenv(lua_State *L) {
_BOOL4 v1;
int v2;
const char *name;
const char *value;
name = (const char *)luaL_checklstring(L, 1, 0);
value = (const char *)luaL_checklstring(L, 2, 0);
v1 = (int)lua_type(L, 3) <= 0 || (unsigned int)lua_toboolean(L, 3);
v2 = setenv(name, value, v1);
return pushresult_0(... | static int Psetenv(lua_State *L) {
const char *name = luaL_checkstring(L, 1);
const char *value = luaL_checkstring(L, 2);
int overwrite = lua_isnoneornil(L, 3) || lua_toboolean(L, 3);
return pushresult(L, setenv(name, value, overwrite), name);
} | Psetenv | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Psetgid(lua_State *L) {
gid_t v1;
int v2;
v1 = mygetgid(L, 1);
v2 = setgid(v1);
return pushresult_0(L, v2, 0);
} | static int Psetgid(lua_State *L) {
return pushresult(L, setgid(mygetgid(L, 1)), NULL);
} | Psetgid | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Psetuid(lua_State *L) {
uid_t v1;
int v2;
v1 = mygetuid(L, 1);
v2 = setuid(v1);
return pushresult_0(L, v2, 0);
} | static int Psetuid(lua_State *L) {
return pushresult(L, setuid(mygetuid(L, 1)), NULL);
} | Psetuid | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Psleep(lua_State *L) {
double v1;
unsigned int seconds;
seconds = luaL_checkinteger(L, 1);
v1 = (double)(int)sleep(seconds);
lua_pushnumber(L, v1);
return 1;
} | static int Psleep(lua_State *L) {
unsigned int seconds = luaL_checkinteger(L, 1);
lua_pushnumber(L, sleep(seconds));
return 1;
} | Psleep | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pstat(lua_State *L) {
const char *path;
mystat s;
unsigned long v4;
v4 = __readfsqword(0x28u);
path = (const char *)luaL_checklstring(L, 1, 0);
if (lstat(path, &s.s) == -1)
return pusherror_0(L, path);
s.type = filetype(s.s.st_mode);
modechopper(s.s.st_mode, s.mode);
return doselection(L, 2, ... | static int Pstat(lua_State *L) {
struct mystat s;
const char *path = luaL_checkstring(L, 1);
if (lstat(path, &s.s) == -1)
return pusherror(L, path);
s.type = filetype(s.s.st_mode);
modechopper(s.s.st_mode, s.mode);
return doselection(L, 2, Sstat, Fstat, &s);
} | Pstat | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Psymlink(lua_State *L) {
const char *v1;
int v2;
const char *oldpath;
oldpath = (const char *)luaL_checklstring(L, 1, 0);
v1 = (const char *)luaL_checklstring(L, 2, 0);
v2 = symlink(oldpath, v1);
return pushresult_0(L, v2, 0);
} | static int Psymlink(lua_State *L) {
const char *oldpath = luaL_checkstring(L, 1);
const char *newpath = luaL_checkstring(L, 2);
return pushresult(L, symlink(oldpath, newpath), NULL);
} | Psymlink | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Psysconf(lua_State *L) {
return doselection(L, 1, Ssysconf, (Selector)Fsysconf, 0);
} | static int Psysconf(lua_State *L) {
return doselection(L, 1, Ssysconf, Fsysconf, NULL);
} | Psysconf | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Ptimes(lua_State *L) {
mytimes t;
unsigned long v3;
v3 = __readfsqword(0x28u);
t.elapsed = times(&t.t);
return doselection(L, 1, Stimes, (Selector)Ftimes, &t);
} | static int Ptimes(lua_State *L) {
struct mytimes t;
t.elapsed = times(&t.t);
return doselection(L, 1, Stimes, Ftimes, &t);
} | Ptimes | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pttyname(lua_State *L) {
char *v1;
int fd;
fd = luaL_optinteger(L, 1, 0);
v1 = ttyname(fd);
lua_pushstring(L, v1);
return 1;
} | static int Pttyname(lua_State *L) {
int fd = luaL_optinteger(L, 1, 0);
lua_pushstring(L, ttyname(fd));
return 1;
} | Pttyname | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pumask(lua_State *L) {
__mode_t v1;
const char *v2;
mode_t mode;
char m[10];
unsigned long v6;
v6 = __readfsqword(0x28u);
v1 = umask(0);
LOWORD(mode) = v1;
umask(v1);
mode = ~(_WORD)mode & 0x1FF;
if ((unsigned int)lua_type(L, 1) != -1) {
v2 = (const char *)luaL_checklstring(L, 1, 0);
... | static int Pumask(lua_State *L) {
char m[10];
mode_t mode;
umask(mode = umask(0));
mode = (~mode) & 0777;
if (!lua_isnone(L, 1)) {
if (mode_munch(&mode, luaL_checkstring(L, 1))) {
lua_pushnil(L);
return 1;
}
mode &= 0777;
umask(~mode);
}
modechopper(mode, m);
lua_pushstring(L... | Pumask | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Puname(lua_State *L) {
size_t v2;
int v3;
size_t v4;
const char *s;
utsname u;
luaL_Buffer b;
unsigned long v8;
v8 = __readfsqword(0x28u);
if (uname(&u) == -1)
return pusherror_0(L, 0);
luaL_buffinit(L, &b);
for (s = (const char *)luaL_optlstring(L, 1, "%s %n %r %v %m", 0); *s; ++s) {
... | static int Puname(lua_State *L) {
struct utsname u;
luaL_Buffer b;
const char *s;
if (uname(&u) == -1)
return pusherror(L, NULL);
luaL_buffinit(L, &b);
for (s = luaL_optstring(L, 1, "%s %n %r %v %m"); *s; s++)
if (*s != '%')
luaL_addchar(&b, *s);
else
switch (*++s) {
case '%':
... | Puname | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Punlink(lua_State *L) {
int v1;
const char *path;
path = (const char *)luaL_checklstring(L, 1, 0);
v1 = unlink(path);
return pushresult_0(L, v1, path);
} | static int Punlink(lua_State *L) {
const char *path = luaL_checkstring(L, 1);
return pushresult(L, unlink(path), path);
} | Punlink | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Punsetenv(lua_State *L) {
const char *name;
name = (const char *)luaL_checklstring(L, 1, 0);
unsetenv(name);
return 0;
} | static int Punsetenv(lua_State *L) {
const char *name = luaL_checkstring(L, 1);
unsetenv(name);
return 0;
} | Punsetenv | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Putime(lua_State *L) {
int v1;
int currtime;
const char *path;
utimbuf times;
unsigned long v6;
v6 = __readfsqword(0x28u);
currtime = time(0);
path = (const char *)luaL_checklstring(L, 1, 0);
times.modtime = (unsigned int)(int)luaL_optnumber(L, 2, (double)currtime);
times.actime = (unsigned int... | static int Putime(lua_State *L) {
struct utimbuf times;
time_t currtime = time(NULL);
const char *path = luaL_checkstring(L, 1);
times.modtime = luaL_optnumber(L, 2, currtime);
times.actime = luaL_optnumber(L, 3, currtime);
return pushresult(L, utime(path, ×), path);
} | Putime | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int Pwait(lua_State *L) {
__pid_t v1;
pid_t pid;
pid = luaL_optinteger(L, 1, -1);
v1 = waitpid(pid, 0, 0);
return pushresult_0(L, v1, 0);
} | static int Pwait(lua_State *L) {
pid_t pid = luaL_optinteger(L, 1, -1);
return pushresult(L, waitpid(pid, NULL, 0), NULL);
} | Pwait | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int argiAdd(ARGI_t *argip, int ix, int val) {
int ixa;
ARGI_t argi;
ixa = ix;
if (!argip)
return -1;
if (!*argip)
*argip = (ARGI_t)rcalloc(1u, 0x10u);
argi = *argip;
if (ix < 0)
ixa = argi->nvals;
if (argi->nvals <= ixa) {
argi->vals = (ARGint_t)rrealloc(argi->vals, 4LL * (ixa + 1));
... | int argiAdd(ARGI_t *argip, int ix, int val) {
ARGI_t argi;
if (argip == NULL)
return -1;
if (*argip == NULL)
*argip = xcalloc(1, sizeof(**argip));
argi = *argip;
if (ix < 0)
ix = argi->nvals;
if (ix >= argi->nvals) {
argi->vals = xrealloc(argi->vals, (ix + 1) * sizeof(*argi->vals));
mem... | argiAdd | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int argiCount(ARGI_const_t argi) {
int nvals;
nvals = 0;
if (argi)
return argi->nvals;
return nvals;
} | int argiCount(ARGI_const_t argi) {
int nvals = 0;
if (argi)
nvals = argi->nvals;
return nvals;
} | argiCount | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
ARGint_t argiData(ARGI_const_t argi) {
int *vals;
vals = 0;
if (argi && argi->nvals)
return argi->vals;
return vals;
} | ARGint_t argiData(ARGI_const_t argi) {
ARGint_t vals = NULL;
if (argi && argi->nvals > 0)
vals = argi->vals;
return vals;
} | argiData | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
ARGI_t argiFree(ARGI_t argi) {
if (argi) {
argi->nvals = 0;
free(argi->vals);
free(argi);
}
return 0;
} | ARGI_t argiFree(ARGI_t argi) {
if (argi) {
argi->nvals = 0;
free(argi->vals);
free(argi);
}
return NULL;
} | argiFree | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int argvAdd(ARGV_t *argvp, const char *val) {
size_t v2;
v2 = strlen(val);
return argvAddN(argvp, val, v2);
} | int argvAdd(ARGV_t *argvp, const char *val) {
return argvAddN(argvp, val, strlen(val));
} | argvAdd | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int argvAddN(ARGV_t *argvp, const char *val, size_t len) {
char **v4;
int argc;
ARGV_t argv;
if (!argvp)
return -1;
argc = argvCount(*argvp);
*argvp = (ARGV_t)rrealloc(*argvp, 8LL * (argc + 2));
argv = *argvp;
v4 = &(*argvp)[argc];
*v4 = rstrndup(val, len);
argv[argc + 1] = 0;
return 0;
} | int argvAddN(ARGV_t *argvp, const char *val, size_t len) {
ARGV_t argv;
int argc;
if (argvp == NULL)
return -1;
argc = argvCount(*argvp);
*argvp = xrealloc(*argvp, (argc + 1 + 1) * sizeof(**argvp));
argv = *argvp;
argv[argc] = rstrndup(val, len);
argv[argc + 1] = NULL;
return 0;
} | argvAddN | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int argvAddNum(ARGV_t *argvp, int val) {
int rc;
char *valstr[2];
valstr[1] = (char *)__readfsqword(0x28u);
valstr[0] = 0;
rasprintf(valstr, "%d", val);
rc = argvAdd(argvp, valstr[0]);
free(valstr[0]);
return rc;
} | int argvAddNum(ARGV_t *argvp, int val) {
char *valstr = NULL;
int rc;
rasprintf(&valstr, "%d", val);
rc = argvAdd(argvp, valstr);
free(valstr);
return rc;
} | argvAddNum | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int argvAppend(ARGV_t *argvp, ARGV_const_t av) {
int i;
int argc;
int ac;
ARGV_t argva;
char **argv;
argva = *argvp;
argc = argvCount(*argvp);
ac = argvCount(av);
argv = (char **)rrealloc(argva, 8LL * (argc + ac + 1));
for (i = 0; i < ac; ++i)
(&argv[argc])[i] = rstrdup(av[i]);
(&argv[argc])[... | int argvAppend(ARGV_t *argvp, ARGV_const_t av) {
ARGV_t argv = *argvp;
int argc = argvCount(argv);
int ac = argvCount(av);
int i;
argv = xrealloc(argv, (argc + ac + 1) * sizeof(*argv));
for (i = 0; i < ac; i++)
argv[argc + i] = xstrdup(av[i]);
argv[argc + ac] = NULL;
*argvp = argv;
return 0;
} | argvAppend | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int argvCmp(const void *a, const void *b) {
return strcmp(*(const char **)a, *(const char **)b);
} | int argvCmp(const void *a, const void *b) {
const char *astr = *(ARGV_t)a;
const char *bstr = *(ARGV_t)b;
return strcmp(astr, bstr);
} | argvCmp | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int argvCount(ARGV_const_t argv) {
int argc;
argc = 0;
if (argv) {
while (argv[argc])
++argc;
}
return argc;
} | int argvCount(ARGV_const_t argv) {
int argc = 0;
if (argv)
while (argv[argc] != NULL)
argc++;
return argc;
} | argvCount | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
ARGV_t argvData(ARGV_t argv) { return argv; } | ARGV_t argvData(ARGV_t argv) { return argv; } | argvData | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
ARGV_t argvFree(ARGV_t argv) {
ARGV_t av;
if (argv) {
for (av = argv; *av; ++av)
free(*av);
free(argv);
}
return 0;
} | ARGV_t argvFree(ARGV_t argv) {
if (argv) {
for (ARGV_t av = argv; *av; av++)
free(*av);
free(argv);
}
return NULL;
} | argvFree | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
char *argvJoin(ARGV_const_t argv, const char *sep) {
size_t v2;
int argc;
int i;
size_t argvlen;
char *dest;
ARGV_const_t arg;
char *p;
size_t seplen;
argc = 0;
argvlen = 0;
dest = 0;
if (argv) {
for (arg = argv; *arg; ++arg)
argvlen += strlen(*(const char **)arg);
argc = arg - ar... | char *argvJoin(ARGV_const_t argv, const char *sep) {
int argc = 0;
size_t argvlen = 0;
char *dest = NULL;
if (argv) {
ARGV_const_t arg;
for (arg = argv; *arg; arg++)
argvlen += strlen(*arg);
argc = arg - argv;
}
if (argc > 0) {
size_t seplen = (sep != NULL) ? strlen(sep) : 0;
cha... | argvJoin | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
ARGV_t argvNew() { return (ARGV_t)rcalloc(1u, 8u); } | ARGV_t argvNew(void) {
ARGV_t argv = xcalloc(1, sizeof(*argv));
return argv;
} | argvNew | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
void argvPrint(const char *msg, ARGV_const_t argv, FILE *fp) {
FILE *fpa;
ARGV_const_t av;
fpa = fp;
if (!fp)
fpa = stderr;
if (msg)
fprintf(fpa, "===================================== %s\n", msg);
if (argv) {
for (av = argv; *av; ++av)
fprintf(fpa, "%s\n", *(const char **)av);
}
} | void argvPrint(const char *msg, ARGV_const_t argv, FILE *fp) {
ARGV_const_t av;
if (fp == NULL)
fp = stderr;
if (msg)
fprintf(fp, "===================================== %s\n", msg);
if (argv)
for (av = argv; *av; av++)
fprintf(fp, "%s\n", *av);
} | argvPrint | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
ARGV_t argvSearch(ARGV_const_t argv, const char *val,
int (*compar)(const void *, const void *)) {
int v4;
int (*compara)(const void *, const void *);
const char *vala;
ARGV_const_t argva;
argva = argv;
vala = val;
compara = compar;
if (!argv)
return 0;
if (!compar)
compara ... | ARGV_t argvSearch(ARGV_const_t argv, const char *val,
int (*compar)(const void *, const void *)) {
if (argv == NULL)
return NULL;
if (compar == NULL)
compar = argvCmp;
return bsearch(&val, argv, argvCount(argv), sizeof(*argv), compar);
} | argvSearch | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int argvSort(ARGV_t argv, int (*compar)(const void *, const void *)) {
size_t v2;
int (*compara)(const void *, const void *);
compara = compar;
if (!compar)
compara = (int (*)(const void *, const void *))argvCmp;
if (argv) {
v2 = argvCount(argv);
qsort(argv, v2, 8u, compara);
}
return 0;
} | int argvSort(ARGV_t argv, int (*compar)(const void *, const void *)) {
if (compar == NULL)
compar = argvCmp;
if (argv)
qsort(argv, argvCount(argv), sizeof(*argv), compar);
return 0;
} | argvSort | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int argvSplit(ARGV_t *argvp, const char *str, const char *seps) {
if (argvp)
*argvp = argvSplitString(str, seps, 1u);
return 0;
} | int argvSplit(ARGV_t *argvp, const char *str, const char *seps) {
if (argvp) {
*argvp = argvSplitString(str, seps, ARGV_SKIPEMPTY);
}
return 0;
} | argvSplit | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
ARGV_t argvSplitString(const char *str, const char *seps, argvFlags flags) {
size_t v4;
char flagsa;
int argc;
int c;
int ca;
const char *s;
const char *sa;
char *t;
char *dest;
char **argv;
flagsa = flags;
if (!str || !seps)
return 0;
v4 = strlen(str);
dest = (char *)rmalloc(v4 + 1);
... | ARGV_t argvSplitString(const char *str, const char *seps, argvFlags flags) {
char *dest = NULL;
ARGV_t argv;
int argc = 1;
const char *s;
char *t;
int c;
if (str == NULL || seps == NULL)
return NULL;
dest = xmalloc(strlen(str) + 1);
for (argc = 1, s = str, t = dest; (c = *s); s++, t++) {
if ... | argvSplitString | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int aux_files(lua_State *L) {
DIR *d;
struct dirent *entry;
d = (DIR *)lua_touserdata(L, 4293966295LL);
if (!d)
return luaL_error(L, "attempt to use closed dir");
entry = readdir(d);
if (entry) {
lua_pushstring(L, entry->d_name);
} else {
closedir(d);
lua_pushnil(L);
lua_copy(L, 0xFFF... | static int aux_files(lua_State *L) {
DIR *d = lua_touserdata(L, lua_upvalueindex(1));
struct dirent *entry;
if (d == NULL)
return luaL_error(L, "attempt to use closed dir");
entry = readdir(d);
if (entry == NULL) {
closedir(d);
lua_pushnil(L);
lua_replace(L, lua_upvalueindex(1));
lua_pushn... | aux_files | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
void badoption(lua_State *L, int i, const char *what, int option) {
long v4;
v4 = lua_pushfstring(L, "unknown %s option `%c'", what, (unsigned int)option);
luaL_argerror(L, 2, v4);
} | static void badoption(lua_State *L, int i, const char *what, int option) {
luaL_argerror(L, 2,
lua_pushfstring(L, "unknown %s option `%c'", what, option));
} | badoption | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
size_t base64_decode_block(const char *code_in, const size_t length_in,
char *plaintext_out) {
unsigned char *v4;
unsigned char *v5;
char *v6;
unsigned char *v7;
char *v8;
unsigned char *v9;
char *v10;
int fragment;
int fragmenta;
int fragmentb;
int fragmentc;
const ch... | static size_t base64_decode_block(const char *code_in, const size_t length_in,
char *plaintext_out) {
const char *codechar = code_in;
char *plainchar = plaintext_out;
int fragment;
*plainchar = 0;
while (1) {
do {
if (codechar == code_in + length_in) {
ret... | base64_decode_block | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
int base64_decode_value(unsigned char value_in) {
if ((unsigned char)(value_in - 43) <= 0x4Fu)
return decoding_0[(unsigned char)(value_in - 43)];
else
return -1;
} | static int base64_decode_value(unsigned char value_in) {
static const int decoding[] = {
62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1,
-1, -1, -2, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
-1, -1, -1, -1... | base64_decode_value | rpm-4.17.0-r2 | app-arch | O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0 | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.