Home
last modified time | relevance | path

Searched refs:ofp (Results 1 – 25 of 34) sorted by relevance

12

/freebsd-12.1/usr.bin/csplit/
H A Dcsplit.c104 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-12.1/usr.sbin/config/
H A Dmkmakefile.c138 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-12.1/contrib/mandoc/
H A Ddba_write.c40 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-12.1/usr.bin/compress/
H A Dcompress.c202 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-12.1/usr.sbin/ndiscvt/
H A Dinf.c75 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-12.1/usr.bin/patch/
H A Dpatch.c314 if (ferror(ofp) || fclose(ofp)) { in main()
319 ofp = NULL; in main()
355 if (ofp) in main()
356 fclose(ofp); in main()
357 ofp = NULL; in main()
946 ofp = fopen(name, "w"); in init_output()
947 if (ofp == NULL) in init_output()
994 rv = ferror(ofp) == 0 && fclose(ofp) == 0; in spew_output()
995 ofp = NULL; in spew_output()
1012 putc(*s, ofp); in dump_line()
[all …]
/freebsd-12.1/cddl/contrib/opensolaris/common/ctf/
H A Dctf_types.c60 ctf_file_t *ofp = fp; in ctf_member_iter() local
76 return (ctf_set_errno(ofp, ECTF_NOTSOU)); in ctf_member_iter()
111 ctf_file_t *ofp = fp; in ctf_enum_iter() local
171 ctf_file_t *ofp = fp; in ctf_type_resolve() local
475 ctf_file_t *ofp = fp; in ctf_type_reference() local
503 ctf_file_t *ofp = fp; in ctf_type_pointer() local
530 ctf_file_t *ofp = fp; in ctf_type_encoding() local
651 ctf_file_t *ofp = fp; in _ctf_member_info() local
721 ctf_file_t *ofp = fp; in ctf_array_info() local
749 ctf_file_t *ofp = fp; in ctf_enum_name() local
[all …]
H A Dctf_open.c798 ctf_dup(ctf_file_t *ofp) in ctf_dup() argument
812 bcopy(&ofp->ctf_data, &ctfsect, sizeof (ctf_sect_t)); in ctf_dup()
815 (void) ctf_set_errno(ofp, ECTF_MMAP); in ctf_dup()
825 if (ofp->ctf_symtab.cts_data != NULL) { in ctf_dup()
826 bcopy(&ofp->ctf_symtab, &symsect, sizeof (ctf_sect_t)); in ctf_dup()
829 (void) ctf_set_errno(ofp, ECTF_MMAP); in ctf_dup()
841 if (ofp->ctf_strtab.cts_data != NULL) { in ctf_dup()
842 bcopy(&ofp->ctf_strtab, &strsect, sizeof (ctf_sect_t)); in ctf_dup()
845 (void) ctf_set_errno(ofp, ECTF_MMAP); in ctf_dup()
859 (void) ctf_set_errno(ofp, err); in ctf_dup()
H A Dctf_create.c238 ctf_file_t ofp, *nfp; in ctf_update() local
449 bcopy(fp, &ofp, sizeof (ctf_file_t)); in ctf_update()
451 bcopy(&ofp, nfp, sizeof (ctf_file_t)); in ctf_update()
/freebsd-12.1/usr.bin/uniq/
H A Duniq.c94 FILE *ifp, *ofp; in main() local
142 ofp = stdout; in main()
150 ofp = file(argv[1], "w"); in main()
153 if (cap_rights_limit(fileno(ofp), &rights) < 0 && errno != ENOSYS) { in main()
162 if (cap_ioctls_limit(fileno(ofp), &cmd, 1) < 0 && in main()
198 show(ofp, prevline); in main()
215 show(ofp, prevline); in main()
277 show(FILE *ofp, const char *str) in show() argument
283 (void)fprintf(ofp, "%4d %s", repeats + 1, str); in show()
285 (void)fprintf(ofp, "%s", str); in show()
/freebsd-12.1/contrib/nvi/ex/
H A Dex_filter.c44 FILE *ifp, *ofp; in ex_filter() local
80 ofp = NULL; in ex_filter()
92 if ((ofp = fdopen(output[0], "r")) == NULL) { in ex_filter()
105 if (ofp != NULL) in ex_filter()
106 (void)fclose(ofp); in ex_filter()
177 if (ex_readfp(sp, "filter", ofp, fm, &nread, 1)) in ex_filter()
244 if (filter_ldisplay(sp, ofp)) in ex_filter()
252 if (ex_readfp(sp, "filter", ofp, tm, &nread, 1)) in ex_filter()
/freebsd-12.1/contrib/ncurses/ncurses/tinfo/
H A Dobsolete.c45 NCURSES_SP_NAME(_nc_set_buffer) (NCURSES_SP_DCLx FILE *ofp, int buffered) in NCURSES_EXPORT()
50 (void) ofp; in NCURSES_EXPORT()
56 _nc_set_buffer(FILE *ofp, int buffered) in _nc_set_buffer() argument
58 NCURSES_SP_NAME(_nc_set_buffer) (CURRENT_SCREEN, ofp, buffered); in _nc_set_buffer()
H A Dmake_keys.c71 make_keys(FILE *ifp, FILE *ofp) in make_keys() argument
93 fprintf(ofp, "\t{ %4u, %-*.*s },\t/* %s */\n", in make_keys()
103 write_list(FILE *ofp, const char **list) in write_list() argument
106 fprintf(ofp, "%s\n", *list++); in write_list()
/freebsd-12.1/contrib/ncurses/ncurses/base/
H A Dlib_newterm.c166 FILE *ofp, in NCURSES_SP_NAME()
174 FILE *_ofp = ofp ? ofp : stdout; in NCURSES_SP_NAME()
185 (void *) ofp, in NCURSES_SP_NAME()
347 newterm(NCURSES_CONST char *name, FILE *ofp, FILE *ifp) in newterm() argument
349 return NCURSES_SP_NAME(newterm) (CURRENT_SCREEN_PRE, name, ofp, ifp); in newterm()
/freebsd-12.1/usr.sbin/ctm/ctm_rmail/
H A Dctm_rmail.c262 FILE *ifp, *ofp = 0; in read_piece() local
314 (ofp = fdopen(fd, "w")) == NULL) in read_piece()
340 fflush(ofp); in read_piece()
341 e = ferror(ofp); in read_piece()
342 fclose(ofp); in read_piece()
384 fclose(ofp); in read_piece()
395 fwrite(out_buf, sizeof(char), n, ofp); in read_piece()
403 fclose(ofp); in read_piece()
/freebsd-12.1/contrib/gdb/gdb/
H A Dobjfiles.c683 struct objfile *ofp; in have_partial_symbols() local
685 ALL_OBJFILES (ofp) in have_partial_symbols()
687 if (ofp->psymtabs != NULL) in have_partial_symbols()
702 struct objfile *ofp; in have_full_symbols() local
704 ALL_OBJFILES (ofp) in have_full_symbols()
706 if (ofp->symtabs != NULL) in have_full_symbols()
743 struct objfile *ofp; in have_minimal_symbols() local
745 ALL_OBJFILES (ofp) in have_minimal_symbols()
747 if (ofp->minimal_symbol_count > 0) in have_minimal_symbols()
H A Dsource.c226 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()
/freebsd-12.1/usr.sbin/ppp/
H A Dfilter.c245 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-12.1/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_diff.c425 FILE *ofp; in differ() local
428 if ((ofp = fdopen(di->outputfd, "w")) == NULL) { in differ()
456 err = write_free_diffs(ofp, di, &dr); in differ()
459 err = write_inuse_diffs(ofp, di, &dr); in differ()
470 (void) fclose(ofp); in differ()
H A Dlibzfs_sendrecv.c247 FILE *ofp; in cksummer() local
275 ofp = fdopen(dda->inputfd, "r"); in cksummer()
276 while (ssread(drr, sizeof (*drr), ofp) != 0) { in cksummer()
310 (void) ssread(buf, sz, ofp); in cksummer()
337 ofp); in cksummer()
349 (void) ssread(buf, drrs->drr_length, ofp); in cksummer()
371 (void) ssread(buf, payload_size, ofp); in cksummer()
449 P2ROUNDUP((uint64_t)drrwe->drr_psize, 8), ofp); in cksummer()
476 (void) fclose(ofp); in cksummer()
/freebsd-12.1/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_cc.c1846 FILE *ofp = tmpfile(); in dt_preproc() local
1865 if (argv == NULL || ofp == NULL) { in dt_preproc()
1891 (void) snprintf(opath, sizeof (opath), "/dev/fd/%d", fileno(ofp)); in dt_preproc()
1946 dup2(fileno(ofp), 1); in dt_preproc()
1978 (void) fflush(ofp); in dt_preproc()
1979 (void) fseek(ofp, 0, SEEK_SET); in dt_preproc()
1980 return (ofp); in dt_preproc()
1984 (void) fclose(ofp); in dt_preproc()
H A Ddt_cg.c333 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-12.1/contrib/ntp/ntpq/
H A Dntpq-subs.c394 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-12.1/contrib/ncurses/ncurses/
H A Dllib-ltinfow1294 FILE *ofp,
1300 FILE *ofp,
H A Dllib-ltinfo1283 FILE *ofp,
1289 FILE *ofp,

12