Searched defs:ofp (Results 1 - 25 of 25) sorted by relevance

/illumos-gate/usr/src/cmd/saf/
H A Dadmutil.c279 FILE *ofp; /* file pointer for target file */ local
310 ofp = open_temp(tname);
312 if (fputs(buf, ofp) == EOF) {
319 if (fclose(ofp) == EOF) {
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dfile.cc57 write_output(AudioBuffer* buf, AudioStream* ofp) argument
64 pos = ofp->GetLength();
67 err = ofp->WriteData(cp, len, pos);
226 AudioUnixfile* ofp = 0; local
239 if (!(ofp = new AudioRawPipe(fileno(stdout),
247 if (!(ofp = new AudioPipe(fileno(stdout),
268 if (!(ofp = new AudioRawPipe(fd, (FileAccess)WriteOnly,
275 if (!(ofp = new AudioFile(path,
289 ofp->SetInfostring(infoString, -1);
292 if ((err = ofp
[all...]
H A Dmain.cc68 AudioUnixfile* ofp = NULL; local
256 // converting in place. ofp will be NULL only the first
260 if ((ofp == NULL) && !pflag) {
283 ofp = create_output_file(outfile, ohdr, ofmt,
341 ofp = create_output_file(outfile, ohdr, ofmt,
355 if (do_convert(ifp, ofp) == -1) {
365 delete(ofp); // will close and deref, etc.
382 delete(ofp); // close output file
H A Dconvert.cc554 AudioStream* ofp)
562 ohdr = ofp->GetHeader();
672 AudioStream* ofp)
689 ohdr = ofp->GetHeader();
692 if ((err = build_conversion_list(list, ifp, ofp)) != AUDIO_SUCCESS) {
785 if ((err = write_output(obuf, ofp)) != AUDIO_SUCCESS) {
787 ofp->GetName(), err.msg());
830 if ((err = write_output(obuf, ofp)) != AUDIO_SUCCESS) {
832 ofp->GetName(), err.msg());
551 build_conversion_list( struct conv_list *&list, AudioStream* ifp, AudioStream* ofp) argument
670 do_convert( AudioStream* ifp, AudioStream* ofp) argument
/illumos-gate/usr/src/cmd/avs/dsw/
H A Diicpbmp.c129 FILE *ifp, *ofp; local
195 if ((ofp = fopen(new_bitmap, "w")) == NULL) {
206 if (fwrite(&header, sizeof (header), 1, ofp) != 1) {
217 if (fwrite(cp_buffer, sizeof (char), i, ofp) != i) {
222 (void) fclose(ofp);
/illumos-gate/usr/src/cmd/sgs/libldmake/common/
H A Dld_file.c109 FILE *ofp; local
126 if (!(ofp = fopen(depend_file, "a")))
130 (void) fprintf(ofp, "%s: ", target);
133 (void) fprintf(ofp, " %s", cur->str);
135 (void) fputc('\n', ofp);
137 (void) fclose(ofp);
/illumos-gate/usr/src/cmd/make/lib/makestate/
H A Dld_file.c104 FILE * ofp; local
121 if (!(ofp = fopen(depend_file, "a")))
125 (void) fprintf(ofp, "%s: ", target);
128 (void) fprintf(ofp, " %s", cur->str);
130 (void) fputc('\n', ofp);
132 (void) fclose(ofp);
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dnss_write.c94 *ofp; local
138 if ((ofp = fdopen(fd, "wb+")) != NULL) {
141 (void) fprintf(ofp,
171 (void) fprintf(ofp, "%s\n", entry);
175 (void) fprintf(ofp, "%s\n", pentry);
179 (void) fclose(ofp);
/illumos-gate/usr/src/common/ctf/
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_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
654 ctf_file_t *ofp = fp; local
704 ctf_file_t *ofp = fp; local
732 ctf_file_t *ofp = fp; local
769 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));
/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) argument
411 NACK(ofp);
414 ACK(ofp);
434 ACK(ofp);
440 receive_data_file(FILE *ifp, FILE *ofp, int size) argument
447 NACK(ofp);
450 ACK(ofp);
483 ACK(ofp);
489 berkeley_receive_files(papi_service_t svc, FILE *ifp, FILE *ofp, char *printer) argument
516 cf = receive_control_file(svc, ifp, ofp, ato
552 berkeley_transfer_files(papi_service_t svc, FILE *ifp, FILE *ofp, char *printer) argument
636 FILE *ofp = stdout; local
[all...]
/illumos-gate/usr/src/lib/libinetutil/common/
H A Dofmt.c183 const ofmt_field_t *ofp; local
210 for (ofp = template; ofp->of_name != NULL; ofp++)
314 ofmt_print_field(ofmt_state_t *os, ofmt_field_t *ofp, const char *value, argument
317 uint_t width = ofp->of_width;
345 os->os_maxnamelen, ofp->of_name, value);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_sg.c178 ofmt_field_t *ofp; local
183 ofp = sgfields_v6;
185 ofp = sgfields_v4;
190 oerr = ofmt_open(larg->o_str, ofp, oflags, ocols, &oh);
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_diff.c420 FILE *ofp; local
423 if ((ofp = fdopen(di->outputfd, "w")) == NULL) {
451 err = write_free_diffs(ofp, di, &dr);
454 err = write_inuse_diffs(ofp, di, &dr);
465 (void) fclose(ofp);
H A Dlibzfs_sendrecv.c238 FILE *ofp; local
266 ofp = fdopen(dda->inputfd, "r");
267 while (ssread(drr, sizeof (*drr), ofp) != 0) {
292 (void) ssread(buf, sz, ofp);
319 ofp);
331 (void) ssread(buf, drrs->drr_length, ofp);
353 (void) ssread(buf, payload_size, ofp);
431 P2ROUNDUP((uint64_t)drrwe->drr_psize, 8), ofp);
458 (void) fclose(ofp);
/illumos-gate/usr/src/lib/libdtrace/common/
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_cc.c1807 FILE *ofp = tmpfile(); local
1820 if (argv == NULL || ofp == NULL) {
1845 (void) snprintf(opath, sizeof (opath), "/dev/fd/%d", fileno(ofp));
1921 (void) fflush(ofp);
1922 (void) fseek(ofp, 0, SEEK_SET);
1923 return (ofp);
1927 (void) fclose(ofp);
H A Ddt_parser.c331 dt_type_promote(dt_node_t *lp, dt_node_t *rp, ctf_file_t **ofp, ctf_id_t *otype) argument
392 *ofp = lfp;
397 *ofp = rfp;
/illumos-gate/usr/src/lib/libzoneinfo/common/
H A Dlibzone.c995 FILE *ifp, *ofp; /* Input & output files */ local
1053 if ((ofp = fdopen(fd, "w")) == NULL) {
1063 if (fchmod(fileno(ofp), sb.st_mode) == -1) {
1065 (void) fclose(ofp);
1071 if (fchown(fileno(ofp), sb.st_uid, sb.st_gid) == -1) {
1073 (void) fclose(ofp);
1081 (void) fclose(ofp);
1096 (void) fclose(ofp);
1105 if (fputs(buff, ofp) == EOF) {
1107 (void) fclose(ofp);
[all...]
/illumos-gate/usr/src/cmd/lms/
H A DProtocol.cpp1678 FILE *ofp = fopen(outFileName, "w"); local
1679 if (NULL == ofp) {
1699 fprintf(ofp, "%s", line);
1705 fprintf(ofp, "%s", line);
1710 fprintf(ofp, "%s", line);
1715 fclose(ofp);
1726 fprintf(ofp, "\n");
1738 fprintf(ofp, LMS_LINE_FORMAT "\n", fqdn, host);
1741 fclose(ofp);
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_asconf.c847 sctp_faddr_t *ofp; local
889 ofp = SCTP_CHUNK_DEST(sctp->sctp_cxmit_list);
891 ASSERT(ofp != NULL && ofp == fp);
892 ASSERT(ofp->sf_suna >= MBLKL(sctp->sctp_cxmit_list));
897 ofp->sf_ssthresh = ofp->sf_cwnd / 2;
898 if (ofp->sf_ssthresh < 2 * ofp->sf_pmss)
899 ofp
[all...]
H A Dsctp_common.c688 sctp_faddr_t *ofp; local
705 ofp = fp;
714 for (fp = sctp->sctp_faddrs; fp != ofp; fp = fp->sf_next) {
725 if (fp != ofp) {
751 sctp_rotate_faddr(sctp_t *sctp, sctp_faddr_t *ofp) argument
757 if (ofp == NULL) {
758 ofp = sctp->sctp_current;
762 return (ofp);
768 min_strikes = ofp->sf_strikes;
769 nfp = ofp
[all...]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_modapi.c406 mdb_frame_t *ofp = mdb.m_fmark; local
423 mdb.m_fmark = ofp;
/illumos-gate/usr/src/common/mpi/
H A Dmpi.c2457 /* {{{ mp_print(mp, ofp) */
2461 mp_print(mp, ofp)
2464 stream 'ofp'. Output is generated using the internal radix.
2467 void mp_print(mp_int *mp, FILE *ofp) argument
2471 if(mp == NULL || ofp == NULL)
2474 fputc((SIGN(mp) == NEG) ? '-' : '+', ofp);
2477 fprintf(ofp, DIGIT_FMT, DIGIT(mp, ix));

Completed in 147 milliseconds