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

/freebsd-current/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-current/usr.bin/csplit/
H A Dcsplit.c101 FILE *ofp; local
196 ofp = newfile();
197 while ((p = get_line()) != NULL && fputs(p, ofp) != EOF)
200 printf("%jd\n", (intmax_t)ftello(ofp));
201 if (fclose(ofp) != 0)
295 toomuch(FILE *ofp, long n) argument
325 if (ftello(ofp) < (off_t)sizeof(buf))
326 rewind(ofp);
328 fseeko(ofp, -(off_t)sizeof(buf), SEEK_CUR);
329 if (ferror(ofp))
361 FILE *ofp; local
442 FILE *ofp; local
[all...]
/freebsd-current/usr.sbin/config/
H A Dmkmakefile.cc64 static void process_into_file(char *line, FILE *ofp);
66 static void dump_map(env_map &emap, FILE *ofp);
135 FILE *ifp, *ofp; local
141 ofp = fopen(path("Makefile.new"), "w");
142 if (ofp == NULL)
144 fprintf(ofp, "KERN_IDENT=%s\n", ident);
145 fprintf(ofp, "MACHINE=%s\n", machinename);
146 fprintf(ofp, "MACHINE_ARCH=%s\n", machinearch);
148 fprintf(ofp, "%s=%s", op->op_name, op->op_value);
150 fprintf(ofp, "
258 process_into_file(char *line, FILE *ofp) argument
283 dump_map(env_map &emap, FILE *ofp) argument
298 FILE *ifp, *ofp; local
340 FILE *ifp, *ofp; local
[all...]
/freebsd-current/usr.bin/uniq/
H A Duniq.c83 FILE *ifp, *ofp; local
144 ofp = stdout;
153 ofp = file(ofn = argv[1], "w");
156 if (caph_rights_limit(fileno(ofp), &rights) < 0) {
165 if (caph_ioctls_limit(fileno(ofp), &cmd, 1) < 0) {
184 show(ofp, prevline);
203 fputc('\n', ofp);
205 show(ofp, thisline);
209 show(ofp, prevline);
225 fputc('\n', ofp);
307 show(FILE *ofp, const char *str) argument
[all...]
/freebsd-current/usr.bin/compress/
H A Dcompress.c187 FILE *ifp, *ofp; local
196 ifp = ofp = NULL;
208 if ((ofp = zopen(out, "w", bits)) == NULL) {
213 if (fwrite(buf, 1, nr, ofp) != nr) {
224 if (fclose(ofp)) {
228 ofp = NULL;
263 err: if (ofp) {
266 (void)fclose(ofp);
277 FILE *ifp, *ofp; local
286 ifp = ofp
[all...]
/freebsd-current/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-current/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-current/usr.bin/patch/
H A Dpatch.c127 static FILE *ofp = NULL; /* output file pointer */ variable
355 if (ferror(ofp) || fclose(ofp)) {
360 ofp = NULL;
396 if (ofp)
397 fclose(ofp);
398 ofp = NULL;
913 fputs(not_defined, ofp);
916 fputs(else_defined, ofp);
919 fputs(pfetch(old), ofp); local
936 fputs(pfetch(new), ofp); local
955 fputs(pfetch(old), ofp); local
965 fputs(pfetch(new), ofp); local
991 fputs(pfetch(new), ofp); local
[all...]
/freebsd-current/sys/contrib/openzfs/cmd/zstream/
H A Dzstream_redup.c223 FILE *ofp = fdopen(infd, "r"); local
224 long offset = ftell(ofp);
227 while (sfread(drr, sizeof (*drr), ofp) != 0) {
267 (void) sfread(buf, sz, ofp);
300 (void) sfread(buf, payload_size, ofp);
310 (void) sfread(buf, payload_size, ofp);
356 (void) sfread(buf, payload_size, ofp);
370 (void) sfread(buf, payload_size, ofp);
387 if (feof(ofp)) {
391 if (ferror(ofp)) {
[all...]
/freebsd-current/cddl/contrib/opensolaris/common/ctf/
H A Dctf_types.c186 ctf_file_t *ofp = fp; local
202 return (ctf_set_errno(ofp, ECTF_NOTSOU));
227 ctf_file_t *ofp = fp; local
242 return (ctf_set_errno(ofp, ECTF_NOTENUM));
290 ctf_file_t *ofp = fp; local
304 return (ctf_set_errno(ofp, ECTF_CORRUPT));
615 ctf_file_t *ofp = fp; local
633 return (ctf_set_errno(ofp, ECTF_NOTREF));
647 ctf_file_t *ofp = fp; local
657 return (ctf_set_errno(ofp, ECTF_NOTYP
674 ctf_file_t *ofp = fp; local
795 ctf_file_t *ofp = fp; local
851 ctf_file_t *ofp = fp; local
891 ctf_file_t *ofp = fp; local
930 ctf_file_t *ofp = fp; local
[all...]
H A Dctf_open.c958 ctf_dup(ctf_file_t *ofp) argument
972 bcopy(&ofp->ctf_data, &ctfsect, sizeof (ctf_sect_t));
975 (void) ctf_set_errno(ofp, ECTF_MMAP);
985 if (ofp->ctf_symtab.cts_data != NULL) {
986 bcopy(&ofp->ctf_symtab, &symsect, sizeof (ctf_sect_t));
989 (void) ctf_set_errno(ofp, ECTF_MMAP);
1001 if (ofp->ctf_strtab.cts_data != NULL) {
1002 bcopy(&ofp->ctf_strtab, &strsect, sizeof (ctf_sect_t));
1005 (void) ctf_set_errno(ofp, ECTF_MMAP);
1019 (void) ctf_set_errno(ofp, er
[all...]
H A Dctf_create.c275 ctf_file_t ofp, *nfp; local
553 bcopy(fp, &ofp, sizeof (ctf_file_t));
555 bcopy(&ofp, nfp, sizeof (ctf_file_t));
/freebsd-current/contrib/ncurses/ncurses/base/
H A Dlib_newterm.c174 FILE *ofp,
181 FILE *_ofp = ofp ? ofp : stdout;
189 (void *) ofp,
362 newterm(const char *name, FILE *ofp, FILE *ifp) argument
367 rc = NCURSES_SP_NAME(newterm) (CURRENT_SCREEN_PRE, name, ofp, ifp);
172 newterm(NCURSES_SP_DCLx const char *name, FILE *ofp, FILE *ifp) argument
/freebsd-current/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-current/sys/compat/linux/
H A Dlinux_socket.c2399 is_sendfile(struct file *fp, struct file *ofp) argument
2414 if (ofp->f_type != DTYPE_SOCKET)
2416 so = ofp->f_data;
2442 struct file *ofp; local
2459 error = fget_write(td, out, &cap_pwrite_rights, &ofp);
2462 seekable = (ofp->f_ops->fo_flags & DFLAG_SEEKABLE) != 0;
2464 if ((error = fo_seek(ofp, 0, SEEK_CUR, td)) != 0)
2500 error = fo_write(ofp, &auio, ofp->f_cred, flags, td);
2517 error = fo_seek(ofp, out_offse
2555 struct file *fp, *ofp; local
[all...]
/freebsd-current/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_diff.c443 FILE *ofp; local
446 if ((ofp = fdopen(di->outputfd, "w")) == NULL) {
474 err = write_free_diffs(ofp, di, &dr);
477 err = write_inuse_diffs(ofp, di, &dr);
488 (void) fclose(ofp);
/freebsd-current/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_cc.c1850 FILE *ofp = tmpfile(); local
1869 if (argv == NULL || ofp == NULL) {
1895 (void) snprintf(opath, sizeof (opath), "/dev/fd/%d", fileno(ofp));
1950 dup2(fileno(ofp), 1);
1982 (void) fflush(ofp);
1983 (void) fseek(ofp, 0, SEEK_SET);
1984 return (ofp);
1988 (void) fclose(ofp);
H A Ddt_subr.c1016 dtrace_set_outfp(const FILE *ofp) argument
1019 xo_set_file((FILE *)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-current/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.c3253 FILE * ofp = (debug > 0) ? stdout : stderr; local
3258 fprintf(ofp, "nextvar: %s: '%.*s'\n",

Completed in 603 milliseconds