Home
last modified time | relevance | path

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

12

/titanic_50/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.c116 ctf_merge_diffcb(ctf_file_t *ifp, ctf_id_t iid, boolean_t same, ctf_file_t *ofp, in ctf_merge_diffcb() argument
124 ctf_type_kind(ofp, oid) != CTF_K_FORWARD) { in ctf_merge_diffcb()
1420 ctf_dedup_cb(ctf_file_t *ifp, ctf_id_t iid, boolean_t same, ctf_file_t *ofp, in ctf_dedup_cb() argument
1463 ctf_file_t *ifp, *ofp; in ctf_merge_dedup() local
1480 ofp = cmc->cmi_input; in ctf_merge_dedup()
1482 VERIFY(ofp != NULL); in ctf_merge_dedup()
1484 cm.cm_out = ofp; in ctf_merge_dedup()
/titanic_50/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 …]
/titanic_50/usr/src/cmd/audio/audioconvert/
H A Dfile.cc57 write_output(AudioBuffer* buf, AudioStream* ofp) in write_output() argument
64 pos = ofp->GetLength(); in write_output()
67 err = ofp->WriteData(cp, len, pos); in write_output()
226 AudioUnixfile* ofp = 0; in create_output_file() local
239 if (!(ofp = new AudioRawPipe(fileno(stdout), in create_output_file()
247 if (!(ofp = new AudioPipe(fileno(stdout), in create_output_file()
268 if (!(ofp = new AudioRawPipe(fd, (FileAccess)WriteOnly, in create_output_file()
275 if (!(ofp = new AudioFile(path, in create_output_file()
289 ofp->SetInfostring(infoString, -1); in create_output_file()
292 if ((err = ofp->SetHeader(ohdr)) != AUDIO_SUCCESS) { in create_output_file()
[all …]
H A Dmain.cc68 AudioUnixfile* ofp = NULL; in main() local
260 if ((ofp == NULL) && !pflag) { in main()
283 ofp = create_output_file(outfile, ohdr, ofmt, in main()
341 ofp = create_output_file(outfile, ohdr, ofmt, in main()
355 if (do_convert(ifp, ofp) == -1) { in main()
365 delete(ofp); // will close and deref, etc. in main()
382 delete(ofp); // close output file in main()
H A Dconvert.cc554 AudioStream* ofp) in build_conversion_list() argument
562 ohdr = ofp->GetHeader(); in build_conversion_list()
672 AudioStream* ofp) in do_convert() argument
689 ohdr = ofp->GetHeader(); in do_convert()
692 if ((err = build_conversion_list(list, ifp, ofp)) != AUDIO_SUCCESS) { in do_convert()
785 if ((err = write_output(obuf, ofp)) != AUDIO_SUCCESS) { in do_convert()
787 ofp->GetName(), err.msg()); in do_convert()
830 if ((err = write_output(obuf, ofp)) != AUDIO_SUCCESS) { in do_convert()
832 ofp->GetName(), err.msg()); in do_convert()
/titanic_50/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 …]
/titanic_50/usr/src/cmd/sgs/libldmake/common/
H A Dld_file.c109 FILE *ofp; in ld_atexit() local
126 if (!(ofp = fopen(depend_file, "a"))) in ld_atexit()
130 (void) fprintf(ofp, "%s: ", target); in ld_atexit()
133 (void) fprintf(ofp, " %s", cur->str); in ld_atexit()
135 (void) fputc('\n', ofp); in ld_atexit()
137 (void) fclose(ofp); in ld_atexit()
/titanic_50/usr/src/cmd/make/lib/makestate/
H A Dld_file.c104 FILE * ofp; in mk_state_update_exit() local
121 if (!(ofp = fopen(depend_file, "a"))) in mk_state_update_exit()
125 (void) fprintf(ofp, "%s: ", target); in mk_state_update_exit()
128 (void) fprintf(ofp, " %s", cur->str); in mk_state_update_exit()
130 (void) fputc('\n', ofp); in mk_state_update_exit()
132 (void) fclose(ofp); in mk_state_update_exit()
/titanic_50/usr/src/common/ctf/
H A Dctf_types.c64 ctf_file_t *ofp = fp; in ctf_member_iter() local
80 return (ctf_set_errno(ofp, ECTF_NOTSOU)); in ctf_member_iter()
115 ctf_file_t *ofp = fp; in ctf_enum_iter() local
129 return (ctf_set_errno(ofp, ECTF_NOTENUM)); in ctf_enum_iter()
177 ctf_file_t *ofp = fp; in ctf_type_resolve() local
189 return (ctf_set_errno(ofp, ECTF_CORRUPT)); in ctf_type_resolve()
610 ctf_file_t *ofp = fp; in ctf_type_reference() local
624 return (ctf_set_errno(ofp, ECTF_NOTREF)); in ctf_type_reference()
638 ctf_file_t *ofp = fp; in ctf_type_pointer() local
648 return (ctf_set_errno(ofp, ECTF_NOTYPE)); in ctf_type_pointer()
[all …]
H A Dctf_open.c801 ctf_dup(ctf_file_t *ofp) in ctf_dup() argument
815 bcopy(&ofp->ctf_data, &ctfsect, sizeof (ctf_sect_t)); in ctf_dup()
818 (void) ctf_set_errno(ofp, ECTF_MMAP); in ctf_dup()
828 if (ofp->ctf_symtab.cts_data != NULL) { in ctf_dup()
829 bcopy(&ofp->ctf_symtab, &symsect, sizeof (ctf_sect_t)); in ctf_dup()
832 (void) ctf_set_errno(ofp, ECTF_MMAP); in ctf_dup()
844 if (ofp->ctf_strtab.cts_data != NULL) { in ctf_dup()
845 bcopy(&ofp->ctf_strtab, &strsect, sizeof (ctf_sect_t)); in ctf_dup()
848 (void) ctf_set_errno(ofp, ECTF_MMAP); in ctf_dup()
862 (void) ctf_set_errno(ofp, err); in ctf_dup()
/titanic_50/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()
171 (void) fprintf(ofp, "%s\n", entry); in _file_put_printer()
175 (void) fprintf(ofp, "%s\n", pentry); in _file_put_printer()
179 (void) fclose(ofp); in _file_put_printer()
/titanic_50/usr/src/cmd/ctfconvert/
H A Dctfconvert.c257 ctf_file_t *ofp; in main() local
333 ofp = ctf_fdconvert(ifd, label, nthreads, flags, &err, buf, in main()
335 if (ofp == NULL) { in main()
353 ctfconvert_fixup_genunix(ofp); in main()
365 err = ctf_elfwrite(ofp, infile, outfile, CTF_ELFWRITE_F_COMPRESS); in main()
371 "%s", ctf_errmsg(ctf_errno(ofp))); in main()
373 ctf_close(ofp); in main()
/titanic_50/usr/src/cmd/avs/dsw/
H A Diicpbmp.c129 FILE *ifp, *ofp; in copybmp() local
195 if ((ofp = fopen(new_bitmap, "w")) == NULL) { in copybmp()
206 if (fwrite(&header, sizeof (header), 1, ofp) != 1) { in copybmp()
217 if (fwrite(cp_buffer, sizeof (char), i, ofp) != i) { in copybmp()
222 (void) fclose(ofp); in copybmp()
/titanic_50/usr/src/lib/libzoneinfo/common/
H A Dlibzone.c995 FILE *ifp, *ofp; /* Input & output files */ in set_system_tz() local
1053 if ((ofp = fdopen(fd, "w")) == NULL) { in set_system_tz()
1063 if (fchmod(fileno(ofp), sb.st_mode) == -1) { in set_system_tz()
1065 (void) fclose(ofp); in set_system_tz()
1071 if (fchown(fileno(ofp), sb.st_uid, sb.st_gid) == -1) { in set_system_tz()
1073 (void) fclose(ofp); in set_system_tz()
1081 (void) fclose(ofp); in set_system_tz()
1096 (void) fclose(ofp); in set_system_tz()
1105 if (fputs(buff, ofp) == EOF) { in set_system_tz()
1107 (void) fclose(ofp); in set_system_tz()
[all …]
/titanic_50/usr/src/cmd/saf/
H A Dadmutil.c279 FILE *ofp; /* file pointer for target file */ in do_config() local
310 ofp = open_temp(tname); in do_config()
312 if (fputs(buf, ofp) == EOF) { in do_config()
319 if (fclose(ofp) == EOF) { in do_config()
/titanic_50/usr/src/lib/libinetutil/common/
H A Dofmt.c183 const ofmt_field_t *ofp; in ofmt_open() local
210 for (ofp = template; ofp->of_name != NULL; ofp++) in ofmt_open()
314 ofmt_print_field(ofmt_state_t *os, ofmt_field_t *ofp, const char *value, in ofmt_print_field() argument
317 uint_t width = ofp->of_width; in ofmt_print_field()
345 os->os_maxnamelen, ofp->of_name, value); in ofmt_print_field()
/titanic_50/usr/src/uts/common/inet/sctp/
H A Dsctp_asconf.c847 sctp_faddr_t *ofp; in sctp_rc_timer() local
889 ofp = SCTP_CHUNK_DEST(sctp->sctp_cxmit_list); in sctp_rc_timer()
891 ASSERT(ofp != NULL && ofp == fp); in sctp_rc_timer()
892 ASSERT(ofp->sf_suna >= MBLKL(sctp->sctp_cxmit_list)); in sctp_rc_timer()
897 ofp->sf_ssthresh = ofp->sf_cwnd / 2; in sctp_rc_timer()
898 if (ofp->sf_ssthresh < 2 * ofp->sf_pmss) in sctp_rc_timer()
899 ofp->sf_ssthresh = 2 * ofp->sf_pmss; in sctp_rc_timer()
900 ofp->sf_cwnd = ofp->sf_pmss; in sctp_rc_timer()
901 ofp->sf_pba = 0; in sctp_rc_timer()
902 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 …]
/titanic_50/usr/src/cmd/ctfmerge/
H A Dctfmerge.c344 ctf_file_t *ofp; in main() local
512 err = ctf_merge_merge(cmh, &ofp); in main()
519 err = ctf_elfwrite(ofp, g_outfile, tmpfile, wflags); in main()
524 ctf_errmsg(ctf_errno(ofp))); in main()
/titanic_50/usr/src/lib/libzfs/common/
H A Dlibzfs_diff.c419 FILE *ofp; in differ() local
422 if ((ofp = fdopen(di->outputfd, "w")) == NULL) { in differ()
450 err = write_free_diffs(ofp, di, &dr); in differ()
453 err = write_inuse_diffs(ofp, di, &dr); in differ()
464 (void) fclose(ofp); in differ()
H A Dlibzfs_sendrecv.c291 FILE *ofp; in cksummer() local
319 ofp = fdopen(dda->inputfd, "r"); in cksummer()
320 while (ssread(drr, sizeof (*drr), ofp) != 0) { in cksummer()
345 (void) ssread(buf, sz, ofp); in cksummer()
372 ofp); in cksummer()
384 (void) ssread(buf, drrs->drr_length, ofp); in cksummer()
404 (void) ssread(buf, drrw->drr_length, ofp); in cksummer()
482 P2ROUNDUP((uint64_t)drrwe->drr_psize, 8), ofp); in cksummer()
509 (void) fclose(ofp); in cksummer()
/titanic_50/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()
/titanic_50/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()
/titanic_50/usr/src/cmd/mdb/common/mdb/
H A Dmdb_modapi.c406 mdb_frame_t *ofp = mdb.m_fmark; in mdb_eval() local
423 mdb.m_fmark = ofp; in mdb_eval()

12