/titanic_41/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | in.lpd.c | 406 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_41/usr/src/cmd/audio/audioconvert/ |
H A D | file.cc | 57 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 D | main.cc | 68 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 D | convert.cc | 554 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_41/usr/src/cmd/sgs/libldmake/common/ |
H A D | ld_file.c | 109 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_41/usr/src/cmd/make/lib/makestate/ |
H A D | ld_file.c | 104 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_41/usr/src/common/ctf/ |
H A D | ctf_types.c | 60 ctf_file_t *ofp = fp; in ctf_member_iter() local 76 return (ctf_set_errno(ofp, ECTF_NOTSOU)); in ctf_member_iter() 111 ctf_file_t *ofp = fp; in ctf_enum_iter() local 125 return (ctf_set_errno(ofp, ECTF_NOTENUM)); in ctf_enum_iter() 171 ctf_file_t *ofp = fp; in ctf_type_resolve() local 183 return (ctf_set_errno(ofp, ECTF_CORRUPT)); in ctf_type_resolve() 475 ctf_file_t *ofp = fp; in ctf_type_reference() local 489 return (ctf_set_errno(ofp, ECTF_NOTREF)); in ctf_type_reference() 503 ctf_file_t *ofp = fp; in ctf_type_pointer() local 513 return (ctf_set_errno(ofp, ECTF_NOTYPE)); in ctf_type_pointer() [all …]
|
H A D | ctf_open.c | 798 ctf_dup(ctf_file_t *ofp) in ctf_dup() argument 812 bcopy(&ofp->ctf_data, &ctfsect, sizeof (ctf_sect_t)); in ctf_dup() 815 (void) ctf_set_errno(ofp, ECTF_MMAP); in ctf_dup() 825 if (ofp->ctf_symtab.cts_data != NULL) { in ctf_dup() 826 bcopy(&ofp->ctf_symtab, &symsect, sizeof (ctf_sect_t)); in ctf_dup() 829 (void) ctf_set_errno(ofp, ECTF_MMAP); in ctf_dup() 841 if (ofp->ctf_strtab.cts_data != NULL) { in ctf_dup() 842 bcopy(&ofp->ctf_strtab, &strsect, sizeof (ctf_sect_t)); in ctf_dup() 845 (void) ctf_set_errno(ofp, ECTF_MMAP); in ctf_dup() 859 (void) ctf_set_errno(ofp, err); in ctf_dup()
|
H A D | ctf_create.c | 238 ctf_file_t ofp, *nfp; in ctf_update() local 449 bcopy(fp, &ofp, sizeof (ctf_file_t)); in ctf_update() 451 bcopy(&ofp, nfp, sizeof (ctf_file_t)); in ctf_update()
|
/titanic_41/usr/src/lib/print/libprint/common/ |
H A D | nss_write.c | 94 *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_41/usr/src/cmd/avs/dsw/ |
H A D | iicpbmp.c | 129 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_41/usr/src/lib/libzoneinfo/common/ |
H A D | libzone.c | 995 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_41/usr/src/cmd/saf/ |
H A D | admutil.c | 279 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_41/usr/src/lib/libinetutil/common/ |
H A D | ofmt.c | 183 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_41/usr/src/uts/common/inet/sctp/ |
H A D | sctp_asconf.c | 847 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 D | sctp_common.c | 688 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_41/usr/src/cmd/lms/ |
H A D | Protocol.cpp | 1678 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);
|
/titanic_41/usr/src/lib/libzfs/common/ |
H A D | libzfs_diff.c | 426 FILE *ofp; in differ() local 429 if ((ofp = fdopen(di->outputfd, "w")) == NULL) { in differ() 457 err = write_free_diffs(ofp, di, &dr); in differ() 460 err = write_inuse_diffs(ofp, di, &dr); in differ() 471 (void) fclose(ofp); in differ()
|
H A D | libzfs_sendrecv.c | 289 FILE *ofp; in cksummer() local 317 ofp = fdopen(dda->inputfd, "r"); in cksummer() 318 while (ssread(drr, sizeof (*drr), ofp) != 0) { in cksummer() 343 (void) ssread(buf, sz, ofp); in cksummer() 370 ofp); in cksummer() 382 (void) ssread(buf, drrs->drr_length, ofp); in cksummer() 402 (void) ssread(buf, drrw->drr_length, ofp); in cksummer() 480 P2ROUNDUP((uint64_t)drrwe->drr_psize, 8), ofp); in cksummer() 507 (void) fclose(ofp); in cksummer()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_sg.c | 178 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_41/usr/src/lib/libdtrace/common/ |
H A D | dt_cc.c | 1807 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()
|
H A D | dt_cg.c | 333 ctf_file_t *fp, *ofp; in dt_cg_field_set() local 347 if ((fp = dt_cg_membinfo(ofp = fp, type, in dt_cg_field_set() 349 yypcb->pcb_hdl->dt_ctferr = ctf_errno(ofp); in dt_cg_field_set()
|
/titanic_41/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_modapi.c | 405 mdb_frame_t *ofp = mdb.m_fmark; in mdb_eval() local 422 mdb.m_fmark = ofp; in mdb_eval()
|
/titanic_41/usr/src/common/mpi/ |
H A D | mpi.h | 329 void mp_print(mp_int *mp, FILE *ofp);
|
H A D | mpi.c | 2467 void mp_print(mp_int *mp, FILE *ofp) in mp_print() argument 2471 if(mp == NULL || ofp == NULL) in mp_print() 2474 fputc((SIGN(mp) == NEG) ? '-' : '+', ofp); in mp_print() 2477 fprintf(ofp, DIGIT_FMT, DIGIT(mp, ix)); in mp_print()
|