Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_diff.c107 ctf_diff_name(ctf_file_t *ifp, ctf_id_t iid, ctf_file_t *ofp, ctf_id_t oid) in ctf_diff_name() argument
115 if ((otp = ctf_lookup_by_id(&ofp, oid)) == NULL) in ctf_diff_name()
119 oname = ctf_strptr(ofp, otp->ctt_name); in ctf_diff_name()
135 ctf_diff_number(ctf_file_t *ifp, ctf_id_t iid, ctf_file_t *ofp, ctf_id_t oid) in ctf_diff_number() argument
142 if (ctf_type_encoding(ofp, oid, &den) != 0) in ctf_diff_number()
162 ctf_file_t *ofp, ctf_id_t oid) in ctf_diff_typedef() argument
173 while (ctf_type_kind(ofp, oid) == CTF_K_TYPEDEF) { in ctf_diff_typedef()
174 oref = ctf_type_reference(ofp, oid); in ctf_diff_typedef()
181 return (ctf_diff_type(cds, ifp, iref, ofp, oref)); in ctf_diff_typedef()
189 ctf_file_t *ofp, ctf_id_t oid) in ctf_diff_qualifier() argument
[all …]
H A Dctf_merge.c127 ctf_merge_diffcb(ctf_file_t *ifp, ctf_id_t iid, boolean_t same, ctf_file_t *ofp, in ctf_merge_diffcb() argument
136 (kind = ctf_type_kind(ofp, oid)) != CTF_K_FORWARD) { in ctf_merge_diffcb()
1564 ctf_dedup_cb(ctf_file_t *ifp, ctf_id_t iid, boolean_t same, ctf_file_t *ofp, in ctf_dedup_cb() argument
1607 ctf_file_t *ifp, *ofp; in ctf_merge_dedup() local
1624 ofp = cmc->cmi_input; in ctf_merge_dedup()
1626 VERIFY(ofp != NULL); in ctf_merge_dedup()
1628 cm.cm_out = ofp; in ctf_merge_dedup()
/illumos-gate/usr/src/cmd/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()
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/
H A Din.lpd.c406 receive_control_file(papi_service_t svc, FILE *ifp, FILE *ofp, int size) in receive_control_file() argument
411 NACK(ofp); in receive_control_file()
414 ACK(ofp); in receive_control_file()
434 ACK(ofp); in receive_control_file()
440 receive_data_file(FILE *ifp, FILE *ofp, int size) in receive_data_file() argument
447 NACK(ofp); in receive_data_file()
450 ACK(ofp); in receive_data_file()
483 ACK(ofp); in receive_data_file()
489 berkeley_receive_files(papi_service_t svc, FILE *ifp, FILE *ofp, char *printer) in berkeley_receive_files() argument
516 cf = receive_control_file(svc, ifp, ofp, atoi(&buf[1])); in berkeley_receive_files()
[all …]
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dfile.cc55 write_output(AudioBuffer* buf, AudioStream* ofp) in write_output() argument
62 pos = ofp->GetLength(); in write_output()
65 err = ofp->WriteData(cp, len, pos); in write_output()
224 AudioUnixfile* ofp = 0; in create_output_file() local
237 if (!(ofp = new AudioRawPipe(fileno(stdout), in create_output_file()
245 if (!(ofp = new AudioPipe(fileno(stdout), in create_output_file()
266 if (!(ofp = new AudioRawPipe(fd, (FileAccess)WriteOnly, in create_output_file()
273 if (!(ofp = new AudioFile(path, in create_output_file()
287 ofp->SetInfostring(infoString, -1); in create_output_file()
290 if ((err = ofp->SetHeader(ohdr)) != AUDIO_SUCCESS) { in create_output_file()
[all …]
H A Dmain.cc65 AudioUnixfile* ofp = NULL; in main() local
257 if ((ofp == NULL) && !pflag) { in main()
280 ofp = create_output_file(outfile, ohdr, ofmt, in main()
338 ofp = create_output_file(outfile, ohdr, ofmt, in main()
352 if (do_convert(ifp, ofp) == -1) { in main()
362 delete(ofp); // will close and deref, etc. in main()
379 delete(ofp); // close output file in main()
H A Dconvert.cc552 AudioStream* ofp) in build_conversion_list() argument
560 ohdr = ofp->GetHeader(); in build_conversion_list()
670 AudioStream* ofp) in do_convert() argument
687 ohdr = ofp->GetHeader(); in do_convert()
690 if ((err = build_conversion_list(list, ifp, ofp)) != AUDIO_SUCCESS) { in do_convert()
783 if ((err = write_output(obuf, ofp)) != AUDIO_SUCCESS) { in do_convert()
785 ofp->GetName(), err.msg()); in do_convert()
828 if ((err = write_output(obuf, ofp)) != AUDIO_SUCCESS) { in do_convert()
830 ofp->GetName(), err.msg()); in do_convert()
/illumos-gate/usr/src/cmd/ctfdiff/
H A Dctfdiff.c93 ctf_file_t *ofp, ulong_t oidx, void *arg) in ctfdiff_func_cb() argument
125 ctf_file_t *ofp, ulong_t oidx, ctf_id_t oid, void *arg) in ctfdiff_obj_cb() argument
156 ctfdiff_cb(ctf_file_t *ifp, ctf_id_t iid, boolean_t similar, ctf_file_t *ofp, in ctfdiff_cb() argument
221 ctfdiff_labels(ctf_file_t *ifp, ctf_file_t *ofp) in ctfdiff_labels() argument
232 ret = ctf_label_iter(ofp, ctfdiff_labels_count, &nolabel); in ctfdiff_labels()
239 ctfdiff_fp_to_name(ofp)); in ctfdiff_labels()
261 if ((ret = ctf_label_iter(ofp, ctfdiff_labels_fill, &odl)) != 0) in ctfdiff_labels()
273 ctfdiff_fp_to_name(ofp)); in ctfdiff_labels()
322 ctf_file_t *ifp, *ofp; in main() local
474 ofp = ctf_open(argv[2], &err); in main()
[all …]
/illumos-gate/usr/src/cmd/sgs/libldmake/common/
H A Dld_file.c108 FILE *ofp; in ld_atexit() local
125 if (!(ofp = fopen(depend_file, "a"))) in ld_atexit()
129 (void) fprintf(ofp, "%s: ", target); in ld_atexit()
132 (void) fprintf(ofp, " %s", cur->str); in ld_atexit()
134 (void) fputc('\n', ofp); in ld_atexit()
136 (void) fclose(ofp); in ld_atexit()
/illumos-gate/usr/src/cmd/make/lib/makestate/
H A Dld_file.c100 FILE *ofp; in mk_state_update_exit() local
117 if (!(ofp = fopen(depend_file, "a"))) in mk_state_update_exit()
121 (void) fprintf(ofp, "%s: ", target); in mk_state_update_exit()
124 (void) fprintf(ofp, " %s", cur->str); in mk_state_update_exit()
126 (void) fputc('\n', ofp); in mk_state_update_exit()
128 (void) fclose(ofp); in mk_state_update_exit()
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dnss_write.c94 *ofp; in _file_put_printer() local
138 if ((ofp = fdopen(fd, "wb+")) != NULL) { in _file_put_printer()
141 (void) fprintf(ofp, in _file_put_printer()
172 (void) fprintf(ofp, "%s\n", entry); in _file_put_printer()
176 (void) fprintf(ofp, "%s\n", pentry); in _file_put_printer()
180 (void) fclose(ofp); in _file_put_printer()
/illumos-gate/usr/src/common/ctf/
H A Dctf_types.c78 ctf_file_t *ofp = fp; in ctf_member_iter() local
94 return (ctf_set_errno(ofp, ECTF_NOTSOU)); in ctf_member_iter()
129 ctf_file_t *ofp = fp; in ctf_enum_iter() local
143 return (ctf_set_errno(ofp, ECTF_NOTENUM)); in ctf_enum_iter()
191 ctf_file_t *ofp = fp; in ctf_type_resolve() local
203 return (ctf_set_errno(ofp, ECTF_CORRUPT)); in ctf_type_resolve()
637 ctf_file_t *ofp = fp; in ctf_type_reference() local
651 return (ctf_set_errno(ofp, ECTF_NOTREF)); in ctf_type_reference()
665 ctf_file_t *ofp = fp; in ctf_type_pointer() local
675 return (ctf_set_errno(ofp, ECTF_NOTYPE)); in ctf_type_pointer()
[all …]
H A Dctf_open.c802 ctf_dup(ctf_file_t *ofp) in ctf_dup() argument
816 bcopy(&ofp->ctf_data, &ctfsect, sizeof (ctf_sect_t)); in ctf_dup()
819 (void) ctf_set_errno(ofp, ECTF_MMAP); in ctf_dup()
829 if (ofp->ctf_symtab.cts_data != NULL) { in ctf_dup()
830 bcopy(&ofp->ctf_symtab, &symsect, sizeof (ctf_sect_t)); in ctf_dup()
833 (void) ctf_set_errno(ofp, ECTF_MMAP); in ctf_dup()
845 if (ofp->ctf_strtab.cts_data != NULL) { in ctf_dup()
846 bcopy(&ofp->ctf_strtab, &strsect, sizeof (ctf_sect_t)); in ctf_dup()
849 (void) ctf_set_errno(ofp, ECTF_MMAP); in ctf_dup()
863 (void) ctf_set_errno(ofp, err); in ctf_dup()
/illumos-gate/usr/src/cmd/ctfconvert/
H A Dctfconvert.c256 ctf_file_t *ofp; in main() local
412 ofp = ctf_fdconvert(cch, ifd, &err, buf, sizeof (buf)); in main()
416 if (ofp == NULL) { in main()
461 ctfconvert_fixup_genunix(ofp); in main()
473 err = ctf_elfwrite(ofp, infile, outfile, CTF_ELFWRITE_F_COMPRESS); in main()
479 "%s\n", ctf_errmsg(ctf_errno(ofp))); in main()
481 ctf_close(ofp); in main()
/illumos-gate/usr/src/lib/libzoneinfo/common/
H A Dlibzone.c993 FILE *ifp, *ofp; /* Input & output files */ in set_system_tz() local
1051 if ((ofp = fdopen(fd, "w")) == NULL) { in set_system_tz()
1061 if (fchmod(fileno(ofp), sb.st_mode) == -1) { in set_system_tz()
1063 (void) fclose(ofp); in set_system_tz()
1069 if (fchown(fileno(ofp), sb.st_uid, sb.st_gid) == -1) { in set_system_tz()
1071 (void) fclose(ofp); in set_system_tz()
1079 (void) fclose(ofp); in set_system_tz()
1094 (void) fclose(ofp); in set_system_tz()
1103 if (fputs(buff, ofp) == EOF) { in set_system_tz()
1105 (void) fclose(ofp); in set_system_tz()
[all …]
/illumos-gate/usr/src/cmd/saf/
H A Dadmutil.c276 FILE *ofp; /* file pointer for target file */ in do_config() local
307 ofp = open_temp(tname); in do_config()
309 if (fputs(buf, ofp) == EOF) { in do_config()
316 if (fclose(ofp) == EOF) { in do_config()
/illumos-gate/usr/src/lib/libofmt/common/
H A Dofmt.c193 const ofmt_field_t *ofp; in ofmt_open() local
220 for (ofp = template; ofp->of_name != NULL; ofp++) in ofmt_open()
331 ofmt_print_field(ofmt_state_t *os, ofmt_field_t *ofp, const char *value, in ofmt_print_field() argument
334 uint_t width = ofp->of_width; in ofmt_print_field()
362 os->os_maxnamelen, ofp->of_name, value); in ofmt_print_field()
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_asconf.c853 sctp_faddr_t *ofp; in sctp_rc_timer() local
895 ofp = SCTP_CHUNK_DEST(sctp->sctp_cxmit_list); in sctp_rc_timer()
897 ASSERT(ofp != NULL && ofp == fp); in sctp_rc_timer()
898 ASSERT(ofp->sf_suna >= MBLKL(sctp->sctp_cxmit_list)); in sctp_rc_timer()
903 ofp->sf_ssthresh = ofp->sf_cwnd / 2; in sctp_rc_timer()
904 if (ofp->sf_ssthresh < 2 * ofp->sf_pmss) in sctp_rc_timer()
905 ofp->sf_ssthresh = 2 * ofp->sf_pmss; in sctp_rc_timer()
906 ofp->sf_cwnd = ofp->sf_pmss; in sctp_rc_timer()
907 ofp->sf_pba = 0; in sctp_rc_timer()
908 ofp->sf_suna -= MBLKL(sctp->sctp_cxmit_list); in sctp_rc_timer()
H A Dsctp_common.c688 sctp_faddr_t *ofp; in sctp_faddr_dead() local
705 ofp = fp; in sctp_faddr_dead()
714 for (fp = sctp->sctp_faddrs; fp != ofp; fp = fp->sf_next) { in sctp_faddr_dead()
725 if (fp != ofp) { in sctp_faddr_dead()
751 sctp_rotate_faddr(sctp_t *sctp, sctp_faddr_t *ofp) in sctp_rotate_faddr() argument
757 if (ofp == NULL) { in sctp_rotate_faddr()
758 ofp = sctp->sctp_current; in sctp_rotate_faddr()
762 return (ofp); in sctp_rotate_faddr()
768 min_strikes = ofp->sf_strikes; in sctp_rotate_faddr()
769 nfp = ofp->sf_next; in sctp_rotate_faddr()
[all …]
/illumos-gate/usr/src/cmd/ctfmerge/
H A Dctfmerge.c322 ctf_file_t *ofp; in main() local
439 err = ctf_merge_merge(cmh, &ofp); in main()
446 err = ctf_elfwrite(ofp, g_outfile, tmpfile, wflags); in main()
451 ctf_errmsg(ctf_errno(ofp))); in main()
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_diff.c428 FILE *ofp; in differ() local
431 if ((ofp = fdopen(di->outputfd, "w")) == NULL) { in differ()
459 err = write_free_diffs(ofp, di, &dr); in differ()
462 err = write_inuse_diffs(ofp, di, &dr); in differ()
473 (void) fclose(ofp); in differ()
H A Dlibzfs_sendrecv.c242 FILE *ofp; in cksummer() local
270 ofp = fdopen(dda->inputfd, "r"); in cksummer()
271 while (ssread(drr, sizeof (*drr), ofp) != 0) { in cksummer()
305 (void) ssread(buf, sz, ofp); in cksummer()
331 DRR_OBJECT_PAYLOAD_SIZE(drro), ofp); in cksummer()
342 (void) ssread(buf, DRR_SPILL_PAYLOAD_SIZE(drrs), ofp); in cksummer()
364 (void) ssread(buf, payload_size, ofp); in cksummer()
441 P2ROUNDUP((uint64_t)drrwe->drr_psize, 8), ofp); in cksummer()
476 (void) fclose(ofp); in cksummer()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_sg.c178 ofmt_field_t *ofp; in ilbadm_list_sg_srv() local
183 ofp = sgfields_v6; in ilbadm_list_sg_srv()
185 ofp = sgfields_v4; in ilbadm_list_sg_srv()
190 oerr = ofmt_open(larg->o_str, ofp, oflags, ocols, &oh); in ilbadm_list_sg_srv()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_cc.c1807 FILE *ofp = tmpfile(); in dt_preproc() local
1820 if (argv == NULL || ofp == NULL) { in dt_preproc()
1845 (void) snprintf(opath, sizeof (opath), "/dev/fd/%d", fileno(ofp)); in dt_preproc()
1921 (void) fflush(ofp); in dt_preproc()
1922 (void) fseek(ofp, 0, SEEK_SET); in dt_preproc()
1923 return (ofp); in dt_preproc()
1927 (void) fclose(ofp); in dt_preproc()
/illumos-gate/usr/src/common/mpi/
H A Dmpi.h328 void mp_print(mp_int *mp, FILE *ofp);

12