/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | tdump.c | 43 static Sfio_t *outfile; variable 47 outfile = out; in sh_tdump() 70 return(sfputl(outfile,-1)); in p_tree() 71 if(sfputl(outfile,t->tre.tretyp)<0) in p_tree() 82 if(sfputu(outfile,t->fork.forkline)<0) in p_tree() 101 if(sfputl(outfile,-1)<0) in p_tree() 115 if(sfputu(outfile,t->ar.arline)<0) in p_tree() 119 if(sfputu(outfile,t->for_.forline)<0) in p_tree() 127 if(sfputu(outfile,t->sw.swline)<0) in p_tree() 133 if(sfputu(outfile,t->funct.functline)<0) in p_tree() [all …]
|
H A D | deparse.c | 62 static Sfio_t *outfile; variable 69 outfile = out; in sh_deparse() 99 sfnputc(outfile,'\t',level); in p_tree() 128 sfputr(outfile,"|&",'\n'); in p_tree() 133 sfputr(outfile,"&",'\n'); in p_tree() 162 sfprintf(outfile,"(( %s; ",forinit); in p_tree() 164 sfputr(outfile,arg->argval,';'); in p_tree() 166 sfprintf(outfile," %s))\n",arg->argval); in p_tree() 222 sfputc(outfile,'\n'); in p_tree() 226 sfputr(outfile,cp,here_doc?'\n':' '); in p_tree() [all …]
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | gendeliv.c | 41 FILE *outfile; local 85 if ((outfile = popenvp(pargs[0], pargs, "w", 1)) == (FILE *)NULL) { 91 outfile = fp; 105 fprintf(outfile,"%s 2\n", header[H_RVERS].tag); 106 fprintf(outfile,"%s %s\n", header[H_TCOPY].tag, 108 fprintf(outfile,"%s %s\n", header[H_DATE].tag, buf); 109 dumprcv(ORDINARY, -1,&didrcvlines,&suppress,outfile); 110 dumpaff(ORDINARY, -1,&didafflines,&suppress,outfile); 111 fprintf(outfile,"Original-%s ", header[H_DATE].tag); 114 fprintf(outfile,"%s\n", hptr->value); [all …]
|
/illumos-gate/usr/src/cmd/etdump/ |
H A D | output_text.c | 35 output_image(FILE *outfile, const char *filename, in output_image() argument 39 fprintf(outfile, "Image in %s\n", filename); in output_image() 43 output_section(FILE *outfile, const char *filename __unused, in output_section() argument 47 fprintf(outfile, "\nSection header: %s", in output_section() 51 fprintf(outfile, ", final\n"); in output_section() 53 fprintf(outfile, "\n"); in output_section() 57 output_entry(FILE *outfile, const char *filename __unused, in output_entry() argument 72 fprintf(outfile, "Default entry\n"); in output_entry() 75 fprintf(outfile, "\tSection entry\n"); in output_entry() 79 fprintf(outfile, "%sSystem %s\n", indent, in output_entry() [all …]
|
H A D | etdump.c | 132 dump_section(char *buffer, size_t offset, FILE *outfile, const char *filename, in dump_section() argument 143 outputter->output_section(outfile, filename, sh); in dump_section() 153 outputter->output_entry(outfile, filename, entry, in dump_section() 162 dump_eltorito(FILE *iso, const char *filename, FILE *outfile, in dump_eltorito() argument 194 outputter->output_image(outfile, filename, bvd); in dump_eltorito() 199 outputter->output_entry(outfile, filename, in dump_eltorito() 211 entry_count = dump_section(buffer, offset, outfile, filename, in dump_eltorito() 235 FILE *outfile, *iso; in main() local 238 outfile = stdout; in main() 259 outfile = stdout; in main() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/ |
H A D | gen_no_return_funcs.sh | 11 outfile="${project}.no_return_funcs" 13 add_file=$(echo ${bin_dir}/../smatch_data/${outfile}.add) 14 remove=$(echo ${bin_dir}/../smatch_data/${outfile}.remove) 18 echo "// list of functions which don't return." > $outfile 19 echo '// generated by `gen_no_return_funcs.sh`' >> $outfile 20 cat $(echo ${bin_dir}/../smatch_data/no_return_funcs) >> $outfile 21 cat $add_file >> $outfile 2> /dev/null 27 cat $tmp $remove $remove 2> /dev/null | sort | uniq -u >> $outfile 29 echo "Done. List saved as '$outfile'"
|
H A D | gen_expects_err_ptr.sh | 15 outfile="kernel.expects_err_ptr" 17 remove=$(echo ${bin_dir}/../smatch_data/${outfile}.remove) 20 echo "// list of functions which expect an ERR_PTR." > $outfile 21 echo '// generated by `gen_expects_err_ptr.sh`' >> $outfile 24 cat $tmp $remove $remove 2> /dev/null | sort | uniq -u >> $outfile 26 echo "Done. List saved as '$outfile'"
|
H A D | gen_unwind_functions.sh | 15 outfile="kernel.unwind_functions" 17 remove=$(echo ${bin_dir}/../smatch_data/${outfile}.remove) 21 echo "// list of unwind functions." > $outfile 22 echo '// generated by `gen_unwind_functions.sh`' >> $outfile 26 cat $tmp $remove $remove 2> /dev/null | sort | uniq -u >> $outfile 28 echo "Done. List saved as '$outfile'"
|
H A D | gen_dma_funcs.sh | 15 outfile="kernel.dma_funcs" 17 remove=$(echo ${bin_dir}/../smatch_data/${outfile}.remove) 21 echo "// list of DMA function and buffer parameters." > $outfile 22 echo '// generated by `gen_dma_funcs.sh`' >> $outfile 28 cat $tmp $remove $remove 2> /dev/null | sort | uniq -u >> $outfile 30 echo "Done. List saved as '$outfile'"
|
H A D | gen_gfp_flags.sh | 15 outfile="kernel.gfp_flags" 17 remove=$(echo ${bin_dir}/../smatch_data/${outfile}.remove) 21 echo "// list of GFP flag parameters." > $outfile 22 echo '// generated by `gen_gfp_flags.sh`' >> $outfile 28 cat $tmp $remove $remove 2> /dev/null | sort | uniq -u >> $outfile 30 echo "Done. List saved as '$outfile'"
|
H A D | gen_sizeof_param.sh | 11 outfile="${project}.sizeof_param" 13 remove=$(echo ${bin_dir}/../smatch_data/${outfile}.remove) 18 echo "// list of function parameters that are the size of a buffer." > $outfile 19 echo '// generated by `gen_sizeof_param.sh`' >> $outfile 26 cat $tmp $tmp2 2> /dev/null | sort | uniq -u >> $outfile 30 echo "Done. List saved as '$outfile'"
|
H A D | gen_rosenberg_funcs.sh | 15 outfile="kernel.rosenberg_funcs" 17 remove=$(echo ${bin_dir}/../smatch_data/${outfile}.remove) 21 echo "// list of copy_to_user function and buffer parameters." > $outfile 22 echo '// generated by `gen_rosenberg_funcs.sh`' >> $outfile 32 cat $tmp $remove $remove 2> /dev/null | sort | uniq -u >> $outfile 34 echo "Done. List saved as '$outfile'"
|
/illumos-gate/usr/src/cmd/rpcgen/ |
H A D | rpc_main.c | 163 checkfiles(cmd.infile, cmd.outfile); in main() 168 c_output(cmd.infile, "-DRPC_XDR", DONT_EXTEND, cmd.outfile); in main() 170 h_output(cmd.infile, "-DRPC_HDR", DONT_EXTEND, cmd.outfile); in main() 172 l_output(cmd.infile, "-DRPC_CLNT", DONT_EXTEND, cmd.outfile); in main() 175 cmd.outfile, cmd.mflag, cmd.nflag); in main() 177 t_output(cmd.infile, "-DRPC_TBL", DONT_EXTEND, cmd.outfile); in main() 180 cmd.outfile); in main() 183 cmd.outfile); in main() 248 open_output(char *infile, char *outfile) in open_output() argument 251 if (outfile == NULL) { in open_output() [all …]
|
/illumos-gate/usr/src/cmd/abi/appcert/scripts/ |
H A D | symprof.pl | 184 my $outfile = "$output_dir/profile.static"; 202 open($static_prof_fh, ">$outfile") || 203 exiter(nofile($outfile, $!)); 217 system("$appcert_lib_dir/static_prof", '-p', '-s', '-o', $outfile, 221 open($static_prof_fh, ">$outfile") || 222 exiter(nofile($outfile, $!)); 281 open($static_prof_fh, "<$outfile") || 282 exiter(nofile($outfile, $!)); 316 my $outfile = "$output_dir/profile.dynamic"; 336 open($profile_fh, ">$outfile") || [all …]
|
H A D | AppcertUtil.pm | 315 my $outfile = object_to_dir_name($filename); 316 $outfile = "$working_dir/$outfile/info.file"; 320 if (-f $outfile) { 322 if (open($file_cmd_fh, "<$outfile")) { 359 my $outfile = object_to_dir_name($filename); 360 $outfile = "$working_dir/$outfile/info.dump"; 364 if (-f $outfile) { 366 if (open($dump_cmd_fh, "<$outfile")) { 413 my $outfile = object_to_dir_name($filename); 414 $outfile = "$working_dir/$outfile/profile.dynamic.ldd"; [all …]
|
/illumos-gate/usr/src/lib/libsecdb/common/ |
H A D | i.rbac | 494 outfile="" 508 outfile=$tmp_dir/rbac_${PKGINST}_${fname}_merge.$$ 514 $rm_cmd -f $outfile $outfile.old $outfile.new $outfile.unsorted 549 dbmerge $type $oldfile $newfile $outfile 557 commit $outfile $oldfile 559 echo "$0 : failed to mv $outfile to $2"
|
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/ |
H A D | export.c | 42 char *outfile = NULL; in kc_export() local 67 outfile = get_string(optarg_av, &rv); in kc_export() 68 if (outfile == NULL) { in kc_export() 108 if (outfile == NULL) { in kc_export() 115 if (strcmp(outfile, KMF_DEFAULT_POLICY_FILE) == 0 && in kc_export() 140 rv = kmf_add_policy_to_db(&pnode->plc, outfile, in kc_export() 160 if (outfile != NULL) in kc_export() 161 free(outfile); in kc_export()
|
/illumos-gate/usr/src/cmd/fm/mcdecode/ |
H A D | mcdecode.c | 291 mcdecode_dump(const char *device, const char *outfile) in mcdecode_dump() argument 316 if ((fd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) < 0) { in mcdecode_dump() 317 err(EXIT_FAILURE, "failed to create output file %s", outfile); in mcdecode_dump() 327 warn("failed to write to output file %s", outfile); in mcdecode_dump() 328 (void) unlink(outfile); in mcdecode_dump() 337 warn("failed to sync output file %s", outfile); in mcdecode_dump() 338 (void) unlink(outfile); in mcdecode_dump() 350 const char *outfile = NULL; in main() local 372 outfile = optarg; in main() 388 if (outfile != NULL && infile != NULL) { in main() [all …]
|
/illumos-gate/usr/src/cmd/audio/audioconvert/ |
H A D | main.cc | 69 char *outfile = NULL; in main() local 138 if (outfile != NULL) { in main() 164 outfile = optarg; in main() 280 ofp = create_output_file(outfile, ohdr, ofmt, in main() 311 outfile = (char *)malloc((unsigned)i); in main() 312 if (outfile == NULL) { in main() 316 (void) sprintf(outfile, "%s%s", realfile, Suffix); in main() 338 ofp = create_output_file(outfile, ohdr, ofmt, in main() 364 if (rename(outfile, realfile) < 0) { in main() 365 perror(outfile); in main() [all …]
|
/illumos-gate/usr/src/test/libc-tests/tests/ |
H A D | psignal.ksh | 40 typeset outfile=$ps_out.test 42 $prog >/dev/null 2>$outfile || fatal "$prog unexpectedly failed" 43 diff $ps_out $outfile || fatal "$ps_out and $outfile differ " \ 45 rm -f $outfile
|
/illumos-gate/usr/src/cmd/sed/ |
H A D | process.c | 86 (void) fwrite(ps, 1, psl, outfile); \ 87 (void) fputc('\n', outfile); \ 133 (void) fprintf(outfile, "%s", cp->t); in process() 166 (void) fprintf(outfile, "%s", cp->t); in process() 261 (void) fprintf(outfile, "%lu\n", linenum); in process() 551 appends[i].len, outfile); in flush_appends() 567 outfile); in flush_appends() 571 if (ferror(outfile)) in flush_appends() 588 if (outfile != stdout) in lputs() 615 (void) fprintf(outfile, "\\\n"); in lputs() [all …]
|
H A D | main.c | 91 FILE *outfile; /* Current output file */ variable 338 outfile = stdout; in mf_fgets() 373 if (outfile != NULL && outfile != stdout) in mf_fgets() 374 if (fclose(outfile) != 0) { in mf_fgets() 379 outfile = NULL; in mf_fgets() 423 if ((outfile = fopen(tmpfname, "w")) == NULL) in mf_fgets() 431 if (fstat(fileno(outfile), &nsb) != 0) { in mf_fgets() 436 (fchown(fileno(outfile), sb.st_uid, sb.st_gid) in mf_fgets() 440 (fchmod(fileno(outfile), sb.st_mode & 07777) != 0)) in mf_fgets() 448 outfile = stdout; in mf_fgets()
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | makedbm.c | 122 char *infile, *outfile; local 141 infile = outfile = NULL; /* where to get files */ 207 else if (outfile == NULL) 208 outfile = argv[0]; 214 if (infile == NULL || outfile == NULL) 220 last_slash = strrchr(outfile, '/'); 223 next_to_last_slash = strrchr(outfile, '/'); 264 sprintf(outalias, "%s/%s/%s", outfile, outaliasdomain, 279 if (yp_getalias(outfile, outaliasdomain, NAME_MAX) < 0) { 280 if ((int)strlen(outfile) <= NAME_MAX) [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_file.c | 406 static errcode_t write_data_to_file(prf_data_t data, const char *outfile, in write_data_to_file() argument 417 new_file = malloc(strlen(outfile) + 5); in write_data_to_file() 420 old_file = malloc(strlen(outfile) + 5); in write_data_to_file() 424 sprintf(new_file, "%s.$$$", outfile); in write_data_to_file() 425 sprintf(old_file, "%s.bak", outfile); in write_data_to_file() 445 if (make_hard_link(outfile, old_file) == 0) { in write_data_to_file() 449 if (rename(new_file, outfile)) { in write_data_to_file() 457 if (rename(new_file, outfile)) { in write_data_to_file() 468 if (rename(outfile, old_file)) { in write_data_to_file() 472 if (rename(new_file, outfile)) { in write_data_to_file() [all …]
|
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | truss.c | 42 static FILE *outfile = stderr; variable 136 outfile = fp; in la_version() 257 (void) fprintf(outfile, "%5d:", (int)getpid()); in la_sparcv9_pltenter() 264 (void) fprintf(outfile, "%-15s -> %15s:%-*s%s(0x%lx, 0x%lx, 0x%lx)\n", in la_sparcv9_pltenter() 269 (void) fflush(outfile); in la_sparcv9_pltenter() 298 (void) fprintf(outfile, "%5d:", (int)pid); in la_pltexit64() 301 (void) fprintf(outfile, "%-15s -> %15s:%*s%s - 0x%lx\n", refname, in la_pltexit64() 303 (void) fflush(outfile); in la_pltexit64()
|