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
i64 seekto_fdhist(rzip_control *control, i64 pos) { if ((control->flags & 0x200000) == 0) return lseek(control->fd_hist, pos, 0); control->hist_ofs = pos - control->out_relofs; if (control->hist_ofs > control->out_len) control->out_len = control->hist_ofs; if (control->hist_ofs >= 0 && control->hist_ofs...
static i64 seekto_fdhist(rzip_control *control, i64 pos) { if (!TMP_OUTBUF) return lseek(control->fd_hist, pos, SEEK_SET); control->hist_ofs = pos - control->out_relofs; if (control->hist_ofs > control->out_len) control->out_len = control->hist_ofs; if (unlikely(control->hist_ofs < 0 || c...
seekto_fdhist
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
i64 seekto_fdin(rzip_control *control, i64 pos) { if ((control->flags & 0x400000) == 0) return lseek(control->fd_in, pos, 0); if (pos <= control->in_len && pos >= 0) { control->in_ofs = pos; return 0; } else { print_err_2(control, 0x76u, "runzip.c", "seekto_fdin", "Trying to seek o...
static i64 seekto_fdin(rzip_control *control, i64 pos) { if (!TMP_INBUF) return lseek(control->fd_in, pos, SEEK_SET); if (unlikely(pos > control->in_len || pos < 0)) { print_err("Trying to seek outside tmpinbuf to %lld in seekto_fdin\n", pos); return -1; } control->in_ofs = pos; return 0; }
seekto_fdin
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
i64 seekto_fdinend(rzip_control *control) { unsigned char *tmp_inbuf; i64 in_len; int tmpchar; if ((control->flags & 0x400000) == 0) return lseek(control->fd_in, 0, 2); while (1) { tmpchar = getchar(); if (tmpchar == -1) break; tmp_inbuf = control->tmp_inbuf; in_len = control->in_le...
static i64 seekto_fdinend(rzip_control *control) { int tmpchar; if (!TMP_INBUF) return lseek(control->fd_in, 0, SEEK_END); while ((tmpchar = getchar()) != EOF) { control->tmp_inbuf[control->in_len++] = (char)tmpchar; if (unlikely(control->in_len > control->in_maxlen)) failure_return(("Trying to...
seekto_fdinend
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void set_uint32(char *cp, uint32_t v) { *(_DWORD *)cp = v; }
static inline void set_uint32(char *cp, uint32_t v) { memcpy(cp, &v, sizeof v); }
set_uint32
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void setup_overhead(rzip_control *control) { long v1; int level; if ((control->flags & 0x3E0) != 0) { if ((control->flags & 0x200) != 0) control->overhead = 117440512; } else { level = 7 * control->compression_level / 9; if (!level) level = 1; if (level > 5) { if (level == 6) ...
void setup_overhead(rzip_control *control) { if (LZMA_COMPRESS) { int level = control->compression_level * 7 / 9; if (!level) level = 1; i64 dictsize = (level <= 5 ? (1 << (level * 2 + 14)) : (level == 6 ? (1 << 25) : (1 << 26))); control->overhead = (dictsize *...
setup_overhead
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void setup_ram(rzip_control *control) { if ((control->flags & 0x2000) != 0 && ((control->flags & 0x1000) != 0 && (control->flags & 0x10) != 0 || (control->flags & 0x10) == 0 && (control->flags & 4) == 0)) { control->maxram = control->ramsize / 6; } else { control->maxram = control->ramsize / 3;...
void setup_ram(rzip_control *control) { if (STDOUT && ((STDIN && DECOMPRESS) || !(DECOMPRESS || TEST_ONLY))) control->maxram = control->ramsize / 6; else control->maxram = control->ramsize / 3; if (BITS32) { control->usable_ram = MAX(control->ramsize - 900000000ll, 900000000ll); control->maxram ...
setup_ram
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void sha4(const unsigned char *input, int ilen, unsigned char *output, int is384) { sha4_context ctx; unsigned long v6; v6 = __readfsqword(0x28u); sha4_starts(&ctx, is384); sha4_update(&ctx, input, ilen); sha4_finish(&ctx, output); memset(&ctx, 0, sizeof(ctx)); }
void sha4(const unsigned char *input, int ilen, unsigned char output[64], int is384) { sha4_context ctx; sha4_starts(&ctx, is384); sha4_update(&ctx, input, ilen); sha4_finish(&ctx, output); memset(&ctx, 0, sizeof(sha4_context)); }
sha4
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void sha4_finish(sha4_context *ctx, unsigned char *output) { int v2; unsigned int last; unsigned long high; unsigned long low; unsigned char msglen[24]; unsigned long v7; v7 = __readfsqword(0x28u); high = *(__int128 *)ctx->total >> 61; low = 8 * ctx->total[0]; msglen[0] = HIBYTE(high); msglen[1] ...
void sha4_finish(sha4_context *ctx, unsigned char output[64]) { int last, padn; unsigned int64 high, low; unsigned char msglen[16]; high = (ctx->total[0] >> 61) | (ctx->total[1] << 3); low = (ctx->total[0] << 3); PUT_UINT64_BE(high, msglen, 0); PUT_UINT64_BE(low, msglen, 8); last = (int)(ctx->total[0...
sha4_finish
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void sha4_process(sha4_context *ctx, const unsigned char *data) { int i; int ia; int ib; unsigned long A; unsigned long Aa; unsigned long B; unsigned long Ba; unsigned long C; unsigned long Ca; unsigned long D; unsigned long Da; unsigned long E; unsigned long Ea; unsigned long F; unsigned ...
static void sha4_process(sha4_context *ctx, const unsigned char data[128]) { int i; unsigned int64 temp1, temp2, W[80]; unsigned int64 A, B, C, D, E, F, G, H; #define SHR(x, n) (x >> n) #define ROTR(x, n) (SHR(x, n) | (x << (64 - n))) #define S0(x) (ROTR(x, 1) ^ ROTR(x, 8) ^ SHR(x, 7)) #define S1(x) (ROTR(x, 19...
sha4_process
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void sha4_starts(sha4_context *ctx, int is384) { ctx->total[0] = 0; ctx->total[1] = 0; if (is384) { ctx->state[0] = 0xCBBB9D5DC1059ED8LL; ctx->state[1] = 0x629A292A367CD507LL; ctx->state[2] = 0x9159015A3070DD17LL; ctx->state[3] = 0x152FECD8F70E5939LL; ctx->state[4] = 0x67332667FFC00B31LL; ...
void sha4_starts(sha4_context *ctx, int is384) { ctx->total[0] = 0; ctx->total[1] = 0; if (is384 == 0) { ctx->state[0] = UL64(0x6A09E667F3BCC908); ctx->state[1] = UL64(0xBB67AE8584CAA73B); ctx->state[2] = UL64(0x3C6EF372FE94F82B); ctx->state[3] = UL64(0xA54FF53A5F1D36F1); ctx->state[4] = UL6...
sha4_starts
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void sha4_update(sha4_context *ctx, const unsigned char *input, int ilen) { int ilena; const unsigned char *inputa; int fill; unsigned long left; inputa = input; ilena = ilen; if (ilen > 0) { left = ctx->total[0] & 0x7F; fill = 128 - left; ctx->total[0] += ilen; if (ctx->total[0] < ilen) ...
void sha4_update(sha4_context *ctx, const unsigned char *input, int ilen) { int fill; unsigned int64 left; if (ilen <= 0) return; left = ctx->total[0] & 0x7F; fill = (int)(128 - left); ctx->total[0] += ilen; if (ctx->total[0] < (unsigned int64)ilen) ctx->total[1]++; if (left && ilen >= fill...
sha4_update
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void show_distrib(rzip_control *control, rzip_state *st) { i64 primary; i64 total; i64 i; hash_entry *he; primary = 0; total = 0; for (i = 0; i < (unsigned int)(1 << st->hash_bits); ++i) { he = &st->hash_table[i]; if (!empty_hash(he)) { ++total; if (i == primary_hash(st, he->t)) ...
static void show_distrib(rzip_control *control, struct rzip_state *st) { struct hash_entry *he; i64 primary = 0; i64 total = 0; i64 i; for (i = 0; i < (1U << st->hash_bits); i++) { he = &st->hash_table[i]; if (empty_hash(he)) continue; total++; if (primary_hash(st, he->t) == i) pr...
show_distrib
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
tag single_full_tag(rzip_control *control, rzip_state *st, i64 p) { int i; tag ret; ret = 0; for (i = 0; i <= 30; ++i) ret ^= st->hash_index[control->sb.buf_low[i + p]]; return ret; }
static tag single_full_tag(rzip_control *control, struct rzip_state *st, i64 p) { tag ret = 0; int i; uchar u; for (i = 0; i < MINIMUM_MATCH; i++) { u = control->sb.buf_low[p + i]; ret ^= st->hash_index[u]; } return ret; }
single_full_tag
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
i64 single_match_len(rzip_control *control, rzip_state *st, i64 p0, i64 op, i64 end, i64 *rev) { i64 last_match; i64 opa; i64 opb; i64 p; i64 pa; i64 len; long lena; opa = op; if (op >= p0) return 0; for (p = p0; p < end && control->sb.buf_low[p] == control->sb.buf_low[opa]...
static i64 single_match_len(rzip_control *control, struct rzip_state *st, i64 p0, i64 op, i64 end, i64 *rev) { i64 p, len; if (op >= p0) return 0; p = p0; while (p < end && control->sb.buf_low[p] == control->sb.buf_low[op]) { p++; op++; } len = p - p0; p = p0; o...
single_match_len
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void single_mcpy(rzip_control *control, unsigned char *buf, i64 offset, i64 len) { memcpy(buf, &control->sb.buf_low[offset], len); }
static void single_mcpy(rzip_control *control, unsigned char *buf, i64 offset, i64 len) { memcpy(buf, control->sb.buf_low + offset, len); }
single_mcpy
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void single_next_tag(rzip_control *control, rzip_state *st, i64 p, tag *t) { *t ^= st->hash_index[control->sb.buf_low[p - 1]]; *t ^= st->hash_index[control->sb.buf_low[p + 30]]; }
static void single_next_tag(rzip_control *control, struct rzip_state *st, i64 p, tag *t) { uchar u; u = control->sb.buf_low[p - 1]; *t ^= st->hash_index[u]; u = control->sb.buf_low[p + MINIMUM_MATCH - 1]; *t ^= st->hash_index[u]; }
single_next_tag
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
tag sliding_full_tag(rzip_control *control, rzip_state *st, i64 p) { int i; tag ret; ret = 0; for (i = 0; i <= 30; ++i) ret ^= st->hash_index[*sliding_get_sb(control, p + i)]; return ret; }
static tag sliding_full_tag(rzip_control *control, struct rzip_state *st, i64 p) { tag ret = 0; int i; uchar *u; for (i = 0; i < MINIMUM_MATCH; i++) { u = sliding_get_sb(control, p + i); ret ^= st->hash_index[*u]; } return ret; }
sliding_full_tag
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
unsigned char *sliding_get_sb(rzip_control *control, i64 p) { i64 sbo; i64 sboa; sbo = control->sb.offset_low; if (p >= sbo && p < control->sb.size_low + sbo) return &control->sb.buf_low[p - sbo]; sboa = control->sb.offset_high; if (p >= sboa && p < control->sb.size_high + sboa) return &control->sb...
static uchar *sliding_get_sb(rzip_control *control, i64 p) { struct sliding_buffer *sb = &control->sb; i64 sbo; sbo = sb->offset_low; if (p >= sbo && p < sbo + sb->size_low) return (sb->buf_low + p - sbo); sbo = sb->offset_high; if (p >= sbo && p < (sbo + sb->size_high)) return (sb->buf_high + (p -...
sliding_get_sb
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
i64 sliding_get_sb_range(rzip_control *control, i64 p) { i64 sbo; i64 sboa; i64 sbs; i64 sbsa; sbo = control->sb.offset_low; sbs = control->sb.size_low; if (p >= sbo && p < sbo + sbs) return sbs - (p - sbo); sboa = control->sb.offset_high; sbsa = control->sb.size_high; if (p >= sboa && p < sboa...
static inline i64 sliding_get_sb_range(rzip_control *control, i64 p) { struct sliding_buffer *sb = &control->sb; i64 sbo, sbs; sbo = sb->offset_low; sbs = sb->size_low; if (p >= sbo && p < sbo + sbs) return (sbs - (p - sbo)); sbo = sb->offset_high; sbs = sb->size_high; if (likely(p >= sbo && p < (s...
sliding_get_sb_range
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
i64 sliding_match_len(rzip_control *control, rzip_state *st, i64 p0, i64 op, i64 end, i64 *rev) { unsigned char v7; i64 last_match; unsigned char v9; i64 endb; i64 opa; i64 opb; i64 p; i64 pa; i64 len; long lena; opa = op; if (op >= p0) return 0; for (p = p0; p < end...
static i64 sliding_match_len(rzip_control *control, struct rzip_state *st, i64 p0, i64 op, i64 end, i64 *rev) { i64 p, len; if (op >= p0) return 0; p = p0; while (p < end && *sliding_get_sb(control, p) == *sliding_get_sb(control, op)) { p++; op++; } len = ...
sliding_match_len
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void sliding_mcpy(rzip_control *control, unsigned char *buf, i64 offset, i64 len) { i64 sb_range; i64 n; unsigned char *srcbuf; i64 m; for (n = 0; n < len; n += m) { srcbuf = sliding_get_sb(control, n + offset); if (sliding_get_sb_range(control, n + offset) >= len - n) sb_rang...
static void sliding_mcpy(rzip_control *control, unsigned char *buf, i64 offset, i64 len) { i64 n = 0; while (n < len) { uchar *srcbuf = sliding_get_sb(control, offset + n); i64 m = MIN(sliding_get_sb_range(control, offset + n), len - n); memcpy(buf + n, srcbuf, m); n += m;...
sliding_mcpy
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void sliding_next_tag(rzip_control *control, rzip_state *st, i64 p, tag *t) { *t ^= st->hash_index[*sliding_get_sb(control, p - 1)]; *t ^= st->hash_index[*sliding_get_sb(control, p + 30)]; }
static void sliding_next_tag(rzip_control *control, struct rzip_state *st, i64 p, tag *t) { uchar *u; u = sliding_get_sb(control, p - 1); *t ^= st->hash_index[*u]; u = sliding_get_sb(control, p + MINIMUM_MATCH - 1); *t ^= st->hash_index[*u]; }
sliding_next_tag
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void *ucompthread(void *data) { void *result; int waited; int ret; int i; rzip_control *control; uncomp_thread *uci; control = (rzip_control *)*((_QWORD *)data + 1); waited = 0; ret = 0; i = *(_DWORD *)data; uci = (uncomp_thread *)(*(_QWORD *)(*((_QWORD *)data + 2) + 64LL) + ...
static void *ucompthread(void *data) { stream_thread_struct *sts = data; rzip_control *control = sts->control; int waited = 0, ret = 0, i = sts->i; struct uncomp_thread *uci = &sts->sinfo->ucthreads[i]; dealloc(data); if (unlikely(setpriority(PRIO_PROCESS, 0, control->nice_val) == -1)) { print_err("Wa...
ucompthread
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void unlink_files(rzip_control *control) { if (control->util_outfile && control->delete_outfile) unlink(control->util_outfile); if (control->util_infile) { if (control->delete_infile) unlink(control->util_infile); } }
void unlink_files(rzip_control *control) { if (control->util_outfile && control->delete_outfile) unlink(control->util_outfile); if (control->util_infile && control->delete_infile) unlink(control->util_infile); }
unlink_files
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
bool unlock_mutex(rzip_control *control, pthread_mutex_t *mutex) { if (!pthread_mutex_unlock(mutex)) return 1; fatal_3(control, 0x61u, "stream.c", "unlock_mutex", "Failed to pthread_mutex_unlock\n"); return 0; }
bool unlock_mutex(rzip_control *control, pthread_mutex_t *mutex) { if (unlikely(pthread_mutex_unlock(mutex))) fatal_return(("Failed to pthread_mutex_unlock\n"), false); return true; }
unlock_mutex
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
i64 unzip_literal(rzip_control *control, void *ss_0, i64 len, unsigned int *cksum) { unsigned char *buf; i64 stream_read; if (len >= 0) { buf = (unsigned char *)malloc(len); if (buf) { stream_read = read_stream(control, ss_0, 1, buf, len); if (stream_read == -1) { fr...
static i64 unzip_literal(rzip_control *control, void *ss, i64 len, uint32 *cksum) { i64 stream_read; uchar *buf; if (unlikely(len < 0)) failure_return(("len %lld is negative in unzip_literal!\n", len), -1); buf = (uchar *)malloc(len); if (unlikely(!buf)) fatal_return(("Faile...
unzip_literal
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
i64 unzip_match(rzip_control *control, void *ss_0, i64 len, unsigned int *cksum, int chunk_bytes) { signed long v6; i64 v7; i64 lena; i64 total; i64 cur_pos; i64 offset; i64 n; i64 na; unsigned char *buf; lena = len; if (len >= 0) { total = 0; cur_pos = seekcur_fdout(contr...
static i64 unzip_match(rzip_control *control, void *ss, i64 len, uint32 *cksum, int chunk_bytes) { i64 offset, n, total, cur_pos; uchar *buf; if (unlikely(len < 0)) failure_return(("len %lld is negative in unzip_match!\n", len), -1); total = 0; cur_pos = seekcur_fdout(control); ...
unzip_match
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
ssize_t write_1g(rzip_control *control, void *buf, i64 len) { ssize_t total; long ret; total = 0; while (len > 0) { ret = put_fdout(control, buf, len); if (ret <= 0) return ret; len -= ret; buf = (char *)buf + ret; total += ret; } return total; }
ssize_t write_1g(rzip_control *control, void *buf, i64 len) { uchar *offset_buf = buf; ssize_t ret; i64 total; total = 0; while (len > 0) { if (BITS32) ret = MIN(len, one_g); else ret = len; ret = put_fdout(control, offset_buf, (size_t)ret); if (unlikely(ret <= 0)) return re...
write_1g
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
int write_buf(rzip_control *control, unsigned char *p, i64 len) { int *v3; char *v4; ssize_t ret; ret = write_1g(control, p, len); if (ret == -1) { v3 = __errno_location(); v4 = strerror(*v3); print_err_3(control, 0x2EBu, "stream.c", "write_buf", "Write of length %lld failed - %s\...
static int write_buf(rzip_control *control, uchar *p, i64 len) { ssize_t ret; ret = write_1g(control, p, (size_t)len); if (unlikely(ret == -1)) { print_err("Write of length %lld failed - %s\n", len, strerror(errno)); return -1; } if (unlikely(ret != (ssize_t)len)) { print_err("Partial write!? ask...
write_buf
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
bool write_fdin(rzip_control *control) { unsigned char *offset_buf; signed long len; long ret; offset_buf = control->tmp_inbuf; len = control->in_len; while (len > 0) { ret = write(control->fd_in, offset_buf, len); if (ret <= 0) { fatal_0(control, 0x1B6u, "lrzip.c", "write_fdin", ...
bool write_fdin(rzip_control *control) { uchar *offset_buf = control->tmp_inbuf; i64 len = control->in_len; ssize_t ret; while (len > 0) { if (BITS32) ret = MIN(len, one_g); else ret = len; ret = write(control->fd_in, offset_buf, (size_t)ret); if (unlikely(ret <= 0)) fatal_ret...
write_fdin
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
bool write_fdout(rzip_control *control, void *buf, i64 len) { long ret; while (len > 0) { ret = write(control->fd_out, buf, len); if (ret <= 0) { fatal_0(control, 0x16Au, "lrzip.c", "write_fdout", "Failed to write to fd_out in write_fdout\n"); return 0; } len -= ret; b...
bool write_fdout(rzip_control *control, void *buf, i64 len) { uchar *offset_buf = buf; ssize_t ret; while (len > 0) { if (BITS32) ret = MIN(len, one_g); else ret = len; ret = write(control->fd_out, offset_buf, (size_t)ret); if (unlikely(ret <= 0)) fatal_return(("Failed to write ...
write_fdout
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
bool write_magic(rzip_control *control) { int i; char magic[24]; unsigned long v4; v4 = __readfsqword(0x28u); *(_QWORD *)magic = 0x600495A524CLL; *(_QWORD *)&magic[8] = 0; *(_QWORD *)&magic[16] = 0; if ((control->flags & 0x800000) != 0) { *(_QWORD *)&magic[6] = *(_QWORD *)control->salt; } else if...
bool write_magic(rzip_control *control) { char magic[MAGIC_LEN] = { 'L', 'R', 'Z', 'I', LRZIP_MAJOR_VERSION, LRZIP_MINOR_VERSION}; if (ENCRYPT) memcpy(&magic[6], &control->salt, 8); else if (!STDIN || !STDOUT || control->eof) { i64 esize = htole64(control->st_size); memcpy(&magic[6], &esize, 8...
write_magic
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void write_sbstream(rzip_control *control, void *ss_0, int stream, i64 p, i64 len) { i64 v5; i64 n; while (len) { v5 = *((_QWORD *)ss_0 + 2) - *(_QWORD *)(*(_QWORD *)ss_0 + 80LL * stream + 16); if (len <= v5) v5 = len; n = v5; control->do_mcpy( control, ...
static inline void write_sbstream(rzip_control *control, void *ss, int stream, i64 p, i64 len) { struct stream_info *sinfo = ss; while (len) { i64 n = MIN(sinfo->bufsize - sinfo->s[stream].buflen, len); control->do_mcpy(control, sinfo->s[stream].buf + sinfo->s[stream].buf...
write_sbstream
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void write_stream(rzip_control *control, void *ss_0, int streamno, unsigned char *p, i64 len) { signed long v5; i64 n; while (len) { v5 = *((_QWORD *)ss_0 + 2) - *(_QWORD *)(*(_QWORD *)ss_0 + 80LL * streamno + 16); if (len <= v5) v5 = len; n = v5; memcpy((void *)(...
void write_stream(rzip_control *control, void *ss, int streamno, uchar *p, i64 len) { struct stream_info *sinfo = ss; while (len) { i64 n; n = MIN(sinfo->bufsize - sinfo->s[streamno].buflen, len); memcpy(sinfo->s[streamno].buf + sinfo->s[streamno].buflen, p, n); sinfo->s[streamn...
write_stream
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
int write_u8(rzip_control *control, unsigned char v) { unsigned char va[4]; rzip_control *controla; controla = control; va[0] = v; return write_buf(control, va, 1); }
static inline int write_u8(rzip_control *control, uchar v) { return write_buf(control, &v, 1); }
write_u8
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
int write_val(rzip_control *control, i64 v, int len) { i64 va; va = _uint64_identity_2(v); return write_buf(control, (unsigned char *)&va, len); }
static inline int write_val(rzip_control *control, i64 v, int len) { v = htole64(v); return write_buf(control, (uchar *)&v, len); }
write_val
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void xor128(void *pa, const void *pb) { *(_QWORD *)pa ^= *(_QWORD *)pb; *((_QWORD *)pa + 1) ^= *((_QWORD *)pb + 1); }
static void xor128(void *pa, const void *pb) { i64 *a = pa; const i64 *b = pb; a[0] ^= b[0]; a[1] ^= b[1]; }
xor128
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
int zpaq_compress_buf(rzip_control *control, compress_thread *cthread, long thread) { i64 c_len; i64 c_size; unsigned char *c_buf; unsigned long v8; v8 = __readfsqword(0x28u); if (!lz4_compresses(control, cthread->s_buf, cthread->s_len)) return 0; c_size = round_up_page(control,...
static int zpaq_compress_buf(rzip_control *control, struct compress_thread *cthread, long thread) { i64 c_len, c_size; uchar *c_buf; if (!lz4_compresses(control, cthread->s_buf, cthread->s_len)) return 0; c_size = round_up_page(control, cthread->s_len + 10000); c_buf = mallo...
zpaq_compress_buf
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
int zpaq_decompress_buf(rzip_control *control, uncomp_thread *ucthread, long thread) { size_t v3; int ret; i64 dlen; unsigned char *c_buf; unsigned long v9; v9 = __readfsqword(0x28u); dlen = ucthread->u_len; ret = 0; c_buf = ucthread->s_buf; v3 = round_up_page(control, dlen)...
static int zpaq_decompress_buf(rzip_control *control __UNUSED__, struct uncomp_thread *ucthread, long thread) { i64 dlen = ucthread->u_len; uchar *c_buf; int ret = 0; c_buf = ucthread->s_buf; ucthread->s_buf = malloc(round_up_page(control, dlen)); if (unlikely(!ucthread->s_bu...
zpaq_decompress_buf
lrzip-0.651
app-arch
O0/app-arch/lrzip-0.651/lrzip
ida
O0
void delayed_exit(int exit_code) { if (exit_code) puts("HHCTC000I Abnormal termination"); usleep(0x186A0u); exit(exit_code); }
void delayed_exit(int exit_code) { if (RC_SUCCESS != exit_code) printf(_("HHCTC000I Abnormal termination\n")); usleep(100000); exit(exit_code); }
delayed_exit
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/tapecopy
ida
O0
int obtain_status(char *devname, int devfd, mtget *mtget) { int v5; long v6; int v7; int *v8; int v9; int *v10; char *v11; v5 = ioctl(devfd, 0x80306D02); if (v5 < 0) { v7 = v5; v8 = __errno_location(); v9 = *v8; v10 = v8; if (*v8 != 5 || (LODWORD(v6) = 1, (mtget->mt_gstat & 0x2800...
static int obtain_status(char *devname, int devfd, struct mtget *mtget) { int rc; rc = ioctl_tape(devfd, MTIOCGET, (char *)mtget); if (rc < 0) { if (1 && EIO == errno && (0 || GMT_EOD(mtget->mt_gstat) || GMT_EOT(mtget->mt_gstat))) return +1; printf(_("HHCTC016E Error reading status of %s: ...
obtain_status
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/tapecopy
ida
O0
void print_usage() { __printf_chk( 1, "\n" "Copies a SCSI tape to or from an AWSTAPE disk file.\n" "\n" "Tapecopy reads a SCSI tape and outputs an AWSTAPE file representation\n" "of the tape, or else reads an AWSTAPE file and creates an identical " "copy\n" "of its cont...
static void print_usage(void) { printf( _("\n" "Copies a SCSI tape to or from an AWSTAPE disk file.\n\n" "Tapecopy reads a SCSI tape and outputs an AWSTAPE file " "representation\n" "of the tape, or else reads an AWSTAPE file and creates an identical " "copy\n" ...
print_usage
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/tapecopy
ida
O0
int read_aws_disk(int diskfd, void *buf, size_t bufsize) { unsigned int v3; int i; char v6; int v7; int v8; int v9; int *v11; char *v12; int *v13; char *v14; int v15; AWSTAPE_BLKHDR awshdr; unsigned long v18; v3 = 0; v18 = __readfsqword(0x28u); for (i = read(diskfd, &awshdr, 6u);; i = r...
int read_aws_disk(int diskfd, void *buf, size_t bufsize) { AWSTAPE_BLKHDR awshdr; int rc; unsigned int count_read = 0; unsigned int blksize; int end_block; BYTE *bufptr = buf; while (1) { rc = read(diskfd, &awshdr, sizeof(AWSTAPE_BLKHDR)); if (rc == 0) { printf(_("HHCTC018I End of AWSTAPE ...
read_aws_disk
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/tapecopy
ida
O0
int read_scsi_tape(int devfd, void *buf, size_t bufsize, mtget *mtget) { int *v6; int v7; int *v8; char *v9; len = read(devfd, buf, bufsize); if (len >= 0) return len; v6 = __errno_location(); v7 = *v6; v8 = v6; if (obtain_status(devnamein, devfd, mtget) != 1) { v9 = strerror(*v8); __pr...
int read_scsi_tape(int devfd, void *buf, size_t bufsize, struct mtget *mtget) { int rc; int save_errno; len = read_tape(devfd, buf, bufsize); if (len < 0) { save_errno = errno; ASSERT(devnamein); rc = obtain_status(devnamein, devfd, mtget); if (rc == +1) { printf(_("HHCTC011I End of tape...
read_scsi_tape
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/tapecopy
ida
O0
int write_aws_disk(int diskfd, void *buf, size_t len) { int v4; int result; int v6; int *v7; char *v8; int *v9; char *v10; int v11; AWSTAPE_BLKHDR awshdr; unsigned long v13; v13 = __readfsqword(0x28u); *(_WORD *)awshdr.curblkl = len; *(_WORD *)awshdr.prvblkl = prevlen; *(_WORD *)&awshdr.fla...
int write_aws_disk(int diskfd, void *buf, size_t len) { AWSTAPE_BLKHDR awshdr; int rc; awshdr.curblkl[0] = len & 0xFF; awshdr.curblkl[1] = (len >> 8) & 0xFF; awshdr.prvblkl[0] = prevlen & 0xFF; awshdr.prvblkl[1] = (prevlen >> 8) & 0xFF; awshdr.flags1 = 0 | AWSTAPE_FLAG1_NEWREC | AWSTAPE_FLAG1_ENDREC; a...
write_aws_disk
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/tapecopy
ida
O0
int write_scsi_tape(int devfd, void *buf, size_t len) { int v3; int result; int v5; int *v6; char *v7; v3 = len; result = write(devfd, buf, len); v5 = result; if (result < v3) { v6 = __errno_location(); v7 = strerror(*v6); __printf_chk( 1, "HHCTC022E Error writing data block to %s...
int write_scsi_tape(int devfd, void *buf, size_t len) { int rc; rc = write_tape(devfd, buf, len); if (rc < (int)len) { printf(_("HHCTC022E Error writing data block to %s: rc=%d, errno=%d: %s\n"), devnameout, rc, errno, strerror(errno)); EXIT(RC_ERROR_WRITING_DATA); } bytes_written += rc; ...
write_scsi_tape
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/tapecopy
ida
O0
int write_tapemark_aws_disk(int diskfd) { int result; int v2; int *v3; char *v4; AWSTAPE_BLKHDR awshdr; unsigned long v6; v6 = __readfsqword(0x28u); *(_WORD *)&awshdr.flags1 = 64; *(_WORD *)awshdr.curblkl = 0; *(_WORD *)awshdr.prvblkl = prevlen; result = write(diskfd, &awshdr, 6u); v2 = result;...
int write_tapemark_aws_disk(int diskfd) { AWSTAPE_BLKHDR awshdr; int rc; awshdr.curblkl[0] = 0; awshdr.curblkl[1] = 0; awshdr.prvblkl[0] = prevlen & 0xFF; awshdr.prvblkl[1] = (prevlen >> 8) & 0xFF; awshdr.flags1 = AWSTAPE_FLAG1_TAPEMARK; awshdr.flags2 = 0; rc = write(diskfd, &awshdr, sizeof(AWSTAPE_...
write_tapemark_aws_disk
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/tapecopy
ida
O0
int write_tapemark_scsi_tape(int devfd) { int v1; int *v3; char *v4; mtop opblk; unsigned long v6; v6 = __readfsqword(0x28u); opblk.mt_op = 5; opblk.mt_count = 1; v1 = ioctl(devfd, 0x40086D01u, &opblk); if (v1 < 0) { v3 = __errno_location(); v4 = strerror(*v3); __printf_chk( 1, ...
int write_tapemark_scsi_tape(int devfd) { struct mtop opblk; int rc; opblk.mt_op = MTWEOF; opblk.mt_count = 1; rc = ioctl_tape(devfd, MTIOCTOP, (char *)&opblk); if (rc < 0) { printf(_("HHCTC023E Error writing tapemark on %s: rc=%d, errno=%d: %s\n"), devnameout, rc, errno, strerror(errno)); ...
write_tapemark_scsi_tape
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/tapecopy
ida
O0
void commadpt_clean_device(DEVBLK *dev) { COMMADPT *commadpt; commadpt = dev->commadpt; if (commadpt) { free(commadpt); dev->commadpt = 0; if ((*((_BYTE *)dev + 5373) & 0x20) != 0) logmsg("HHCCA300D %4.4X:clean : Control block freed\n", dev->devnum); } else if ((*((_BYTE *)dev + 5373) & 0x20)...
static void commadpt_clean_device(DEVBLK *dev) { if (dev->commadpt != NULL) { free(dev->commadpt); dev->commadpt = NULL; if (dev->ccwtrace) { logmsg(_("HHCCA300D %4.4X:clean : Control block freed\n"), dev->devnum); } } else { if (dev->ccwtrace) { logmsg(_("HHCCA300D %4.4X:clean : Con...
commadpt_clean_device
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
int commadpt_close_device(DEVBLK *dev) { BYTE v2; BYTE v3; U16 v4; BYTE v5; COMMADPT *commadpt; BYTE *poolarea; if ((*((_BYTE *)dev + 5373) & 0x20) != 0) logmsg("HHCCA300D %4.4X:Closing down\n", dev->devnum); ptt_pthread_mutex_lock(&dev->commadpt->lock, "comm3705.c:1594"); commadpt = dev->commadp...
static int commadpt_close_device(DEVBLK *dev) { if (dev->ccwtrace) { logmsg(_("HHCCA300D %4.4X:Closing down\n"), dev->devnum); } obtain_lock(&dev->commadpt->lock); if (dev->busy) { commadpt_halt(dev); } free_bufpool(dev->commadpt); release_lock(&dev->commadpt->lock); commadpt_clean_device(d...
commadpt_close_device
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
void commadpt_execute_ccw(DEVBLK *dev, BYTE code, BYTE flags, BYTE chained, U16 count, BYTE prevcode, int ccwseq, BYTE *iobuf, BYTE *more, BYTE *unitstat, U16 *residual) { void **v13; size_t v14; U16 v15; short v16; char v17; COMMADPT *commadpt; short v1...
static void commadpt_execute_ccw(DEVBLK *dev, BYTE code, BYTE flags, BYTE chained, U16 count, BYTE prevcode, int ccwseq, BYTE *iobuf, BYTE *more, BYTE *unitstat, U16 *residual) { U32 num; BYTE *piudata; int piusize;...
commadpt_execute_ccw
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
int commadpt_init_handler(DEVBLK *dev, int argc, char **argv) { COMMADPT *commadpt; COMMADPT *v5; int v6; char **v7; int v8; int unitsz; size_t v10; BYTE *v11; BYTE *v12; int v13; void **p_freeq; void **v15; COMMADPT *v16; COMMADPT *v17; COMMADPT *v18; BYTE v19; BYTE v20; U16 v21; ...
static int commadpt_init_handler(DEVBLK *dev, int argc, char *argv[]) { char thread_name[32]; char thread_name2[32]; int i; int rc; int pc; int errcnt; struct in_addr in_temp; union { int num; char text[80]; } res; dev->devtype = 0x3705; if (dev->ccwtrace) { logmsg(_("HHCCA300D %4.4X:I...
commadpt_init_handler
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
void commadpt_query_device(DEVBLK *dev, char **a2, int buflen, char *buffer) { if (a2) { *a2 = "LINE"; if (dev) { if (buflen) { if (buffer) __snprintf_chk(buffer, buflen, 1, -1, "Read count=%d, Write count=%d", dev->commadpt->read_ccw_count, ...
static void commadpt_query_device(DEVBLK *dev, char **class, int buflen, char *buffer) { BEGIN_DEVICE_CLASS_QUERY("LINE", dev, class, buflen, buffer); snprintf(buffer, buflen, "Read count=%d, Write count=%d", dev->commadpt->read_ccw_count, dev->commadpt->write_ccw_count...
commadpt_query_device
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
void *commadpt_thread(void *vca) { DEVBLK *v2; pthread_t v3; long v4; BYTE v5; U16 v6; BYTE v7; int v8; signed int v9; int v10; long v11; int v12; v2 = (DEVBLK *)((char *)vca + 136); ptt_pthread_mutex_lock((char *)vca + 136, "comm3705.c:1310"); v3 = pthread_self(); logmsg("HHCCA002I %4.4X...
static void *commadpt_thread(void *vca) { COMMADPT *ca; int devnum; int delay; int rc; int ca_shutdown; int init_signaled; ca = (COMMADPT *)vca; obtain_lock(&ca->lock); devnum = ca->devnum; ca_shutdown = 0; init_signaled = 0; logmsg(_("HHCCA002I %4.4X:3705 Communication thread " TIDPAT " s...
commadpt_thread
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
void connect_message(int sfd, int na, int flag) { char *v4; unsigned short v5; size_t v6; socklen_t namelen; sockaddr_in client; char msgtext[264]; unsigned long v10; v10 = __readfsqword(0x28u); namelen = 16; getpeername(sfd, (struct sockaddr *)&client, &namelen); v4 = inet_ntoa(client.sin_addr);...
static void connect_message(int sfd, int na, int flag) { int rc; struct sockaddr_in client; socklen_t namelen; char *ipaddr; char msgtext[256]; if (!sfd) return; namelen = sizeof(client); rc = getpeername(sfd, (struct sockaddr *)&client, &namelen); ipaddr = inet_ntoa(client.sin_addr); if (flag =...
connect_message
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
int expect(int csock, BYTE *expected, int len, char *caption) { int result; BYTE buf[512]; unsigned long v7; v7 = __readfsqword(0x28u); if (recv_packet(csock, buf, len, 0) < 0) return -1; result = memcmp(buf, expected, len); if (!result) return result; if (len != 6 || *(_DWORD *)expected != wil...
static int expect(int csock, BYTE *expected, int len, char *caption) { int rc; BYTE buf[512]; #if 1 static BYTE do_bin[] = {IAC, DO, BINARY, IAC, WILL, BINARY}; static BYTE will_bin[] = {IAC, WILL, BINARY, IAC, DO, BINARY}; #endif UNREFERENCED(caption); rc = recv_packet(csock, buf, len, 0); if (rc < 0)...
expect
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
void format_sna(BYTE *requestp, char *tag, int devnum) { BYTE v5; char *v6; short v7; char v8; int len; char fmtbuf[32]; char fmtbuf2[32]; char fmtbuf3[32]; char fmtbuf4[32]; char fmtbuf6[32]; char fmtbuf5[264]; unsigned long v16; v16 = __readfsqword(0x28u); __sprintf_chk(fmtbuf, 1, 32, "%0...
static void format_sna(BYTE *requestp, char *tag, int devnum) { char fmtbuf[32]; char fmtbuf2[32]; char fmtbuf3[32]; char fmtbuf4[32]; char fmtbuf5[256]; char fmtbuf6[32]; char *ru_type = ""; int len; sprintf(fmtbuf, "%02X%02X %02X%02X %02X%02X %02X%02X %02X%02X", requestp[0], requestp[1], r...
format_sna
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
sockaddr_in *get_inet_socket(char *host_serv) { char *v1; char *v2; char *v3; sockaddr_in *v4; sockaddr_in *v5; struct servent *v6; struct hostent *v8; sockaddr_in *v9; sockaddr_in *v10; v1 = host_serv; v2 = strchr(host_serv, 58); if (!v2) { v9 = (sockaddr_in *)malloc(0x10u); v5 = v9; ...
struct sockaddr_in *get_inet_socket(char *host_serv) { char *host = NULL; char *serv; struct sockaddr_in *sin; if ((serv = strchr(host_serv, ':'))) { *serv++ = '\0'; if (*host_serv) host = host_serv; } else serv = host_serv; if (!(sin = malloc(sizeof(struct sockaddr_in)))) return sin...
get_inet_socket
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
void logdump(char *txt, DEVBLK *dev, BYTE *bfr, size_t sz) { long i; long v7; long v8; logmsg("HHCCA300D %4.4X:%s\n", dev->devnum, txt); logmsg("HHCCA300D %4.4X:%s : Dump of %d (%x) byte(s)\n", dev->devnum, txt, sz, sz); if (sz) { for (i = 0;; ++i) { if ((i & 0xF) == 0) { if (i) ...
static void logdump(char *txt, DEVBLK *dev, BYTE *bfr, size_t sz) { size_t i; if (!dev->ccwtrace) { return; } logmsg(_("HHCCA300D %4.4X:%s\n"), dev->devnum, txt); logmsg(_("HHCCA300D %4.4X:%s : Dump of %d (%x) byte(s)\n"), dev->devnum, txt, sz, sz); for (i = 0; i < sz; i++) { if (i % 16 == ...
logdump
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
void make_seq(COMMADPT *ca, BYTE *reqptr) { short v2; int v3; int v4; v2 = reqptr[4]; if (v2 == HIBYTE(ca->locsuba)) { v4 = ca->ncpa_sscp_seqn + 1; ca->ncpa_sscp_seqn = v4; reqptr[6] = BYTE1(v4); reqptr[7] = ca->ncpa_sscp_seqn; } else if (v2 == HIBYTE(ca->rmtsuba)) { v3 = ca->ncpb_sscp_...
void make_seq(COMMADPT *ca, BYTE *reqptr) { if (reqptr[4] == (ca->locsuba >> 8)) { reqptr[6] = (unsigned char)(++ca->ncpa_sscp_seqn >> 8) & 0xff; reqptr[7] = (unsigned char)(ca->ncpa_sscp_seqn) & 0xff; } else if (reqptr[4] == (ca->rmtsuba >> 8)) { reqptr[6] = (unsigned char)(++ca->ncpb_sscp_seqn >> 8) &...
make_seq
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
void make_sna_requests(BYTE *requestp, COMMADPT *ca) { char *freeq; BYTE v3; void **p_sendq; BYTE v5; BYTE v6; void **v7; if (*(_WORD *)(requestp + 13) == *(_WORD *)R010201 && requestp[15] == R010201[2]) { freeq = (char *)ca->freeq; if (freeq) { ca->freeq = *(void **)freeq; *((_...
void make_sna_requests(BYTE *requestp, COMMADPT *ca) { BYTE *respbuf; BYTE *ru_ptr; int ru_size; void *eleptr; if (memcmp(&requestp[13], R010201, 3)) return; eleptr = get_bufpool(&ca->freeq); if (!eleptr) { logmsg("no buffers trying to send SNA request\n"); return; } respbuf = SIZEOF_INT_P...
make_sna_requests
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
void make_sna_requests2(COMMADPT *ca) { int v1; char *freeq; int v3; int lu_lu_seqn; int inpbufl; int v6; BYTE v7; BYTE sscp_addr1; long v9; int v10; bool v11; void **p_sendq; void **v13; int v14; if (ca->inpbufl > 0) { v1 = 0; while (1) { freeq = (char *)ca->freeq; if...
static void make_sna_requests2(COMMADPT *ca) { BYTE *respbuf; BYTE *ru_ptr; int ru_size; void *eleptr; int bufp = 0; while (ca->inpbufl > 0) { eleptr = get_bufpool(&ca->freeq); if (!eleptr) { logmsg("no buffers trying to send SNA request2\n"); return; } respbuf = SIZEOF_INT_P + (...
make_sna_requests2
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
void make_sna_requests3(COMMADPT *ca) { char *freeq; BYTE lu_addr1; void **p_sendq; void **v4; freeq = (char *)ca->freeq; if (freeq) { ca->freeq = *(void **)freeq; *((_WORD *)freeq + 4) = 29; freeq[10] = ca->tso_addr0; freeq[11] = ca->tso_addr1; freeq[12] = ca->lu_addr0; lu_addr1 = ...
static void make_sna_requests3(COMMADPT *ca) { BYTE *respbuf; BYTE *ru_ptr; int ru_size; void *eleptr; if (!ca->telnet_int) return; eleptr = get_bufpool(&ca->freeq); if (!eleptr) { logmsg("no buffers trying to send SNA request3\n"); return; } respbuf = SIZEOF_INT_P + (BYTE *)eleptr; res...
make_sna_requests3
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
void make_sna_response(BYTE *requestp, COMMADPT *ca) { char v2; char *freeq; int v6; BYTE v7; BYTE v8; BYTE v9; BYTE v10; void **p_sendq; void **v12; int v13; BYTE v14; long v15; int sfd; int v17; BYTE *v18; long v19; DEVBLK *dev; long v21; int v22; int v23; int v24; short v2...
void make_sna_response(BYTE *requestp, COMMADPT *ca) { BYTE *respbuf; BYTE *ru_ptr; int ru_size; void *eleptr; BYTE obuf[4096]; BYTE buf[BUFLEN_3270]; int amt; int i1; if ((requestp[10] & 0x80) != 0) return; if ((requestp[10] & (unsigned char)0xfc) == 0x00 && requestp[2] == ca->lu_addr0 &...
make_sna_response
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
int recv_packet(int csock, BYTE *buf, int reqlen, BYTE delim) { int v5; int v7; int *v9; char *v10; v5 = 0; while (1) { v7 = recv(csock, &buf[v5], reqlen - v5, 0); if (v7 < 0) { v9 = __errno_location(); v10 = strerror(*v9); logmsg("console: DBG022: recv: %s\n", v10); return ...
static int recv_packet(int csock, BYTE *buf, int reqlen, BYTE delim) { int rc = 0; int rcvlen = 0; while (rcvlen < reqlen) { rc = recv(csock, buf + rcvlen, reqlen - rcvlen, 0); if (rc < 0) { TNSERROR("console: DBG022: recv: %s\n", strerror(HSO_errno)); return -1; } if (rc == 0) { ...
recv_packet
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
void *telnet_thread(void *vca) { int v2; unsigned int v3; int is_socket; int *v5; char *v6; BYTE v7; BYTE v8; U16 v9; BYTE v10; int v12; in_addr_t v13; int v14; BYTE *v15; int v16; int v17; char *v18; char v19; long v20; long v21; char v22; char v23; int v24; int v25; _QW...
static void *telnet_thread(void *vca) { COMMADPT *ca; int devnum; int sockopt; int ca_shutdown = 0; int rc; struct sockaddr_in sin; BYTE bfr[256]; ca = (COMMADPT *)vca; ca->sfd = 0; devnum = ca->devnum; ca->lfd = socket(AF_INET, SOCK_STREAM, 0); if (!socket_is_socket(ca->lfd)) { logmsg(_(...
telnet_thread
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
BYTE *translate_to_ebcdic(char *str) { long v1; unsigned char v2; char *v3; const unsigned short **v4; v2 = *str; if (*str) { v3 = str; v4 = __ctype_b_loc(); do { while (((*v4)[v2] & 0x4000) == 0) { *v3 = 32; v2 = *++v3; if (!v2) return (BYTE *)str; ...
static BYTE *translate_to_ebcdic(char *str) { int i; BYTE c; for (i = 0; str[i] != '\0'; i++) { c = str[i]; str[i] = (isprint(c) ? host_to_guest(c) : SPACE); } return (BYTE *)str; }
translate_to_ebcdic
hercules-3.13-r1
app-emulation
O0/app-emulation/hercules-3.13-r1/hdt3705.so
ida
O0
void check_seq_req(sb_file_request_t *prev_req, sb_file_request_t *r) { long v2; long v3; long file_id; long v5; long v6; long v7; long v8; long v9; sb_file_request_t *ra; if (r->operation != FILE_OP_TYPE_FSYNC && r->operation && prev_req->operation) { file_id = r->file_id; v5 = prev_...
void check_seq_req(sb_file_request_t *prev_req, sb_file_request_t *r) { if (r->operation == FILE_OP_TYPE_FSYNC || r->operation == FILE_OP_TYPE_NULL) return; if (prev_req->operation == FILE_OP_TYPE_NULL) return; if (r->file_id - prev_req->file_id > 1 && !(r->file_id == 0 && prev_req->file_id == nu...
check_seq_req
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
void clear_stats() { read_ops = 0; write_ops = 0; other_ops = 0; last_other_ops = 0; bytes_read = 0; last_bytes_read = 0; bytes_written = 0; last_bytes_written = 0; }
void clear_stats(void) { read_ops = 0; write_ops = 0; other_ops = 0; last_other_ops = 0; bytes_read = 0; last_bytes_read = 0; bytes_written = 0; last_bytes_written = 0; }
clear_stats
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int convert_extra_flags(file_flags_t extra_flags, int *open_flags) { long v2; long v3; long v4; int v5; int v6; if (!extra_flags) return 0; *open_flags = 0; if ((extra_flags & 1) != 0) *open_flags |= 0x101000u; if ((extra_flags & 2) != 0) { v5 = *open_flags; BYTE1(v5) = BYTE1(*open_fl...
static int convert_extra_flags(file_flags_t extra_flags, int *open_flags) { if (extra_flags == 0) { #ifdef _WIN32 *open_flags = FILE_ATTRIBUTE_NORMAL; #endif } else { *open_flags = 0; if (extra_flags & SB_FILE_FLAG_SYNC) { #ifdef _WIN32 *open_flags |= FILE_FLAG_WRITE_THROUGH; #else *open_fl...
convert_extra_flags
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int cpu_done() { return 0; }
int cpu_done(void) { return 0; }
cpu_done
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int cpu_execute_event(sb_event_t *r, int thread_id) { double v2; double v3; double v4; unsigned long c; unsigned long l; unsigned long n; double t; n = 0; for (c = 3; c < max_prime; ++c) { if ((c & 0x8000000000000000LL) != 0LL) v2 = (double)(int)(c & 1 | (c >> 1)) + (double)(int)(c & 1 | (c...
int cpu_execute_event(sb_event_t *r, int thread_id) { unsigned long long c; unsigned long long l; double t; unsigned long long n = 0; (void)thread_id; (void)r; for (c = 3; c < max_prime; c++) { t = sqrt((double)c); for (l = 2; l <= t; l++) if (c % l == 0) break; if (l > t) ...
cpu_execute_event
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int cpu_init() { long v0; long v1; long v2; int prime_option; prime_option = sb_get_value_int("cpu-max-prime"); if (prime_option > 0) { max_prime = prime_option; return 0; } else { log_text(0, "Invalid value of cpu-max-prime: %d.", (unsigned int)prime_option, v0, v1, v2); ret...
int cpu_init(void) { int prime_option = sb_get_value_int("cpu-max-prime"); if (prime_option <= 0) { log_text(LOG_FATAL, "Invalid value of cpu-max-prime: %d.", prime_option); return 1; } max_prime = (unsigned int)prime_option; return 0; }
cpu_init
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
sb_event_t *cpu_next_event(sb_event_t *__return_ptr retstr, int thread_id) { sb_event_t req; req.type = 1; *retstr = req; return retstr; }
sb_event_t cpu_next_event(int thread_id) { sb_event_t req; (void)thread_id; req.type = SB_REQ_TYPE_CPU; return req; }
cpu_next_event
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
void cpu_print_mode() { long v0; long v1; long v2; long v3; long v4; long v5; long v6; log_text(4u, "Doing CPU performance benchmark\n", v0, v1, v2, v3); log_text(3u, "Prime numbers limit: %d\n", max_prime, v4, v5, v6); }
void cpu_print_mode(void) { log_text(LOG_INFO, "Doing CPU performance benchmark\n"); log_text(LOG_NOTICE, "Prime numbers limit: %d\n", max_prime); }
cpu_print_mode
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
void cpu_report_cumulative(sb_stat_t *stat) { long v1; long v2; long v3; long v4; uint64_t v5; long v6; long v7; long v8; signed long events; double v10; long v11; long v12; long v13; long v14; log_text(3u, "CPU speed:", v1, v2, v3, v4); events = stat->events; if (events < 0) { v5...
void cpu_report_cumulative(sb_stat_t *stat) { log_text(LOG_NOTICE, "CPU speed:"); log_text(LOG_NOTICE, " events per second: %8.2f", stat->events / stat->time_interval); sb_report_cumulative(stat); }
cpu_report_cumulative
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
unsigned long crc32(unsigned long crc, const unsigned char *buf, unsigned int len) { if (buf) return crc32_little(crc, buf, len); else return 0; }
DO1 unsigned long ZEXPORT crc32(crc, buf, len) unsigned long crc; const unsigned char FAR *buf; unsigned len; { if (buf == Z_NULL) return 0UL; #ifdef DYNAMIC_CRC_TABLE if (crc_table_empty) make_crc_table(); #endif #ifdef BYFOUR if (sizeof(void *) == sizeof(ptrdiff_t)) { u4 endian; endi...
crc32
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
unsigned long crc32_big(unsigned long crc, const unsigned char *buf, unsigned int len) { unsigned int v3; const unsigned char *v4; const unsigned char *v5; _DWORD *v6; unsigned int v7; unsigned int v8; unsigned int v9; unsigned int v10; unsigned int v11; unsigned int v12; u...
DOBIG4 local unsigned long crc32_big(crc, buf, len) unsigned long crc; const unsigned char FAR *buf; unsigned len; { register u4 c; register const u4 FAR *buf4; c = REV((u4)crc); c = ~c; while (len && ((ptrdiff_t)buf & 3)) { c = crc_table[4][(c >> 24) ^ *buf++] ^ (c << 8); len--; } buf4 = (cons...
crc32_big
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
unsigned long crc32_little(unsigned long crc, const unsigned char *buf, unsigned int len) { unsigned int v3; const unsigned char *v4; const unsigned char *v5; unsigned int v6; unsigned int v7; unsigned int v8; unsigned int v9; unsigned int v10; unsigned int v11; unsigned i...
DOLIT4 local unsigned long crc32_little(crc, buf, len) unsigned long crc; const unsigned char FAR *buf; unsigned len; { register u4 c; register const u4 FAR *buf4; c = (u4)crc; c = ~c; while (len && ((ptrdiff_t)buf & 3)) { c = crc_table[0][(c ^ *buf++) & 0xff] ^ (c >> 8); len--; } buf4 = (const...
crc32_little
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int create_files() { long v0; __off_t v1; long v2; long v3; long v4; long v5; long v7; long v8; long v9; long v10; long v11; long v12; long v13; long v14; long v15; long v16; long v17; signed long v18; long v19; long v20; long v21; long v22; double v23; int flags; unsig...
int create_files(void) { unsigned int i; int fd; char file_name[512]; long long offset; long long written = 0; sb_timer_t t; double seconds; int flags = 0; log_text(LOG_NOTICE, "%d files, %ldKb each, %ldMb total", num_files, (long)(file_size / 1024), (long)((file_size * num_file...
create_files
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int event_rnd_none(sb_event_t *req, int thread_id) { ssize_t i; for (i = 0; i < memory_block_size; i += 8LL) sb_rand_uniform_double(); return 0; }
int event_rnd_none(sb_event_t *req, int thread_id) { (void)req; (void)thread_id; for (ssize_t i = 0; i < memory_block_size; i += SIZEOF_SIZE_T) { size_t offset = (volatile size_t)(sb_rand_uniform_double() * (memory_block_size / SIZEOF_SIZE_T)); (void)offset; } r...
event_rnd_none
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int event_rnd_read(sb_event_t *req, int thread_id) { double v2; ssize_t i; size_t offset; for (i = 0; i < memory_block_size; i += 8LL) { v2 = sb_rand_uniform_double() * (double)(int)(memory_block_size / 8); if (v2 >= 9.223372036854776e18) offset = (unsigned int)(int)(v2 - 9.223372036854...
int event_rnd_read(sb_event_t *req, int thread_id) { (void)req; (void)thread_id; for (ssize_t i = 0; i < memory_block_size; i += SIZEOF_SIZE_T) { size_t offset = (size_t)(sb_rand_uniform_double() * (memory_block_size / SIZEOF_SIZE_T)); size_t val = SIZE_T_LOAD(tls_buf + offse...
event_rnd_read
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int event_rnd_write(sb_event_t *req, int thread_id) { double v2; ssize_t i; size_t offset; for (i = 0; i < memory_block_size; i += 8LL) { v2 = sb_rand_uniform_double() * (double)(int)(memory_block_size / 8); if (v2 >= 9.223372036854776e18) offset = (unsigned int)(int)(v2 - 9.22337203685...
int event_rnd_write(sb_event_t *req, int thread_id) { (void)req; (void)thread_id; for (ssize_t i = 0; i < memory_block_size; i += SIZEOF_SIZE_T) { size_t offset = (size_t)(sb_rand_uniform_double() * (memory_block_size / SIZEOF_SIZE_T)); SIZE_T_STORE(tls_buf + offset, i); } ...
event_rnd_write
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int event_seq_none(sb_event_t *req, int thread_id) { size_t *buf; size_t *end; buf = (size_t *)__readfsqword(0xFFFFFFC8); end = &buf[memory_block_size / 8]; while (buf < end) { ck_pr_barrier_12(); ++buf; } return 0; }
int event_seq_none(sb_event_t *req, int thread_id) { (void)req; (void)thread_id; for (size_t *buf = tls_buf, *end = buf + memory_block_size / SIZEOF_SIZE_T; buf < end; buf++) { ck_pr_barrier(); } return 0; }
event_seq_none
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int event_seq_read(sb_event_t *req, int thread_id) { size_t *buf; size_t *end; buf = (size_t *)__readfsqword(0xFFFFFFC8); end = &buf[memory_block_size / 8]; while (buf < end) ck_pr_md_load_64_12(buf++); return 0; }
int event_seq_read(sb_event_t *req, int thread_id) { (void)req; (void)thread_id; for (size_t *buf = tls_buf, *end = buf + memory_block_size / SIZEOF_SIZE_T; buf < end; buf++) { size_t val = SIZE_T_LOAD(buf); (void)val; } return 0; }
event_seq_read
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int event_seq_write(sb_event_t *req, int thread_id) { uint64_t *buf; size_t *end; buf = (uint64_t *)__readfsqword(0xFFFFFFC8); end = &buf[memory_block_size / 8]; while (buf < end) { ck_pr_md_store_64_12(buf, end - buf); ++buf; } return 0; }
int event_seq_write(sb_event_t *req, int thread_id) { (void)req; (void)thread_id; for (size_t *buf = tls_buf, *end = buf + memory_block_size / SIZEOF_SIZE_T; buf < end; buf++) { SIZE_T_STORE(buf, end - buf); } return 0; }
event_seq_write
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int file_async_done() { unsigned int i; if (file_io_mode != FILE_IO_MODE_ASYNC) return 0; for (i = 0; i < (unsigned int)dword_99600; ++i) { io_queue_release(aio_ctxts[i].io_ctxt); free(aio_ctxts[i].events); } free(aio_ctxts); return 0; }
int file_async_done(void) { unsigned int i; if (file_io_mode != FILE_IO_MODE_ASYNC) return 0; for (i = 0; i < sb_globals.threads; i++) { io_queue_release(aio_ctxts[i].io_ctxt); free(aio_ctxts[i].events); } free(aio_ctxts); return 0; }
file_async_done
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int file_async_init() { long v1; long v2; long v3; long v4; long v5; long v6; long v7; sb_aio_context_t *v8; long v9; long v10; unsigned int i; if (file_io_mode != FILE_IO_MODE_ASYNC) return 0; file_async_backlog = sb_get_value_int("file-async-backlog"); if (file_async_backlog) { ai...
int file_async_init(void) { unsigned int i; if (file_io_mode != FILE_IO_MODE_ASYNC) return 0; file_async_backlog = sb_get_value_int("file-async-backlog"); if (file_async_backlog <= 0) { log_text(LOG_FATAL, "Invalid value of file-async-backlog: %d", file_async_backlog); return 1; } ...
file_async_init
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int file_cmd_cleanup() { if (parse_arguments()) return 1; else return remove_files(); }
int file_cmd_cleanup(void) { if (parse_arguments()) return 1; return remove_files(); }
file_cmd_cleanup
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int file_cmd_prepare() { if (parse_arguments()) return 1; if (test_mode == MODE_WRITE) return remove_files(); return create_files(); }
int file_cmd_prepare(void) { if (parse_arguments()) return 1; if (test_mode == MODE_WRITE) return remove_files(); return create_files(); }
file_cmd_prepare
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int file_do_fsync(unsigned int id, int thread_id) { FILE_DESCRIPTOR fd; fd = files[id]; if ((unsigned int)file_io_mode > FILE_IO_MODE_ASYNC) { if (file_io_mode == FILE_IO_MODE_MMAP) return msync(mmaps[id], file_size, 6); else return 1; } else if (file_fsync_mode) { return fdatasync(fd);...
int file_do_fsync(unsigned int id, int thread_id) { FILE_DESCRIPTOR fd = files[id]; #ifdef HAVE_LIBAIO struct iocb iocb; #else (void)thread_id; #endif if (file_io_mode == FILE_IO_MODE_SYNC || file_io_mode == FILE_IO_MODE_ASYNC #if defined(HAVE_MMAP) && SIZEOF_SIZE_T == 4 || file_io_mode == FILE_IO_MODE_...
file_do_fsync
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int file_done() { unsigned int i; unsigned int ia; for (i = 0; i < num_files; ++i) close(files[i]); if (file_async_done()) return 1; if (file_mmap_done()) return 1; for (ia = 0; ia < (unsigned int)dword_99600; ++ia) { if (per_thread[ia].buffer) sb_free_memaligned(per_thread[ia].buffer...
int file_done(void) { unsigned int i; for (i = 0; i < num_files; i++) #ifndef _WIN32 close(files[i]); #else CloseHandle(files[i]); #endif #ifdef HAVE_LIBAIO if (file_async_done()) return 1; #endif #ifdef HAVE_MMAP if (file_mmap_done()) return 1; #endif for (i = 0; i < sb_globals.threads; i...
file_done
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int file_execute_event(sb_event_t *sb_req, int thread_id) { long v2; long v3; long v4; sb_file_op_t operation; long v7; long v8; long v9; long v10; long v11; long v12; unsigned int fd; sb_event_t_$2F9103B6E2A714A69FEA91D11449AADC *file_req; file_req = &sb_req->u; if (byte_99A18) log_tex...
int file_execute_event(sb_event_t *sb_req, int thread_id) { FILE_DESCRIPTOR fd; sb_file_request_t *file_req = &sb_req->u.file_request; if (sb_globals.debug) { log_text(LOG_DEBUG, "Executing request, operation: %d, file_id: %d, pos: %d, " "size: %d", file_req->operation,...
file_execute_event
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
void file_fill_buffer(unsigned char *buf, unsigned int len, size_t offset) { unsigned int i; for (i = 0; i < (unsigned long)len - 12; ++i) buf[i] = sb_rand_uniform_uint64(); *(_DWORD *)&buf[i] = crc32(0, buf, len - 12); *(_QWORD *)&buf[i + 4] = offset; }
void file_fill_buffer(unsigned char *buf, unsigned int len, size_t offset) { unsigned int i; for (i = 0; i < len - (FILE_CHECKSUM_LENGTH + FILE_OFFSET_LENGTH); i++) buf[i] = sb_rand_uniform_uint64() & 0xFF; *(int *)(void *)(buf + i) = (int)crc32(0, (unsigned char *)buf, len - (FILE_CH...
file_fill_buffer
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int file_fsync(unsigned int id, int thread_id) { long v2; long v3; long v4; if (file_do_fsync(id, thread_id)) { log_errno(0, "Failed to fsync file! file: %d", (unsigned int)files[id], v2, v3, v4); return 1; } else { pthread_mutex_lock(&mutex); ++other_ops; pthread_mutex_unlo...
int file_fsync(unsigned int id, int thread_id) { if (file_do_fsync(id, thread_id)) { log_errno(LOG_FATAL, "Failed to fsync file! file: " FD_FMT, files[id]); return 1; } SB_THREAD_MUTEX_LOCK(); other_ops++; SB_THREAD_MUTEX_UNLOCK(); return 0; }
file_fsync
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
sb_event_t *file_get_rnd_request(sb_event_t *__return_ptr retstr, int thread_id) { double v2; unsigned long v3; file_test_mode_t mode; unsigned int i; unsigned long tmppos; sb_event_t sb_req; mode = test_mode; sb_req.type = 3; pthread_mutex_lock(&mutex); if (test_mo...
sb_event_t file_get_rnd_request(int thread_id) { sb_event_t sb_req; sb_file_request_t *file_req = &sb_req.u.file_request; unsigned long long tmppos; int mode = test_mode; unsigned int i; sb_req.type = SB_REQ_TYPE_FILE; SB_THREAD_MUTEX_LOCK(); if (test_mode == MODE_RND_RW) { if ((double)(read_ops +...
file_get_rnd_request
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
sb_event_t *file_get_seq_request(sb_event_t *__return_ptr retstr) { ssize_t v1; long pos; sb_event_t sb_req; unsigned long v5; v5 = __readfsqword(0x28u); sb_req.type = 3; pthread_mutex_lock(&mutex); if (test_mode == MODE_WRITE || test_mode == MODE_REWRITE) sb_req.u.file_request.operation = FILE_OP_...
sb_event_t file_get_seq_request(void) { sb_event_t sb_req; sb_file_request_t *file_req = &sb_req.u.file_request; sb_req.type = SB_REQ_TYPE_FILE; SB_THREAD_MUTEX_LOCK(); if (test_mode == MODE_WRITE || test_mode == MODE_REWRITE) file_req->operation = FILE_OP_TYPE_WRITE; else file_req->operation = FI...
file_get_seq_request
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int file_init() { long v1; long v2; long v3; long v4; if (parse_arguments()) return 1; files = (FILE_DESCRIPTOR *)malloc(4LL * num_files); if (files) { if (file_async_init()) { return 1; } else { init_vars(); clear_stats(); return 0; } } else { log_text(0, "M...
int file_init(void) { if (parse_arguments()) return 1; files = (FILE_DESCRIPTOR *)malloc(num_files * sizeof(FILE_DESCRIPTOR)); if (files == NULL) { log_text(LOG_FATAL, "Memory allocation failure."); return 1; } #ifdef HAVE_LIBAIO if (file_async_init()) return 1; #endif init_vars(); clea...
file_init
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int file_mmap_done() { unsigned int i; if (file_io_mode != FILE_IO_MODE_MMAP) return 0; for (i = 0; i < num_files; ++i) munmap(mmaps[i], file_size); free(mmaps); return 0; }
int file_mmap_done(void) { unsigned int i; if (file_io_mode != FILE_IO_MODE_MMAP) return 0; #if SIZEOF_SIZE_T > 4 for (i = 0; i < num_files; i++) munmap(mmaps[i], file_size); free(mmaps); #else (void)i; #endif return 0; }
file_mmap_done
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0
int file_mmap_prepare() { long v1; long v2; long v3; void **v4; long v5; long v6; long v7; unsigned int i; unsigned int ia; if (file_io_mode != FILE_IO_MODE_MMAP) return 0; file_page_mask = ~(sb_get_allocation_granularity() - 1); if (test_mode == MODE_WRITE) { for (i = 0; i < num_files;...
int file_mmap_prepare(void) { unsigned int i; if (file_io_mode != FILE_IO_MODE_MMAP) return 0; file_page_mask = ~(sb_get_allocation_granularity() - 1); if (test_mode == MODE_WRITE) for (i = 0; i < num_files; i++) { #ifdef _WIN32 HANDLE hFile = files[i]; LARGE_INTEGER offset; offset....
file_mmap_prepare
sysbench-1.0.20-r101
app-benchmarks
O0/app-benchmarks/sysbench-1.0.20-r101/sysbench
ida
O0