/external/libdivsufsort/examples/ |
H A D | mksary.c | 70 FILE *fp, *ofp; local 111 if(fopen_s(&ofp, ofname = argv[2], "wb") != 0) { 113 if((ofp = LFS_FOPEN(ofname = argv[2], "wb")) == NULL) { 127 ofp = stdout; 181 if(fwrite(SA, sizeof(saidx_t), (size_t)n, ofp) != (size_t)n) { 186 if(needclose & 2) { fclose(ofp); }
|
H A D | bwt.c | 80 FILE *fp, *ofp; local 133 if(fopen_s(&ofp, ofname = argv[i], "wb") != 0) { 135 if((ofp = LFS_FOPEN(ofname = argv[i], "wb")) == NULL) { 149 ofp = stdout; 176 if(write_int(ofp, blocksize) != 4) { 195 if((write_int(ofp, pidx) != 4) || 196 (fwrite(T, sizeof(sauchar_t), m, ofp) != m)) { 213 if(needclose & 2) { fclose(ofp); }
|
H A D | unbwt.c | 82 FILE *fp, *ofp; local 125 if(fopen_s(&ofp, ofname = argv[2], "wb") != 0) { 127 if((ofp = LFS_FOPEN(ofname = argv[2], "wb")) == NULL) { 141 ofp = stdout; 183 if(fwrite(T, sizeof(sauchar_t), m, ofp) != m) { 200 if(needclose & 2) { fclose(ofp); }
|
/external/blktrace/btt/ |
H A D | args.c | 248 FILE *ofp = my_fopen(fname, "w"); local 250 if (!ofp) { 256 setbuffer(ofp, buf, SETBUFFER_SIZE); 258 add_file(ofp, fname); 261 return ofp;
|
H A D | latency.c | 23 static inline void latency_out(FILE *ofp, __u64 tstamp, __u64 latency) argument 25 if (ofp) 26 fprintf(ofp, "%lf %lf\n", TO_SEC(tstamp), TO_SEC(latency));
|
H A D | trace_complete.c | 23 static inline void __out(FILE *ofp, __u64 tm, enum iop_type type, argument 28 fprintf(ofp, " "); 29 fprintf(ofp, "%5d.%09lu %c %10llu+%-4u\n", 35 static void display_io_track(FILE *ofp, struct io *iop) argument 37 fprintf(ofp, "%3d,%-3d: ", MAJOR(iop->t.device), MINOR(iop->t.device)); 38 __out(ofp, iop->t.time, IOP_Q, iop->t.sector, t_sec(&iop->t), 0); 41 __out(ofp, iop->g_time, IOP_G, iop->t.sector, t_sec(&iop->t),1); 43 __out(ofp, iop->i_time, IOP_I, iop->t.sector, t_sec(&iop->t),1); 45 __out(ofp, iop->m_time, IOP_M, iop->t.sector, t_sec(&iop->t),1); 47 __out(ofp, io [all...] |
H A D | misc.c | 36 FILE *ofp; member in struct:file_info 56 fclose(fip->ofp); 122 fip->ofp = fp;
|
H A D | inlines.h | 364 static inline void __dump_iop(FILE *ofp, struct io *iop, int extra_nl) argument 366 fprintf(ofp, "%5d.%09lu %3d,%-3d %c %10llu+%-4u\n", 371 if (extra_nl) fprintf(ofp, "\n"); 374 static inline void __dump_iop2(FILE *ofp, struct io *a_iop, struct io *l_iop) argument 376 fprintf(ofp, "%5d.%09lu %3d,%-3d %c %10llu+%-4u <- (%3d,%-3d) %10llu\n",
|
H A D | output.c | 54 void output_section_hdr(FILE *ofp, char *hdr) argument 56 fprintf(ofp, "==================== "); 57 fprintf(ofp, "%s", hdr); 58 fprintf(ofp, " ====================\n\n"); 61 void output_hdr(FILE *ofp, char *hdr) argument 63 fprintf(ofp, "%15s %13s %13s %13s %11s\n", 65 fprintf(ofp, "--------------- ------------- ------------- ------------- -----------\n"); 68 void __output_avg(FILE *ofp, char *hdr, struct avg_info *ap, int do_easy) argument 72 fprintf(ofp, "%-15s %13.9f %13.9f %13.9f %11d\n", hdr, 94 FILE *ofp; member in struct:__oda 109 output_dip_avg(FILE *ofp, char *hdr, ai_dip_t (*func)(struct d_info *)) argument 118 FILE *ofp; member in struct:__q2d 128 FILE *ofp = q2dp->ofp; local 138 output_q2d_histo(FILE *ofp) argument 225 output_dip_merge_ratio(FILE *ofp) argument 250 FILE *ofp; member in struct:ohead_data 289 output_dip_prep_ohead(FILE *ofp) argument 329 output_seek_mode_info(FILE *ofp, struct o_seek_info *sip) argument 391 do_output_dip_seek_info(struct d_info *dip, FILE *ofp, int is_q2q) argument 448 output_dip_seek_info(FILE *ofp) argument 467 output_dip_q2q_seek_info(FILE *ofp) argument 487 FILE *ofp; member in struct:__opa 505 output_pip_avg(FILE *ofp, char *hdr, ai_pip_t (*func)(struct p_info *)) argument 523 FILE *ofp = arg; local 550 __dip_output_plug_all(FILE *ofp, struct plug_info *p) argument 569 FILE *ofp = arg; local 595 __dip_output_uplug_all(FILE *ofp, struct nios_plug_info *p) argument 611 output_plug_info(FILE *ofp) argument 657 __dip_output_actQ_all(FILE *ofp, struct actQ_info *p) argument 665 output_actQ_info(FILE *ofp) argument 678 FILE *ofp; local 712 output_avgs(FILE *ofp) argument 797 __output_ranges(FILE *ofp, struct list_head *head_p, float base) argument 812 output_regions(FILE *ofp, char *header, struct region_info *reg, float base) argument 830 FILE *ofp; member in struct:__od 843 output_devs(FILE *ofp, float base) argument 858 FILE *ofp; member in struct:__op 868 output_procs(FILE *ofp, float base) argument 877 output_ranges(FILE *ofp) argument [all...] |
/external/vboot_reference/utility/ |
H A D | bmpblk_font.c | 124 FILE *ofp; local 156 ofp = fopen(outfile, "wb"); 157 if (!ofp) 162 if (1 != fwrite(&header, sizeof(header), 1, ofp)) { 204 if (1 != fwrite(&entry, sizeof(entry), 1, ofp)) { 208 if (1 != fwrite(imgdata, imgsize, 1, ofp)) { 212 if (diff && 1 != fwrite("\0\0\0\0\0\0\0\0", diff, 1, ofp)) { 221 fclose(ofp); 225 fclose(ofp);
|
H A D | efidecompress.c | 1122 FILE *ofp = fopen(outfile, "wb"); local 1123 if (!ofp) 1132 if (1 != fwrite(obuf, osize, 1, ofp)) { 1144 fclose(ofp);
|
H A D | eficompress.c | 1695 FILE *ofp = fopen(outfile, "wb"); local 1696 if (!ofp) 1705 if (1 != fwrite(obuf, osize, 1, ofp)) { 1717 fclose(ofp);
|
/external/blktrace/ |
H A D | blkrawverify.c | 104 static void dump_trace(FILE *ofp, char *prefix, struct blk_io_trace *bit) argument 106 fprintf(ofp, " Dump %s\n", prefix); 107 fprintf(ofp, " %8s: %08x\n", "magic", bit->magic); 108 fprintf(ofp, " %8s: %u\n", "sequence", bit->sequence); 109 fprintf(ofp, " %8s: %llu\n", "time", (unsigned long long) bit->time); 110 fprintf(ofp, " %8s: %llu\n", "sector", (unsigned long long) bit->sector); 111 fprintf(ofp, " %8s: %u\n", "bytes", bit->bytes); 112 fprintf(ofp, " %8s: %s\n", "action", act_to_str(bit->action)); 113 fprintf(ofp, " %8s: %u\n", "bytes", bit->bytes); 114 fprintf(ofp, " 144 FILE *ifp, *ofp; local 281 FILE *ofp; local [all...] |
H A D | blkparse.c | 261 FILE *ofp = NULL; variable 608 fprintf(ofp, 1653 fprintf(ofp, "%s\n", msg); 1655 fprintf(ofp, " Reads Queued: %s, %siB\t", size_cnv(x, ios->qreads, 0), size_cnv(y, ios->qread_kb, 1)); 1656 fprintf(ofp, " Writes Queued: %s, %siB\n", size_cnv(x, ios->qwrites, 0), size_cnv(y, ios->qwrite_kb, 1)); 1657 fprintf(ofp, " Read Dispatches: %s, %siB\t", size_cnv(x, ios->ireads, 0), size_cnv(y, ios->iread_kb, 1)); 1658 fprintf(ofp, " Write Dispatches: %s, %siB\n", size_cnv(x, ios->iwrites, 0), size_cnv(y, ios->iwrite_kb, 1)); 1659 fprintf(ofp, " Reads Requeued: %s\t\t", size_cnv(x, ios->rrqueue, 0)); 1660 fprintf(ofp, " Writes Requeued: %s\n", size_cnv(x, ios->wrqueue, 0)); 1661 fprintf(ofp, " Read [all...] |
H A D | blktrace.c | 242 * ofn, ofd, ofp, obuf & mmap_info are used for output file (optionally). 246 FILE *ofp; member in struct:io_info 1517 if (setvbuf(iop->ofp, iop->obuf, mode, size) < 0) { 1534 iop->ofp = my_fopen(iop->ofn, "w+"); 1535 if (iop->ofp == NULL) { 1544 fclose(iop->ofp); 1548 iop->ofd = fileno(iop->ofp); 1560 if (ftruncate(fileno(iop->ofp), mip->fs_size) < 0) { 1567 if (iop->ofp) 1568 fclose(iop->ofp); 1946 FILE *ofp; local [all...] |
/external/blktrace/btreplay/ |
H A D | btrecord.c | 79 * @ofp: Output file 91 FILE *ofp, *vfp; member in struct:io_stream 238 fseek(stream->ofp, 0, SEEK_SET); 239 if (fwrite(hdr, sizeof(*hdr), 1, stream->ofp) != 1) { 576 if (fwrite(hdrp, sizeof(struct io_bunch_hdr), 1, stream->ofp) != 1) { 603 if (fwrite(p, sizeof(struct io_pkt), npkts, stream->ofp) != npkts) { 692 stream->ofp = fopen(ofile_name, "w"); 693 if (!stream->ofp) { 738 fclose(stream->ofp);
|