| /freebsd-13.1/usr.bin/csplit/ |
| H A D | csplit.c | 104 FILE *ofp; in main() local 199 ofp = newfile(); in main() 204 if (fclose(ofp) != 0) in main() 329 rewind(ofp); in toomuch() 332 if (ferror(ofp)) in toomuch() 351 overfile = ofp; in toomuch() 364 FILE *ofp; in do_rexp() local 387 ofp = newfile(); in do_rexp() 425 fputs(p, ofp); in do_rexp() 445 FILE *ofp; in do_lineno() local [all …]
|
| /freebsd-13.1/usr.sbin/config/ |
| H A D | mkmakefile.c | 138 FILE *ifp, *ofp; in makefile() local 145 if (ofp == NULL) in makefile() 170 do_objs(ofp); in makefile() 174 do_rules(ofp); in makefile() 176 do_clean(ofp); in makefile() 310 FILE *ifp, *ofp; in makehints() local 316 if (ofp == NULL) in makehints() 341 fclose(ofp); in makehints() 351 FILE *ifp, *ofp; in makeenv() local 357 if (ofp == NULL) in makeenv() [all …]
|
| /freebsd-13.1/contrib/mandoc/ |
| H A D | dba_write.c | 40 static FILE *ofp; variable 46 ofp = fopen(fname, "w"); in dba_open() 47 return ofp == NULL ? -1 : 0; in dba_open() 53 return fclose(ofp) == EOF ? -1 : 0; in dba_close() 61 if ((pos = ftell(ofp)) == -1) in dba_tell() 73 if (fseek(ofp, pos, SEEK_SET) == -1) in dba_seek() 101 if (nmemb - fwrite(&out, sizeof(out[0]), nmemb, ofp)) in dba_skip() 109 if (putc(c, ofp) == EOF) in dba_char_write() 116 if (fputs(str, ofp) == EOF) in dba_str_write() 125 if (fwrite(&i, sizeof(i), 1, ofp) != 1) in dba_int_write()
|
| /freebsd-13.1/usr.bin/compress/ |
| H A D | compress.c | 202 FILE *ifp, *ofp; in compress() local 211 ifp = ofp = NULL; in compress() 239 if (fclose(ofp)) { in compress() 243 ofp = NULL; in compress() 278 err: if (ofp) { in compress() 281 (void)fclose(ofp); in compress() 292 FILE *ifp, *ofp; in decompress() local 301 ifp = ofp = NULL; in decompress() 325 if (ofp) in decompress() 343 if (fclose(ofp)) { in decompress() [all …]
|
| /freebsd-13.1/usr.bin/uniq/ |
| H A D | uniq.c | 101 FILE *ifp, *ofp; in main() local 159 ofp = stdout; in main() 167 ofp = file(argv[1], "w"); in main() 215 fputc('\n', ofp); in main() 217 show(ofp, prevline); in main() 233 fputc('\n', ofp); in main() 234 show(ofp, prevline); in main() 236 show(ofp, thisline); in main() 244 show(ofp, prevline); in main() 306 show(FILE *ofp, const char *str) in show() argument [all …]
|
| /freebsd-13.1/usr.sbin/ndiscvt/ |
| H A D | inf.c | 75 static FILE *ofp; variable 84 ofp = outfp; in inf_parse() 373 fprintf(ofp, "\n\n"); in dump_deviceids_pci() 466 fprintf(ofp, "\n\n"); in dump_deviceids_pcmcia() 559 fprintf(ofp, "\n\n"); in dump_deviceids_usb() 585 fprintf(ofp, "\n\t{ \"%s\" }, %d },", in dump_addreg() 611 fprintf(ofp, " [%s=%s]", reg->key, in dump_enumreg() 633 fprintf(ofp, " [optional]"); in dump_editreg() 652 fprintf(ofp, " [min=%s]", reg->value); in dump_dwordreg() 726 fprintf(ofp, "\n\t{ \"%s\",", keyname); in dump_paramreg() [all …]
|
| /freebsd-13.1/usr.bin/patch/ |
| H A D | patch.c | 356 if (ferror(ofp) || fclose(ofp)) { in main() 361 ofp = NULL; in main() 397 if (ofp) in main() 398 fclose(ofp); in main() 399 ofp = NULL; in main() 1001 ofp = fopen(name, "w"); in init_output() 1002 if (ofp == NULL) in init_output() 1049 rv = ferror(ofp) == 0 && fclose(ofp) == 0; in spew_output() 1050 ofp = NULL; in spew_output() 1067 putc(*s, ofp); in dump_line() [all …]
|
| /freebsd-13.1/contrib/nvi/ex/ |
| H A D | ex_filter.c | 41 FILE *ifp, *ofp; in ex_filter() local 77 ofp = NULL; in ex_filter() 89 if ((ofp = fdopen(output[0], "r")) == NULL) { in ex_filter() 102 if (ofp != NULL) in ex_filter() 103 (void)fclose(ofp); in ex_filter() 174 if (ex_readfp(sp, "filter", ofp, fm, &nread, 1)) in ex_filter() 242 if (filter_ldisplay(sp, ofp)) in ex_filter() 250 if (ex_readfp(sp, "filter", ofp, tm, &nread, 1)) in ex_filter()
|
| /freebsd-13.1/sys/contrib/openzfs/cmd/zstream/ |
| H A D | zstream_redup.c | 224 FILE *ofp = fdopen(infd, "r"); in zfs_redup_stream() local 225 long offset = ftell(ofp); in zfs_redup_stream() 261 (void) sfread(buf, sz, ofp); in zfs_redup_stream() 286 (void) sfread(buf, payload_size, ofp); in zfs_redup_stream() 295 (void) sfread(buf, payload_size, ofp); in zfs_redup_stream() 339 (void) sfread(buf, payload_size, ofp); in zfs_redup_stream() 352 (void) sfread(buf, payload_size, ofp); in zfs_redup_stream() 368 if (feof(ofp)) { in zfs_redup_stream() 372 if (ferror(ofp)) { in zfs_redup_stream() 401 offset = ftell(ofp); in zfs_redup_stream() [all …]
|
| /freebsd-13.1/cddl/contrib/opensolaris/common/ctf/ |
| H A D | ctf_types.c | 186 ctf_file_t *ofp = fp; in ctf_member_iter() local 202 return (ctf_set_errno(ofp, ECTF_NOTSOU)); in ctf_member_iter() 227 ctf_file_t *ofp = fp; in ctf_enum_iter() local 290 ctf_file_t *ofp = fp; in ctf_type_resolve() local 615 ctf_file_t *ofp = fp; in ctf_type_reference() local 647 ctf_file_t *ofp = fp; in ctf_type_pointer() local 674 ctf_file_t *ofp = fp; in ctf_type_encoding() local 795 ctf_file_t *ofp = fp; in _ctf_member_info() local 851 ctf_file_t *ofp = fp; in ctf_array_info() local 891 ctf_file_t *ofp = fp; in ctf_enum_name() local [all …]
|
| H A D | ctf_open.c | 958 ctf_dup(ctf_file_t *ofp) in ctf_dup() argument 972 bcopy(&ofp->ctf_data, &ctfsect, sizeof (ctf_sect_t)); in ctf_dup() 975 (void) ctf_set_errno(ofp, ECTF_MMAP); in ctf_dup() 985 if (ofp->ctf_symtab.cts_data != NULL) { in ctf_dup() 986 bcopy(&ofp->ctf_symtab, &symsect, sizeof (ctf_sect_t)); in ctf_dup() 989 (void) ctf_set_errno(ofp, ECTF_MMAP); in ctf_dup() 1001 if (ofp->ctf_strtab.cts_data != NULL) { in ctf_dup() 1002 bcopy(&ofp->ctf_strtab, &strsect, sizeof (ctf_sect_t)); in ctf_dup() 1005 (void) ctf_set_errno(ofp, ECTF_MMAP); in ctf_dup() 1019 (void) ctf_set_errno(ofp, err); in ctf_dup()
|
| H A D | ctf_create.c | 275 ctf_file_t ofp, *nfp; in ctf_update() local 553 bcopy(fp, &ofp, sizeof (ctf_file_t)); in ctf_update() 555 bcopy(&ofp, nfp, sizeof (ctf_file_t)); in ctf_update()
|
| /freebsd-13.1/contrib/ncurses/ncurses/tinfo/ |
| H A D | make_keys.c | 87 make_keys(FILE *ifp, FILE *ofp) in make_keys() argument 110 fprintf(ofp, "\t{ %4u, %-*.*s },\t/* %s */\n", in make_keys() 120 write_list(FILE *ofp, const char **list) in write_list() argument 123 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()
|
| /freebsd-13.1/contrib/ncurses/ncurses/base/ |
| H A D | lib_newterm.c | 168 FILE *ofp, in NCURSES_SP_NAME() 175 FILE *_ofp = ofp ? ofp : stdout; in NCURSES_SP_NAME() 183 (void *) ofp, in NCURSES_SP_NAME() 351 newterm(const char *name, FILE *ofp, FILE *ifp) in newterm() argument 356 rc = NCURSES_SP_NAME(newterm) (CURRENT_SCREEN_PRE, name, ofp, ifp); in newterm()
|
| /freebsd-13.1/usr.sbin/ppp/ |
| H A D | filter.c | 245 struct filterent *ofp) in filter_Parse() argument 259 ofp->f_action = A_NONE; in filter_Parse() 260 ofp++; in filter_Parse() 265 ofp += ruleno; in filter_Parse() 288 ofp->f_action = A_NONE; in filter_Parse() 405 *ofp = fe; in filter_Parse()
|
| /freebsd-13.1/sys/contrib/openzfs/lib/libzfs/ |
| H A D | libzfs_diff.c | 422 FILE *ofp; in differ() local 425 if ((ofp = fdopen(di->outputfd, "w")) == NULL) { in differ() 453 err = write_free_diffs(ofp, di, &dr); in differ() 456 err = write_inuse_diffs(ofp, di, &dr); in differ() 467 (void) fclose(ofp); in differ()
|
| /freebsd-13.1/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| H A D | dt_cc.c | 1850 FILE *ofp = tmpfile(); in dt_preproc() local 1869 if (argv == NULL || ofp == NULL) { in dt_preproc() 1895 (void) snprintf(opath, sizeof (opath), "/dev/fd/%d", fileno(ofp)); in dt_preproc() 1950 dup2(fileno(ofp), 1); in dt_preproc() 1982 (void) fflush(ofp); in dt_preproc() 1983 (void) fseek(ofp, 0, SEEK_SET); in dt_preproc() 1984 return (ofp); in dt_preproc() 1988 (void) fclose(ofp); in dt_preproc()
|
| H A D | dt_cg.c | 333 ctf_file_t *fp, *ofp; in dt_cg_field_set() local 347 if ((fp = dt_cg_membinfo(ofp = fp, type, in dt_cg_field_set() 349 yypcb->pcb_hdl->dt_ctferr = ctf_errno(ofp); in dt_cg_field_set()
|
| /freebsd-13.1/contrib/ntp/ntpq/ |
| H A D | ntpq-subs.c | 394 FILE * ofp, in xprintf() argument 403 rc = vfprintf((ofp ? ofp : stderr), fmt, va); in xprintf() 411 FILE * ofp in xputs() argument 414 return fputs(str, (ofp ? ofp : stderr)); in xputs() 420 FILE * ofp in xputc() argument 423 return fputc(ch, (ofp ? ofp : stderr)); in xputc()
|
| /freebsd-13.1/contrib/ncurses/ncurses/ |
| H A D | llib-ltinfo | 1271 FILE *ofp, 1277 FILE *ofp,
|
| H A D | llib-ltinfot | 1383 FILE *ofp, 1389 FILE *ofp,
|
| H A D | llib-ltinfow | 1304 FILE *ofp, 1310 FILE *ofp,
|
| H A D | llib-ltinfotw | 1416 FILE *ofp, 1422 FILE *ofp,
|
| H A D | llib-lncurses | 1619 FILE *ofp, 1626 FILE *ofp, 4010 FILE *ofp, 4016 FILE *ofp,
|