/openbsd/usr.bin/csplit/ |
H A D | csplit.c | 101 FILE *ofp; in main() local 196 ofp = newfile(); in main() 201 if (fclose(ofp) != 0) in main() 325 rewind(ofp); in toomuch() 328 if (ferror(ofp)) in toomuch() 347 overfile = ofp; in toomuch() 360 FILE *ofp; in do_rexp() local 383 ofp = newfile(); in do_rexp() 421 fputs(p, ofp); in do_rexp() 441 FILE *ofp; in do_lineno() local [all …]
|
/openbsd/gnu/usr.bin/binutils/gprof/ |
H A D | gmon_io.c | 177 gmon_io_write_32 (ofp, val) in gmon_io_write_32() argument 178 FILE *ofp; in gmon_io_write_32() 192 FILE *ofp; in gmon_io_write_64() 206 FILE *ofp; in gmon_io_write_vma() 228 gmon_io_write_8 (ofp, val) in gmon_io_write_8() argument 229 FILE *ofp; in gmon_io_write_8() 242 FILE *ofp; in gmon_io_write() 288 FILE *ofp; in gmon_write_raw_arc() 625 FILE *ofp; local 629 if (!ofp) [all …]
|
H A D | source.c | 106 FILE *ifp, *ofp; local 175 ofp = stdout; 218 ofp = fopen (fname, "w"); 220 if (!ofp) 229 if (ofp == stdout) 234 fputc ('\n', ofp); 239 fprintf (ofp, "\f\n"); 241 fprintf (ofp, _("*** File %s:\n"), sf->name); 255 fputs (annotation, ofp); 261 fputc (buf[i], ofp); [all …]
|
H A D | basic_blocks.c | 214 bb_write_blocks (ofp, filename) in bb_write_blocks() argument 215 FILE *ofp; in bb_write_blocks() 231 if (gmon_io_write_8 (ofp, GMON_TAG_BB_COUNT) 232 || gmon_io_write_32 (ofp, nblocks)) 243 if (gmon_io_write_vma (ofp, sym->bb_addr[i]) 244 || gmon_io_write_vma (ofp, (bfd_vma) sym->bb_calls[i])) 477 FILE *ofp; in print_annotated_source() local 548 if (!ofp) in print_annotated_source() 577 fprintf (ofp, _("\nExecution Summary:\n\n")); in print_annotated_source() 592 if (ofp != stdout) in print_annotated_source() [all …]
|
H A D | call_graph.c | 112 cg_write_arcs (ofp, filename) in cg_write_arcs() argument 113 FILE *ofp; in cg_write_arcs() 123 if (gmon_io_write_8 (ofp, GMON_TAG_CG_ARC) 124 || gmon_io_write_vma (ofp, arc->parent->addr) 125 || gmon_io_write_vma (ofp, arc->child->addr) 126 || gmon_io_write_32 (ofp, arc->count))
|
H A D | hist.c | 160 hist_write_hist (ofp, filename) in hist_write_hist() argument 161 FILE * ofp; in hist_write_hist() 169 if (gmon_io_write_8 (ofp, GMON_TAG_TIME_HIST) 170 || gmon_io_write_vma (ofp, s_lowpc) 171 || gmon_io_write_vma (ofp, s_highpc) 172 || gmon_io_write_32 (ofp, hist_num_bins) 173 || gmon_io_write_32 (ofp, hz) 174 || gmon_io_write (ofp, hist_dimension, 15) 175 || gmon_io_write (ofp, &hist_dimension_abbrev, 1)) 185 if (fwrite (&count[0], sizeof (count), 1, ofp) != 1)
|
/openbsd/gnu/usr.bin/binutils-2.17/gprof/ |
H A D | gmon_io.c | 174 if (fwrite (buf, 1, 4, ofp) != 4) in gmon_io_write_32() 186 if (fwrite (buf, 1, 8, ofp) != 8) in gmon_io_write_64() 219 if (fwrite (buf, 1, 1, ofp) != 1) in gmon_io_write_8() 227 if (fwrite (buf, 1, n, ofp) != n) in gmon_io_write() 270 if (gmon_io_write_vma (ofp, fpc) in gmon_write_raw_arc() 600 FILE *ofp; in gmon_out_write() local 604 if (!ofp) in gmon_out_write() 625 hist_write_hist (ofp, filename); in gmon_out_write() 629 cg_write_arcs (ofp, filename); in gmon_out_write() 633 bb_write_blocks (ofp, filename); in gmon_out_write() [all …]
|
H A D | source.c | 102 FILE *ifp, *ofp; in annotate_source() local 171 ofp = stdout; in annotate_source() 214 ofp = fopen (fname, "w"); in annotate_source() 216 if (!ofp) in annotate_source() 225 if (ofp == stdout) in annotate_source() 230 fputc ('\n', ofp); in annotate_source() 235 fprintf (ofp, "\f\n"); in annotate_source() 237 fprintf (ofp, _("*** File %s:\n"), sf->name); in annotate_source() 251 fputs (annotation, ofp); in annotate_source() 257 fputc (buf[i], ofp); in annotate_source() [all …]
|
H A D | basic_blocks.c | 208 bb_write_blocks (FILE *ofp, const char *filename) in bb_write_blocks() argument 223 if (gmon_io_write_8 (ofp, GMON_TAG_BB_COUNT) in bb_write_blocks() 224 || gmon_io_write_32 (ofp, nblocks)) in bb_write_blocks() 235 if (gmon_io_write_vma (ofp, sym->bb_addr[i]) in bb_write_blocks() 236 || gmon_io_write_vma (ofp, (bfd_vma) sym->bb_calls[i])) in bb_write_blocks() 467 FILE *ofp; in print_annotated_source() local 537 ofp = annotate_source (sf, 16, annotate_with_count, sf); in print_annotated_source() 538 if (!ofp) in print_annotated_source() 567 fprintf (ofp, _("\nExecution Summary:\n\n")); in print_annotated_source() 582 if (ofp != stdout) in print_annotated_source() [all …]
|
H A D | call_graph.c | 107 cg_write_arcs (FILE *ofp, const char *filename) in cg_write_arcs() argument 116 if (gmon_io_write_8 (ofp, GMON_TAG_CG_ARC) in cg_write_arcs() 117 || gmon_io_write_vma (ofp, arc->parent->addr) in cg_write_arcs() 118 || gmon_io_write_vma (ofp, arc->child->addr) in cg_write_arcs() 119 || gmon_io_write_32 (ofp, arc->count)) in cg_write_arcs()
|
H A D | hist.c | 159 hist_write_hist (FILE * ofp, const char *filename) in hist_write_hist() argument 166 if (gmon_io_write_8 (ofp, GMON_TAG_TIME_HIST) in hist_write_hist() 167 || gmon_io_write_vma (ofp, s_lowpc) in hist_write_hist() 168 || gmon_io_write_vma (ofp, s_highpc) in hist_write_hist() 169 || gmon_io_write_32 (ofp, hist_num_bins) in hist_write_hist() 170 || gmon_io_write_32 (ofp, hz) in hist_write_hist() 171 || gmon_io_write (ofp, hist_dimension, 15) in hist_write_hist() 172 || gmon_io_write (ofp, &hist_dimension_abbrev, 1)) in hist_write_hist() 182 if (fwrite (&count[0], sizeof (count), 1, ofp) != 1) in hist_write_hist()
|
/openbsd/usr.bin/mandoc/ |
H A D | dba_write.c | 30 static FILE *ofp; variable 36 ofp = fopen(fname, "w"); in dba_open() 37 return ofp == NULL ? -1 : 0; in dba_open() 43 return fclose(ofp) == EOF ? -1 : 0; in dba_close() 51 if ((pos = ftell(ofp)) == -1) in dba_tell() 63 if (fseek(ofp, pos, SEEK_SET) == -1) in dba_seek() 91 if (nmemb - fwrite(&out, sizeof(out[0]), nmemb, ofp)) in dba_skip() 99 if (putc(c, ofp) == EOF) in dba_char_write() 106 if (fputs(str, ofp) == EOF) in dba_str_write() 115 if (fwrite(&i, sizeof(i), 1, ofp) != 1) in dba_int_write()
|
/openbsd/lib/libcurses/tinfo/ |
H A D | setbuf.c | 103 _nc_set_buffer(FILE *ofp, bool buffered) in NCURSES_EXPORT() 114 fflush(ofp); in NCURSES_EXPORT() 116 setmode(ofp, O_BINARY); in NCURSES_EXPORT() 141 (void) setvbuf(ofp, buf_ptr, buf_len, buf_len ? _IOFBF : _IOLBF); in NCURSES_EXPORT() 143 (void) setvbuf(ofp, buf_ptr, buf_len ? _IOFBF : _IOLBF, buf_len); in NCURSES_EXPORT() 146 (void) setbuffer(ofp, buf_ptr, (int) buf_len); in NCURSES_EXPORT()
|
H A D | make_keys.c | 89 make_keys(FILE *ifp, FILE *ofp) in make_keys() argument 112 fprintf(ofp, "\t{ %4u, %-*.*s },\t/* %s */\n", in make_keys() 122 write_list(FILE *ofp, const char **list) in write_list() argument 125 fprintf(ofp, "%s\n", *list++); in write_list()
|
H A D | obsolete.c | 46 NCURSES_SP_NAME(_nc_set_buffer) (NCURSES_SP_DCLx FILE *ofp, int buffered) in NCURSES_EXPORT() 51 (void) ofp; in NCURSES_EXPORT() 57 _nc_set_buffer(FILE *ofp, int buffered) in _nc_set_buffer() argument 59 NCURSES_SP_NAME(_nc_set_buffer) (CURRENT_SCREEN, ofp, buffered); in _nc_set_buffer()
|
/openbsd/usr.sbin/smtpd/ |
H A D | queue_backend.c | 229 fclose(ofp); in queue_message_commit() 231 ofp = NULL; in queue_message_commit() 251 fclose(ofp); in queue_message_commit() 253 ofp = NULL; in queue_message_commit() 279 if (ofp) in queue_message_commit() 280 fclose(ofp); in queue_message_commit() 318 fclose(ofp); in queue_message_fd_r() 319 ofp = NULL; in queue_message_fd_r() 340 fclose(ofp); in queue_message_fd_r() 341 ofp = NULL; in queue_message_fd_r() [all …]
|
/openbsd/usr.bin/patch/ |
H A D | patch.c | 368 fclose(ofp); in main() 369 ofp = NULL; in main() 405 if (ofp) in main() 406 fclose(ofp); in main() 407 ofp = NULL; in main() 999 ofp = fopen(name, "w"); in init_output() 1000 if (ofp == NULL) in init_output() 1045 fclose(ofp); in spew_output() 1046 ofp = NULL; in spew_output() 1062 putc(*s, ofp); in dump_line() [all …]
|
H A D | ed.c | 228 FILE *ofp; in write_lines() local 234 ofp = fopen(filename, "w"); in write_lines() 235 if (ofp == NULL) in write_lines() 246 putc(*p, ofp); in write_lines() 247 putc('\n', ofp); in write_lines() 257 fputs(p, ofp); in write_lines() 259 putc('\n', ofp); in write_lines() 262 fclose(ofp); in write_lines()
|
/openbsd/usr.bin/vi/ex/ |
H A D | ex_filter.c | 44 FILE *ifp, *ofp; in ex_filter() local 78 ofp = NULL; in ex_filter() 124 if ((ofp = fdopen(output[0], "r")) == NULL) { in ex_filter() 137 if (ofp != NULL) in ex_filter() 138 (void)fclose(ofp); in ex_filter() 208 if (ex_readfp(sp, "filter", ofp, fm, &nread, 1)) in ex_filter() 268 if (filter_ldisplay(sp, ofp)) in ex_filter() 299 if (ex_readfp(sp, "filter", ofp, tm, &nread, 1)) in ex_filter()
|
/openbsd/usr.sbin/config/ |
H A D | mkmakefile.c | 73 FILE *ifp, *ofp; in mkmakefile() local 87 if ((ofp = fopen("Makefile", "w")) == NULL) { in mkmakefile() 93 if (emitdefs(ofp) != 0) in mkmakefile() 99 if (fputs(line, ofp) == EOF) in mkmakefile() 118 if ((*fn)(ofp)) in mkmakefile() 122 if (emitreconfig(ofp) != 0) in mkmakefile() 129 if (fclose(ofp) == EOF) { in mkmakefile() 130 ofp = NULL; in mkmakefile() 139 if (ofp != NULL) in mkmakefile() 140 (void)fclose(ofp); in mkmakefile()
|
H A D | mkioconf.c | 109 emithdr(FILE *ofp) in emithdr() argument 115 if (fprintf(ofp, "\ in emithdr() 125 if (fwrite(buf, 1, n, ofp) != n) in emithdr() 136 #include <sys/device.h>\n", ofp) == EOF) in emithdr()
|
/openbsd/lib/libcurses/base/ |
H A D | lib_newterm.c | 176 FILE *ofp, in NCURSES_SP_NAME() 183 FILE *_ofp = ofp ? ofp : stdout; in NCURSES_SP_NAME() 191 (void *) ofp, in NCURSES_SP_NAME() 364 newterm(const char *name, FILE *ofp, FILE *ifp) in newterm() argument 371 rc = NCURSES_SP_NAME(newterm) (CURRENT_SCREEN_PRE, name, ofp, ifp); in newterm()
|
/openbsd/gnu/usr.bin/binutils/gdb/ |
H A D | objfiles.c | 667 struct objfile *ofp; in have_partial_symbols() local 669 ALL_OBJFILES (ofp) in have_partial_symbols() 671 if (ofp->psymtabs != NULL) in have_partial_symbols() 686 struct objfile *ofp; in have_full_symbols() local 688 ALL_OBJFILES (ofp) in have_full_symbols() 690 if (ofp->symtabs != NULL) in have_full_symbols() 727 struct objfile *ofp; in have_minimal_symbols() local 729 ALL_OBJFILES (ofp) in have_minimal_symbols() 731 if (ofp->minimal_symbol_count > 0) in have_minimal_symbols()
|
H A D | source.c | 226 struct objfile *ofp; in select_source_symtab() local 255 for (ofp = object_files; ofp != NULL; ofp = ofp->next) in select_source_symtab() 257 for (s = ofp->symtabs; s; s = s->next) in select_source_symtab() 272 for (ofp = object_files; ofp != NULL; ofp = ofp->next) in select_source_symtab() 274 for (ps = ofp->psymtabs; ps != NULL; ps = ps->next) in select_source_symtab()
|
/openbsd/usr.sbin/lpd/ |
H A D | frontend_lpr.c | 61 FILE *ofp; /* output file when receiving data */ member 227 conn->ofp = fdopen(fd, "w"); in lpr_on_recvjob_file() 228 if (conn->ofp == NULL) { in lpr_on_recvjob_file() 534 w = fwrite(data, 1, len, conn->ofp); in lpr_readfile() 545 fclose(conn->ofp); in lpr_readfile() 546 conn->ofp = NULL; in lpr_readfile() 627 if (conn->ofp) in lpr_close() 628 fclose(conn->ofp); in lpr_close()
|