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

/freebsd-10.0-release/contrib/ncurses/ncurses/tinfo/
H A Dsetbuf.c101 _nc_set_buffer(FILE *ofp, bool buffered) argument
103 /* optional optimization hack -- do before any output to ofp */
112 fflush(ofp);
114 setmode(ofp, O_BINARY);
139 (void) setvbuf(ofp, buf_ptr, buf_len, buf_len ? _IOFBF : _IOLBF);
141 (void) setvbuf(ofp, buf_ptr, buf_len ? _IOFBF : _IOLBF, buf_len);
144 (void) setbuffer(ofp, buf_ptr, (int) buf_len);
H A Dmake_keys.c71 make_keys(FILE *ifp, FILE *ofp) argument
93 fprintf(ofp, "\t{ %4d, %-*.*s },\t/* %s */\n",
103 write_list(FILE *ofp, const char **list) argument
106 fprintf(ofp, "%s\n", *list++);
/freebsd-10.0-release/usr.bin/csplit/
H A Dcsplit.c102 FILE *ofp; local
197 ofp = newfile();
198 while ((p = getline()) != NULL && fputs(p, ofp) == 0)
201 printf("%jd\n", (intmax_t)ftello(ofp));
202 if (fclose(ofp) != 0)
296 toomuch(FILE *ofp, long n) argument
326 if (ftello(ofp) < (off_t)sizeof(buf))
327 rewind(ofp);
329 fseeko(ofp, -(off_t)sizeof(buf), SEEK_CUR);
330 if (ferror(ofp))
362 FILE *ofp; local
441 FILE *ofp; local
[all...]
/freebsd-10.0-release/usr.sbin/config/
H A Dmkmakefile.c133 FILE *ifp, *ofp; local
139 ofp = fopen(path("Makefile.new"), "w");
140 if (ofp == 0)
142 fprintf(ofp, "KERN_IDENT=%s\n", ident);
143 fprintf(ofp, "MACHINE=%s\n", machinename);
144 fprintf(ofp, "MACHINE_ARCH=%s\n", machinearch);
146 fprintf(ofp, "%s=%s", op->op_name, op->op_value);
148 fprintf(ofp, " %s", op->op_value);
149 fprintf(ofp, "\n");
152 fprintf(ofp, "DEBU
190 FILE *ifp, *ofp; local
249 FILE *ifp, *ofp; local
[all...]
/freebsd-10.0-release/usr.bin/compress/
H A Dcompress.c199 FILE *ifp, *ofp; local
208 ifp = ofp = NULL;
220 if ((ofp = zopen(out, "w", bits)) == NULL) {
225 if (fwrite(buf, 1, nr, ofp) != nr) {
236 if (fclose(ofp)) {
240 ofp = NULL;
275 err: if (ofp) {
278 (void)fclose(ofp);
289 FILE *ifp, *ofp; local
298 ifp = ofp
[all...]
/freebsd-10.0-release/usr.bin/uniq/
H A Duniq.c91 FILE *ifp, *ofp; local
145 ofp = stdout;
153 ofp = file(argv[1], "w");
156 if (cap_rights_limit(fileno(ofp), &rights) < 0 && errno != ENOSYS) {
165 if (cap_ioctls_limit(fileno(ofp), &cmd, 1) < 0 &&
187 show(ofp, prevline);
205 show(ofp, prevline);
214 show(ofp, prevline);
225 show(ofp, prevline);
287 show(FILE *ofp, cons argument
[all...]
/freebsd-10.0-release/usr.bin/patch/
H A Dpatch.c123 static FILE *ofp = NULL; /* output file pointer */ variable
311 if (ferror(ofp) || fclose(ofp)) {
316 ofp = NULL;
352 if (ofp)
353 fclose(ofp);
354 ofp = NULL;
844 fputs(not_defined, ofp);
847 fputs(else_defined, ofp);
850 fputs(pfetch(old), ofp); local
867 fputs(pfetch(new), ofp); local
886 fputs(pfetch(old), ofp); local
896 fputs(pfetch(new), ofp); local
922 fputs(pfetch(new), ofp); local
[all...]
/freebsd-10.0-release/usr.sbin/ndiscvt/
H A Dinf.c73 static FILE *ofp; variable
82 ofp = outfp;
220 fprintf(ofp, "\t\\\n\t{ \"%s\", \"%s\", ", manstr, devstr);
253 fprintf(ofp, "\t\\\n\t{ %s, %s, %s, ", vidstr, didstr, subsysstr);
278 fprintf(ofp, "\t\\\n\t{ %s, %s, ", vidstr, pidstr);
327 fprintf (ofp, "#define NDIS_PCI_DEV_TABLE");
348 fprintf (ofp, "\t\\\n\t\"%s\" },", dev->vals[0]);
369 fprintf(ofp, "\n\n");
420 fprintf (ofp, "#define NDIS_PCMCIA_DEV_TABLE");
441 fprintf (ofp, "\
[all...]
/freebsd-10.0-release/contrib/ncurses/ncurses/base/
H A Dlib_newterm.c122 newterm(NCURSES_CONST char *name, FILE *ofp, FILE *ifp) argument
131 T((T_CALLED("newterm(\"%s\",%p,%p)"), name, ofp, ifp));
140 if (setupterm(name, fileno(ofp), &errret) != ERR) {
156 ofp,
/freebsd-10.0-release/contrib/nvi/ex/
H A Dex_filter.c44 FILE *ifp, *ofp; local
80 ofp = NULL;
92 if ((ofp = fdopen(output[0], "r")) == NULL) {
105 if (ofp != NULL)
106 (void)fclose(ofp);
160 * appends to the MARK, and closes ofp.
177 if (ex_readfp(sp, "filter", ofp, fm, &nread, 1))
242 * pipe and display it. Filter_ldisplay closes ofp.
244 if (filter_ldisplay(sp, ofp))
250 * ofp
[all...]
/freebsd-10.0-release/cddl/contrib/opensolaris/common/ctf/
H A Dctf_types.c62 ctf_file_t *ofp = fp; local
78 return (ctf_set_errno(ofp, ECTF_NOTSOU));
113 ctf_file_t *ofp = fp; local
127 return (ctf_set_errno(ofp, ECTF_NOTENUM));
173 ctf_file_t *ofp = fp; local
185 return (ctf_set_errno(ofp, ECTF_CORRUPT));
450 ctf_file_t *ofp = fp; local
464 return (ctf_set_errno(ofp, ECTF_NOTREF));
478 ctf_file_t *ofp = fp; local
488 return (ctf_set_errno(ofp, ECTF_NOTYP
505 ctf_file_t *ofp = fp; local
629 ctf_file_t *ofp = fp; local
679 ctf_file_t *ofp = fp; local
707 ctf_file_t *ofp = fp; local
744 ctf_file_t *ofp = fp; local
[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-10.0-release/usr.sbin/ctm/ctm_rmail/
H A Dctm_rmail.c262 FILE *ifp, *ofp = 0; local
314 (ofp = fdopen(fd, "w")) == NULL)
340 fflush(ofp);
341 e = ferror(ofp);
342 fclose(ofp);
384 fclose(ofp);
395 fwrite(out_buf, sizeof(char), n, ofp);
403 fclose(ofp);
/freebsd-10.0-release/contrib/gdb/gdb/
H A Dobjfiles.c685 struct objfile *ofp;
687 ALL_OBJFILES (ofp)
689 if (ofp->psymtabs != NULL)
704 struct objfile *ofp;
706 ALL_OBJFILES (ofp)
708 if (ofp->symtabs != NULL)
745 struct objfile *ofp;
747 ALL_OBJFILES (ofp)
749 if (ofp->minimal_symbol_count > 0)
683 struct objfile *ofp; local
702 struct objfile *ofp; local
743 struct objfile *ofp; local
H A Dsource.c227 struct objfile *ofp;
256 for (ofp = object_files; ofp != NULL; ofp = ofp->next)
258 for (s = ofp->symtabs; s; s = s->next)
273 for (ofp = object_files; ofp != NULL; ofp = ofp
226 struct objfile *ofp; local
[all...]
/freebsd-10.0-release/usr.sbin/ppp/
H A Dfilter.c243 struct filterent *ofp)
257 ofp->f_action = A_NONE;
258 ofp++;
263 ofp += ruleno;
286 ofp->f_action = A_NONE;
403 *ofp = fe;
242 filter_Parse(struct ncp *ncp, int argc, char const *const *argv, struct filterent *ofp) argument
/freebsd-10.0-release/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_diff.c428 FILE *ofp; local
431 if ((ofp = fdopen(di->outputfd, "w")) == NULL) {
459 err = write_free_diffs(ofp, di, &dr);
462 err = write_inuse_diffs(ofp, di, &dr);
473 (void) fclose(ofp);
H A Dlibzfs_sendrecv.c225 FILE *ofp; local
259 ofp = fdopen(dda->inputfd, "r");
260 while (ssread(drr, sizeof (dmu_replay_record_t), ofp) != 0) {
285 (void) ssread(buf, sz, ofp);
315 ofp);
329 (void) ssread(buf, drrs->drr_length, ofp);
348 (void) ssread(buf, drrw->drr_length, ofp);
440 (void) fclose(ofp);
/freebsd-10.0-release/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_cc.c1868 FILE *ofp = tmpfile(); local
1887 if (argv == NULL || ofp == NULL) {
1913 (void) snprintf(opath, sizeof (opath), "/dev/fd/%d", fileno(ofp));
1968 dup2(fileno(ofp), 1);
2000 (void) fflush(ofp);
2001 (void) fseek(ofp, 0, SEEK_SET);
2002 return (ofp);
2006 (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.c319 dt_type_promote(dt_node_t *lp, dt_node_t *rp, ctf_file_t **ofp, ctf_id_t *otype) argument
380 *ofp = lfp;
385 *ofp = rfp;
/freebsd-10.0-release/contrib/ncurses/ncurses/
H A Dllib-lncurses1357 FILE *ofp,
3058 FILE *ofp,
H A Dllib-lncursest1361 FILE *ofp,
3149 FILE *ofp,
H A Dllib-lncursesw1865 FILE *ofp,
3815 FILE *ofp,

Completed in 311 milliseconds