| /freebsd-14.2/usr.bin/csplit/ |
| H A D | csplit.c | 102 FILE *ofp; in main() local 197 ofp = newfile(); in main() 202 if (fclose(ofp) != 0) in main() 327 rewind(ofp); in toomuch() 330 if (ferror(ofp)) in toomuch() 349 overfile = ofp; in toomuch() 362 FILE *ofp; in do_rexp() local 385 ofp = newfile(); in do_rexp() 423 fputs(p, ofp); in do_rexp() 443 FILE *ofp; in do_lineno() local [all …]
|
| /freebsd-14.2/usr.sbin/config/ |
| H A D | mkmakefile.cc | 141 FILE *ifp, *ofp; in makefile() local 148 if (ofp == NULL) in makefile() 171 do_objs(ofp); in makefile() 175 do_rules(ofp); in makefile() 177 do_clean(ofp); in makefile() 304 FILE *ifp, *ofp; in makehints() local 310 if (ofp == NULL) in makehints() 336 fclose(ofp); in makehints() 346 FILE *ifp, *ofp; in makeenv() local 352 if (ofp == NULL) in makeenv() [all …]
|
| /freebsd-14.2/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-14.2/usr.bin/uniq/ |
| H A D | uniq.c | 95 FILE *ifp, *ofp; in main() local 156 ofp = stdout; in main() 196 show(ofp, prevline); in main() 215 fputc('\n', ofp); in main() 217 show(ofp, thisline); in main() 221 show(ofp, prevline); in main() 237 fputc('\n', ofp); in main() 238 show(ofp, prevline); in main() 240 show(ofp, thisline); in main() 255 show(ofp, prevline); in main() [all …]
|
| /freebsd-14.2/usr.bin/compress/ |
| H A D | compress.c | 200 FILE *ifp, *ofp; in compress() local 209 ifp = ofp = NULL; in compress() 237 if (fclose(ofp)) { in compress() 241 ofp = NULL; in compress() 276 err: if (ofp) { in compress() 279 (void)fclose(ofp); in compress() 290 FILE *ifp, *ofp; in decompress() local 299 ifp = ofp = NULL; in decompress() 323 if (ofp) in decompress() 341 if (fclose(ofp)) { in decompress() [all …]
|
| /freebsd-14.2/usr.bin/patch/ |
| H A D | patch.c | 355 if (ferror(ofp) || fclose(ofp)) { in main() 360 ofp = NULL; in main() 396 if (ofp) in main() 397 fclose(ofp); in main() 398 ofp = NULL; in main() 1004 ofp = fopen(name, "w"); in init_output() 1005 if (ofp == NULL) in init_output() 1052 rv = ferror(ofp) == 0 && fclose(ofp) == 0; in spew_output() 1053 ofp = NULL; in spew_output() 1070 putc(*s, ofp); in dump_line() [all …]
|
| /freebsd-14.2/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-14.2/sys/contrib/openzfs/cmd/zstream/ |
| H A D | zstream_redup.c | 225 FILE *ofp = fdopen(infd, "r"); in zfs_redup_stream() local 226 long offset = ftell(ofp); in zfs_redup_stream() 269 (void) sfread(buf, sz, ofp); in zfs_redup_stream() 302 (void) sfread(buf, payload_size, ofp); in zfs_redup_stream() 312 (void) sfread(buf, payload_size, ofp); in zfs_redup_stream() 358 (void) sfread(buf, payload_size, ofp); in zfs_redup_stream() 372 (void) sfread(buf, payload_size, ofp); in zfs_redup_stream() 389 if (feof(ofp)) { in zfs_redup_stream() 393 if (ferror(ofp)) { in zfs_redup_stream() 422 offset = ftell(ofp); in zfs_redup_stream() [all …]
|
| /freebsd-14.2/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-14.2/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-14.2/contrib/ncurses/ncurses/base/ |
| H A D | lib_newterm.c | 174 FILE *ofp, in NCURSES_SP_NAME() 181 FILE *_ofp = ofp ? ofp : stdout; in NCURSES_SP_NAME() 189 (void *) ofp, in NCURSES_SP_NAME() 362 newterm(const char *name, FILE *ofp, FILE *ifp) in newterm() argument 369 rc = NCURSES_SP_NAME(newterm) (CURRENT_SCREEN_PRE, name, ofp, ifp); in newterm()
|
| /freebsd-14.2/usr.sbin/ppp/ |
| H A D | filter.c | 243 struct filterent *ofp) in filter_Parse() argument 257 ofp->f_action = A_NONE; in filter_Parse() 258 ofp++; in filter_Parse() 263 ofp += ruleno; in filter_Parse() 286 ofp->f_action = A_NONE; in filter_Parse() 403 *ofp = fe; in filter_Parse()
|
| /freebsd-14.2/sys/compat/linux/ |
| H A D | linux_socket.c | 2398 is_sendfile(struct file *fp, struct file *ofp) in is_sendfile() argument 2413 if (ofp->f_type != DTYPE_SOCKET) in is_sendfile() 2415 so = ofp->f_data; in is_sendfile() 2441 struct file *ofp; in sendfile_fallback() local 2463 if ((error = fo_seek(ofp, 0, SEEK_CUR, td)) != 0) in sendfile_fallback() 2499 error = fo_write(ofp, &auio, ofp->f_cred, flags, td); in sendfile_fallback() 2516 error = fo_seek(ofp, out_offset, SEEK_SET, td); in sendfile_fallback() 2519 fdrop(ofp, td); in sendfile_fallback() 2554 struct file *fp, *ofp; in linux_sendfile_common() local 2581 if (is_sendfile(fp, ofp)) in linux_sendfile_common() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libzfs/ |
| H A D | libzfs_diff.c | 443 FILE *ofp; in differ() local 446 if ((ofp = fdopen(di->outputfd, "w")) == NULL) { in differ() 474 err = write_free_diffs(ofp, di, &dr); in differ() 477 err = write_inuse_diffs(ofp, di, &dr); in differ() 488 (void) fclose(ofp); in differ()
|
| /freebsd-14.2/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_subr.c | 1016 dtrace_set_outfp(const FILE *ofp) in dtrace_set_outfp() argument 1019 xo_set_file((FILE *)ofp); in dtrace_set_outfp()
|
| 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-14.2/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-14.2/contrib/ncurses/ncurses/ |
| H A D | llib-ltinfo | 1368 FILE *ofp, 1374 FILE *ofp,
|
| H A D | llib-ltinfow | 1401 FILE *ofp, 1407 FILE *ofp,
|
| H A D | llib-ltinfotw | 1513 FILE *ofp, 1519 FILE *ofp,
|
| H A D | llib-ltinfot | 1480 FILE *ofp, 1486 FILE *ofp,
|