Searched refs:ofp (Results 1 - 22 of 22) sorted by relevance

/freebsd-13-stable/contrib/mandoc/
H A Ddba_write.c40 static FILE *ofp; variable
46 ofp = fopen(fname, "w");
47 return ofp == NULL ? -1 : 0;
53 return fclose(ofp) == EOF ? -1 : 0;
61 if ((pos = ftell(ofp)) == -1)
73 if (fseek(ofp, pos, SEEK_SET) == -1)
101 if (nmemb - fwrite(&out, sizeof(out[0]), nmemb, ofp))
109 if (putc(c, ofp) == EOF)
116 if (fputs(str, ofp) == EOF)
125 if (fwrite(&i, sizeof(i), 1, ofp) !
[all...]
/freebsd-13-stable/usr.bin/csplit/
H A Dcsplit.c104 FILE *ofp; local
199 ofp = newfile();
200 while ((p = get_line()) != NULL && fputs(p, ofp) != EOF)
203 printf("%jd\n", (intmax_t)ftello(ofp));
204 if (fclose(ofp) != 0)
298 toomuch(FILE *ofp, long n) argument
328 if (ftello(ofp) < (off_t)sizeof(buf))
329 rewind(ofp);
331 fseeko(ofp, -(off_t)sizeof(buf), SEEK_CUR);
332 if (ferror(ofp))
364 FILE *ofp; local
445 FILE *ofp; local
[all...]
/freebsd-13-stable/usr.sbin/config/
H A Dmkmakefile.c68 static void process_into_file(char *line, FILE *ofp);
70 static void dump_nvlist(nvlist_t *nvl, FILE *ofp);
138 FILE *ifp, *ofp; local
144 ofp = fopen(path("Makefile.new"), "w");
145 if (ofp == NULL)
147 fprintf(ofp, "KERN_IDENT=%s\n", ident);
148 fprintf(ofp, "MACHINE=%s\n", machinename);
149 fprintf(ofp, "MACHINE_ARCH=%s\n", machinearch);
151 fprintf(ofp, "%s=%s", op->op_name, op->op_value);
153 fprintf(ofp, "
263 process_into_file(char *line, FILE *ofp) argument
286 dump_nvlist(nvlist_t *nvl, FILE *ofp) argument
310 FILE *ifp, *ofp; local
351 FILE *ifp, *ofp; local
[all...]
/freebsd-13-stable/usr.bin/uniq/
H A Duniq.c101 FILE *ifp, *ofp; local
159 ofp = stdout;
167 ofp = file(argv[1], "w");
170 if (caph_rights_limit(fileno(ofp), &rights) < 0) {
179 if (caph_ioctls_limit(fileno(ofp), &cmd, 1) < 0) {
215 fputc('\n', ofp);
217 show(ofp, prevline);
233 fputc('\n', ofp);
234 show(ofp, prevline);
236 show(ofp, thislin
306 show(FILE *ofp, const char *str) argument
[all...]
/freebsd-13-stable/usr.bin/compress/
H A Dcompress.c202 FILE *ifp, *ofp; local
211 ifp = ofp = NULL;
223 if ((ofp = zopen(out, "w", bits)) == NULL) {
228 if (fwrite(buf, 1, nr, ofp) != nr) {
239 if (fclose(ofp)) {
243 ofp = NULL;
278 err: if (ofp) {
281 (void)fclose(ofp);
292 FILE *ifp, *ofp; local
301 ifp = ofp
[all...]
/freebsd-13-stable/contrib/ncurses/ncurses/tinfo/
H A Dmake_keys.c87 make_keys(FILE *ifp, FILE *ofp) argument
110 fprintf(ofp, "\t{ %4u, %-*.*s },\t/* %s */\n",
120 write_list(FILE *ofp, const char **list) argument
123 fprintf(ofp, "%s\n", *list++);
H A Dobsolete.c46 NCURSES_SP_NAME(_nc_set_buffer) (NCURSES_SP_DCLx FILE *ofp, int buffered) argument
51 (void) ofp;
57 _nc_set_buffer(FILE *ofp, int buffered) argument
59 NCURSES_SP_NAME(_nc_set_buffer) (CURRENT_SCREEN, ofp, buffered);
/freebsd-13-stable/usr.sbin/ndiscvt/
H A Dinf.c75 static FILE *ofp; variable
84 ofp = outfp;
224 fprintf(ofp, "\t\\\n\t{ \"%s\", \"%s\", ", manstr, devstr);
257 fprintf(ofp, "\t\\\n\t{ %s, %s, %s, ", vidstr, didstr, subsysstr);
282 fprintf(ofp, "\t\\\n\t{ %s, %s, ", vidstr, pidstr);
331 fprintf (ofp, "#define NDIS_PCI_DEV_TABLE");
352 fprintf (ofp, "\t\\\n\t\"%s\" },", dev->vals[0]);
373 fprintf(ofp, "\n\n");
424 fprintf (ofp, "#define NDIS_PCMCIA_DEV_TABLE");
445 fprintf (ofp, "\
[all...]
/freebsd-13-stable/contrib/nvi/ex/
H A Dex_filter.c41 FILE *ifp, *ofp; local
77 ofp = NULL;
89 if ((ofp = fdopen(output[0], "r")) == NULL) {
102 if (ofp != NULL)
103 (void)fclose(ofp);
157 * appends to the MARK, and closes ofp.
174 if (ex_readfp(sp, "filter", ofp, fm, &nread, 1))
240 * pipe and display it. Filter_ldisplay closes ofp.
242 if (filter_ldisplay(sp, ofp))
248 * ofp
[all...]
/freebsd-13-stable/usr.bin/patch/
H A Dpatch.c128 static FILE *ofp = NULL; /* output file pointer */ variable
356 if (ferror(ofp) || fclose(ofp)) {
361 ofp = NULL;
397 if (ofp)
398 fclose(ofp);
399 ofp = NULL;
908 fputs(not_defined, ofp);
911 fputs(else_defined, ofp);
914 fputs(pfetch(old), ofp); local
931 fputs(pfetch(new), ofp); local
950 fputs(pfetch(old), ofp); local
960 fputs(pfetch(new), ofp); local
986 fputs(pfetch(new), ofp); local
[all...]
/freebsd-13-stable/sys/contrib/openzfs/cmd/zstream/
H A Dzstream_redup.c224 FILE *ofp = fdopen(infd, "r"); local
225 long offset = ftell(ofp);
226 while (sfread(drr, sizeof (*drr), ofp) != 0) {
261 (void) sfread(buf, sz, ofp);
286 (void) sfread(buf, payload_size, ofp);
295 (void) sfread(buf, payload_size, ofp);
339 (void) sfread(buf, payload_size, ofp);
352 (void) sfread(buf, payload_size, ofp);
368 if (feof(ofp)) {
372 if (ferror(ofp)) {
[all...]
/freebsd-13-stable/cddl/contrib/opensolaris/common/ctf/
H A Dctf_types.c60 ctf_file_t *ofp = fp; local
76 return (ctf_set_errno(ofp, ECTF_NOTSOU));
111 ctf_file_t *ofp = fp; local
125 return (ctf_set_errno(ofp, ECTF_NOTENUM));
171 ctf_file_t *ofp = fp; local
183 return (ctf_set_errno(ofp, ECTF_CORRUPT));
475 ctf_file_t *ofp = fp; local
489 return (ctf_set_errno(ofp, ECTF_NOTREF));
503 ctf_file_t *ofp = fp; local
513 return (ctf_set_errno(ofp, ECTF_NOTYP
530 ctf_file_t *ofp = fp; local
651 ctf_file_t *ofp = fp; local
721 ctf_file_t *ofp = fp; local
749 ctf_file_t *ofp = fp; local
786 ctf_file_t *ofp = fp; local
[all...]
H A Dctf_open.c798 ctf_dup(ctf_file_t *ofp) argument
812 bcopy(&ofp->ctf_data, &ctfsect, sizeof (ctf_sect_t));
815 (void) ctf_set_errno(ofp, ECTF_MMAP);
825 if (ofp->ctf_symtab.cts_data != NULL) {
826 bcopy(&ofp->ctf_symtab, &symsect, sizeof (ctf_sect_t));
829 (void) ctf_set_errno(ofp, ECTF_MMAP);
841 if (ofp->ctf_strtab.cts_data != NULL) {
842 bcopy(&ofp->ctf_strtab, &strsect, sizeof (ctf_sect_t));
845 (void) ctf_set_errno(ofp, ECTF_MMAP);
859 (void) ctf_set_errno(ofp, er
[all...]
H A Dctf_create.c238 ctf_file_t ofp, *nfp; local
449 bcopy(fp, &ofp, sizeof (ctf_file_t));
451 bcopy(&ofp, nfp, sizeof (ctf_file_t));
/freebsd-13-stable/contrib/ncurses/ncurses/base/
H A Dlib_newterm.c168 FILE *ofp,
175 FILE *_ofp = ofp ? ofp : stdout;
183 (void *) ofp,
351 newterm(const char *name, FILE *ofp, FILE *ifp) argument
356 rc = NCURSES_SP_NAME(newterm) (CURRENT_SCREEN_PRE, name, ofp, ifp);
166 newterm(NCURSES_SP_DCLx const char *name, FILE *ofp, FILE *ifp) argument
/freebsd-13-stable/usr.sbin/ppp/
H A Dfilter.c245 struct filterent *ofp)
259 ofp->f_action = A_NONE;
260 ofp++;
265 ofp += ruleno;
288 ofp->f_action = A_NONE;
405 *ofp = fe;
244 filter_Parse(struct ncp *ncp, int argc, char const *const *argv, struct filterent *ofp) argument
/freebsd-13-stable/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_diff.c422 FILE *ofp; local
425 if ((ofp = fdopen(di->outputfd, "w")) == NULL) {
453 err = write_free_diffs(ofp, di, &dr);
456 err = write_inuse_diffs(ofp, di, &dr);
467 (void) fclose(ofp);
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_cc.c1846 FILE *ofp = tmpfile(); local
1865 if (argv == NULL || ofp == NULL) {
1891 (void) snprintf(opath, sizeof (opath), "/dev/fd/%d", fileno(ofp));
1946 dup2(fileno(ofp), 1);
1978 (void) fflush(ofp);
1979 (void) fseek(ofp, 0, SEEK_SET);
1980 return (ofp);
1984 (void) fclose(ofp);
H A Ddt_cg.c333 ctf_file_t *fp, *ofp; local
347 if ((fp = dt_cg_membinfo(ofp = fp, type,
349 yypcb->pcb_hdl->dt_ctferr = ctf_errno(ofp);
H A Ddt_parser.c336 dt_type_promote(dt_node_t *lp, dt_node_t *rp, ctf_file_t **ofp, ctf_id_t *otype) argument
397 *ofp = lfp;
402 *ofp = rfp;
/freebsd-13-stable/contrib/ntp/ntpq/
H A Dntpq-subs.c394 FILE * ofp,
403 rc = vfprintf((ofp ? ofp : stderr), fmt, va);
411 FILE * ofp
414 return fputs(str, (ofp ? ofp : stderr));
420 FILE * ofp
423 return fputc(ch, (ofp ? ofp : stderr));
393 xprintf( FILE * ofp, char const * fmt, ... ) argument
H A Dntpq.c3202 FILE * ofp = (debug > 0) ? stdout : stderr; local
3207 fprintf(ofp, "nextvar: %s: '%.*s'\n",

Completed in 309 milliseconds